Function at 0x40da40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x44ae80
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4606b0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
call fcn.00415588
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40da81
push 0x80004005
call fcn.00407b00
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x30], 0
call fcn.00415588
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40dab3
push 0x80004005
call fcn.00407b00
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x30], 1
call fcn.00415588
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40dae2
push 0x80004005
call fcn.00407b00
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x1c], ebp
mov ecx, dword [esp + 0x38]
push 1
mov byte [esp + 0x34], 2
call fcn.00419b5a
mov edx, dword [esp + 0x3c]
mov eax, dword [edx + 8]
xor ecx, ecx
mov dword [esp + 0x20], ecx
test eax, eax
jle 0x40ddaa
test ecx, ecx
jl 0x40de39
cmp ecx, eax
jge 0x40de39
mov edx, dword [edx + 4]
lea eax, [edx + ecx*4]
mov eax, dword [eax]
mov edx, dword [esp + 0x18]
lea ecx, [eax - 0x10]
lea esi, [edx - 0x10]
cmp ecx, esi
je 0x40db88
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40db76
mov edx, dword [ecx]
cmp edx, dword [esi]
jne 0x40db76
push ecx
call fcn.004076d0
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x40db6d
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea edx, [ebx + 0x10]
mov dword [esp + 0x18], edx
jmp 0x40db88
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00407800
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
lea eax, [edx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x40dbdd
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40dbcf
mov ecx, dword [eax]
cmp ecx, dword [esi]
jne 0x40dbcf
push eax
call fcn.004076d0
add esp, 4
mov ebx, eax
or edx, 0xffffffff
lock xadd dword [edi], edx
dec edx
test edx, edx
jg 0x40dbc6
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
add ebx, 0x10
mov dword [esp + 0x14], ebx
jmp 0x40dbdd
mov eax, dword [edx - 0xc]
push eax
push edx
lea ecx, [esp + 0x1c]
call fcn.00407800
mov eax, dword [esp + 0x38]
cmp dword [eax + 0x103c], 1
jne 0x40dcbf
mov ecx, dword [esp + 0x14]
lea eax, [ecx - 0x10]
lea esi, [ebp - 0x10]
cmp eax, esi
je 0x40dc47
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40dc35
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40dc35
push eax
call fcn.004076d0
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x40dc2c
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebp, 0x10
mov dword [esp + 0x1c], ebp
jmp 0x40dc47
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.00407800
mov ebp, dword [esp + 0x1c]
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov ecx, 1
sub ecx, dword [ebp - 4]
sub eax, esi
or eax, ecx
jge 0x40dc69
push esi
lea ecx, [esp + 0x20]
call fcn.00407a80
mov ebp, dword [esp + 0x1c]
lea ecx, [esi + 1]
push ecx
push ebp
call fcn.00434e5a
push eax
call fcn.00406970
add esp, 0xc
test esi, esi
jl 0x40de2f
cmp esi, dword [ebp - 8]
jg 0x40de2f
mov dword [ebp - 0xc], esi
mov byte [esi + ebp], 0
cmp dword [ebp - 0xc], 0
jl 0x40dd92
push 0x453ee4
push ebp
call fcn.00434b98
add esp, 8
test eax, eax
je 0x40dd92
sub eax, ebp
cmp eax, 0xffffffff
je 0x40dd92
mov edx, dword [esp + 0x14]
push 0x5c
push edx
call fcn.00434d3e
add esp, 8
test eax, eax
je 0x40dd92
mov edx, dword [esp + 0x14]
sub eax, edx
mov ecx, eax
cmp ecx, 0xffffffff
je 0x40dd92
mov eax, dword [edx - 0xc]
sub eax, ecx
dec eax
push eax
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x1c]
call fcn.0040ee10
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 3
call fcn.00407530
mov byte [esp + 0x30], 2
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dd30
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ebx, [esp + 0x18]
call fcn.0040ecf0
mov edi, eax
call fcn.0040ed70
mov edi, dword [esp + 0x38]
lea ebx, [esp + 0x14]
call fcn.0040de40
test eax, eax
jne 0x40dd92
mov ecx, dword [edi + 0x98]
mov esi, dword [esp + 0x18]
push eax
push eax
push 0x1004
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0
push 0
push esi
push eax
push 3
lea ecx, [edi + 0x78]
call fcn.00415c79
mov eax, dword [edi + 0x104c]
lea ecx, [edi + 0x1044]
mov edx, ebx
push edx
push eax
call fcn.00421c29
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x3c]
mov eax, dword [edx + 8]
inc ecx
cmp ecx, eax
mov dword [esp + 0x20], ecx
jl 0x40db17
add ebp, 0xfffffff0
mov byte [esp + 0x30], 1
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40ddcc
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebp
call eax
mov byte [esp + 0x30], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ddf1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40de19
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8
push 0x80070057
call fcn.00407b00
call fcn.004154ac
int3