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

Disassembly:
sub esp, 0x7c
push ebx
push ebp
push esi
push edi
mov edi, eax
xor ebp, ebp
test edi, edi
mov dword [esp + 0x14], ebp
jne 0x40d77e
lea eax, [edi - 0x66]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret
mov eax, dword [edi + 0x58]
add eax, dword [edi + 0x48]
mov ecx, dword [edi + 0x5c]
mov edx, dword [edi + 0x10]
adc ecx, dword [edi + 0x4c]
test edx, edx
mov esi, dword [edi + 0x30]
je 0x40d7a4
push 0
push ecx
push eax
mov eax, dword [edi + 0x1c]
push esi
push eax
call edx
add esp, 0x14
jmp 0x40d7bd
xor edx, edx
cmp eax, eax
jne 0x40d7c1
cmp edx, ecx
jne 0x40d7c1
mov ecx, dword [edi + 0x1c]
push edx
mov edx, dword [edi + 0x28]
push eax
push esi
push ecx
call edx
add esp, 0x10
test eax, eax
je 0x40d7c6
or ebp, 0xffffffff
jmp 0x40d7f0
mov ebx, dword [edi + 0x30]
lea eax, [esp + 0x1c]
push eax
mov esi, edi
call fcn.0040c990
add esp, 4
test eax, eax
je 0x40d7e1
or ebp, 0xffffffff
jmp 0x40d7f0
cmp dword [esp + 0x1c], 0x2014b50
je 0x40d7f4
mov ebp, 0xffffff99
mov dword [esp + 0x14], ebp
mov ebx, dword [edi + 0x30]
lea ecx, [esp + 0x30]
push ecx
call fcn.0040c900
add esp, 4
test eax, eax
je 0x40d80f
or ebp, 0xffffffff
mov dword [esp + 0x14], ebp
mov ebx, dword [edi + 0x30]
lea edx, [esp + 0x34]
push edx
call fcn.0040c900
add esp, 4
test eax, eax
je 0x40d82a
or ebp, 0xffffffff
mov dword [esp + 0x14], ebp
mov ebx, dword [edi + 0x30]
lea eax, [esp + 0x38]
push eax
call fcn.0040c900
add esp, 4
test eax, eax
je 0x40d845
or ebp, 0xffffffff
mov dword [esp + 0x14], ebp
mov ebx, dword [edi + 0x30]
lea ecx, [esp + 0x3c]
push ecx
call fcn.0040c900
add esp, 4
test eax, eax
je 0x40d860
or ebp, 0xffffffff
mov dword [esp + 0x14], ebp
mov ebx, dword [edi + 0x30]
lea edx, [esp + 0x40]
push edx
mov esi, edi
call fcn.0040c990
add esp, 4
test eax, eax
je 0x40d87d
or ebp, 0xffffffff
mov dword [esp + 0x14], ebp
mov eax, dword [esp + 0x40]
push 0
push eax
lea edx, [esp + 0x78]
call fcn.0040d6e0
mov ebx, dword [edi + 0x30]
lea ecx, [esp + 0x4c]
push ecx
call fcn.0040c990
add esp, 0xc
test eax, eax
je 0x40d8a8
or ebp, 0xffffffff
mov dword [esp + 0x14], ebp
mov ebx, dword [edi + 0x30]
lea edx, [esp + 0x18]
push edx
call fcn.0040c990
add esp, 4
test eax, eax
je 0x40d8c3
or ebp, 0xffffffff
mov dword [esp + 0x14], ebp
mov eax, dword [esp + 0x18]
mov ebx, dword [edi + 0x30]
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], 0
call fcn.0040c990
add esp, 4
test eax, eax
je 0x40d8ee
or ebp, 0xffffffff
mov dword [esp + 0x14], ebp
mov edx, dword [esp + 0x18]
mov ebx, dword [edi + 0x30]
lea eax, [esp + 0x58]
push eax
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], 0
call fcn.0040c900
add esp, 4
test eax, eax
je 0x40d919
or ebp, 0xffffffff
mov dword [esp + 0x14], ebp
mov ebx, dword [edi + 0x30]
lea ecx, [esp + 0x5c]
push ecx
call fcn.0040c900
add esp, 4
test eax, eax
je 0x40d934
or ebp, 0xffffffff
mov dword [esp + 0x14], ebp
mov ebx, dword [edi + 0x30]
lea edx, [esp + 0x60]
push edx
call fcn.0040c900
add esp, 4
test eax, eax
je 0x40d94f
or ebp, 0xffffffff
mov dword [esp + 0x14], ebp
mov ebx, dword [edi + 0x30]
lea eax, [esp + 0x64]
push eax
call fcn.0040c900
add esp, 4
test eax, eax
je 0x40d96a
or ebp, 0xffffffff
mov dword [esp + 0x14], ebp
mov ebx, dword [edi + 0x30]
lea ecx, [esp + 0x68]
push ecx
call fcn.0040c900
add esp, 4
test eax, eax
je 0x40d985
or ebp, 0xffffffff
mov dword [esp + 0x14], ebp
mov ebx, dword [edi + 0x30]
lea edx, [esp + 0x6c]
push edx
call fcn.0040c990
add esp, 4
test eax, eax
je 0x40d9a0
or ebp, 0xffffffff
mov dword [esp + 0x14], ebp
mov ebx, dword [edi + 0x30]
lea eax, [esp + 0x18]
push eax
call fcn.0040c990
add esp, 4
test eax, eax
je 0x40d9bb
or ebp, 0xffffffff
mov dword [esp + 0x14], ebp
test ebp, ebp
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x58]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], 0
mov eax, esi
jne 0x40da20
mov ecx, dword [esp + 0x98]
test ecx, ecx
je 0x40da20
mov eax, dword [esp + 0x9c]
cmp esi, eax
jae 0x40d9f3
mov byte [esi + ecx], 0
mov ebx, esi
jmp 0x40d9f5
mov ebx, eax
test esi, esi
jbe 0x40da1c
test eax, eax
jbe 0x40da1c
mov eax, dword [edi + 0x30]
mov edx, ecx
mov ecx, dword [edi + 0x1c]
push ebx
push edx
mov edx, dword [edi + 4]
push eax
push ecx
call edx
add esp, 0x10
cmp eax, ebx
je 0x40da1c
or ebp, 0xffffffff
mov dword [esp + 0x14], ebp
sub esi, ebx
mov eax, esi
mov ecx, dword [esp + 0x5c]
add eax, ecx
test ebp, ebp
mov dword [esp + 0x18], eax
jne 0x40dc39
test ecx, ecx
je 0x40dba5
sub eax, ecx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], eax
je 0x40da6a
mov esi, dword [edi + 0x30]
cdq
push edx
push eax
lea edx, [ebp + 1]
mov eax, edi
call fcn.0040f900
add esp, 8
test eax, eax
jne 0x40da63
mov dword [esp + 0x18], eax
jmp 0x40da6a
or ebp, 0xffffffff
mov dword [esp + 0x14], ebp
cmp dword [esp + 0x5c], 0
jbe 0x40db9d
mov ebx, dword [edi + 0x30]
lea eax, [esp + 0x20]
push eax
call fcn.0040c900
add esp, 4
test eax, eax
je 0x40da8c
or ebp, 0xffffffff
mov ebx, dword [edi + 0x30]
lea ecx, [esp + 0x14]
push ecx
call fcn.0040c900
add esp, 4
test eax, eax
je 0x40daa3
or ebp, 0xffffffff
cmp dword [esp + 0x20], 1
mov esi, dword [esp + 0x14]
jne 0x40db46
cmp dword [esp + 0x50], 0xffffffff
jne 0x40dad9
cmp dword [esp + 0x54], 0
jne 0x40dad9
mov ebx, dword [edi + 0x30]
lea edx, [esp + 0x50]
push edx
mov eax, edi
call fcn.0040caa0
add esp, 4
test eax, eax
je 0x40dad9
or ebp, 0xffffffff
cmp dword [esp + 0x48], 0xffffffff
jne 0x40db00
cmp dword [esp + 0x4c], 0
jne 0x40db00
mov ebx, dword [edi + 0x30]
lea eax, [esp + 0x48]
push eax
mov eax, edi
call fcn.0040caa0
add esp, 4
test eax, eax
je 0x40db00
or ebp, 0xffffffff
cmp dword [esp + 0x28], 0xffffffff
jne 0x40db27
cmp dword [esp + 0x2c], 0
jne 0x40db27
mov ebx, dword [edi + 0x30]
lea ecx, [esp + 0x28]
push ecx
mov eax, edi
call fcn.0040caa0
add esp, 4
test eax, eax
je 0x40db27
or ebp, 0xffffffff
cmp dword [esp + 0x64], 0xffffffff
jne 0x40db83
mov ebx, dword [edi + 0x30]
lea edx, [esp + 0x24]
push edx
mov esi, edi
call fcn.0040c990
mov esi, dword [esp + 0x18]
add esp, 4
jmp 0x40db7c
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0x30]
xor edx, edx
test eax, eax
je 0x40db62
push 1
push edx
push esi
push ecx
mov ecx, dword [edi + 0x1c]
push ecx
call eax
add esp, 0x14
jmp 0x40db7c
xor eax, eax
cmp esi, esi
jne 0x40db80
cmp eax, edx
jne 0x40db80
mov edx, dword [edi + 0x1c]
mov eax, dword [edi + 0x28]
push 1
push esi
push ecx
push edx
call eax
add esp, 0x10
test eax, eax
je 0x40db83
or ebp, 0xffffffff
mov ecx, dword [esp + 0x1c]
lea esi, [ecx + esi + 4]
cmp esi, dword [esp + 0x5c]
mov dword [esp + 0x1c], esi
jb 0x40da75
mov dword [esp + 0x14], ebp
test ebp, ebp
jne 0x40dc39
cmp dword [esp + 0xa0], 0
je 0x40dc4e
mov ebx, dword [esp + 0x60]
cmp ebx, dword [esp + 0xa4]
jae 0x40dbcf
mov edx, dword [esp + 0xa0]
mov byte [ebx + edx], 0
mov ebp, ebx
jmp 0x40dbd6
mov ebp, dword [esp + 0xa4]
cmp dword [esp + 0x18], 0
je 0x40dc02
mov eax, dword [esp + 0x18]
mov esi, dword [edi + 0x30]
cdq
push edx
push eax
mov edx, 1
mov eax, edi
call fcn.0040f900
add esp, 8
test eax, eax
je 0x40dc02
mov dword [esp + 0x14], 0xffffffff
test ebx, ebx
jbe 0x40dc43
cmp dword [esp + 0xa4], 0
jbe 0x40dc43
mov eax, dword [esp + 0xa0]
mov ecx, dword [edi + 0x30]
mov edx, dword [edi + 0x1c]
push ebp
push eax
mov eax, dword [edi + 4]
push ecx
push edx
call eax
add esp, 0x10
cmp eax, ebp
je 0x40dc43
mov dword [esp + 0x14], 0xffffffff
mov ebp, dword [esp + 0x14]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret
cmp dword [esp + 0x14], 0
jne 0x40dc35
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0x90]
test edi, edi
mov eax, dword [esp + 0x94]
je 0x40dc6b
mov ecx, 0x16
lea esi, [esp + 0x30]
rep movsd dword es:[edi], dword [esi]
test eax, eax
je 0x40dc39
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
pop edi
pop esi
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, ebp
pop ebp
pop ebx
add esp, 0x7c
ret