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

Disassembly:
push 0xffffffffffffffff
push 0x45d1e0
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x483ca0]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x483ca0]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov eax, dword [esp + 0x80]
mov ebp, dword [esp + 0x84]
mov ebx, dword [esp + 0x88]
mov dword [esp + 0x14], eax
mov ecx, dword [eax + 0x10]
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], ecx
test ecx, ecx
jne 0x40de51
push dword [esp + 0x38]
lea eax, [esp + 0x33]
push eax
push dword [ebx + 4]
push dword [ebx]
call fcn.0040ad60
mov eax, dword [ebx]
add esp, 0x10
mov dword [ebx + 4], eax
jmp 0x40e09a
test edx, edx
jne 0x40de62
push eax
mov ecx, ebx
call fcn.0040ffb0
jmp 0x40e09a
xor ebx, ebx
xor esi, esi
xor edi, edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], edi
cmp dword [ebp + 0x14], 0x10
mov dword [esp + 0x78], edi
jb 0x40de83
mov ecx, dword [ebp]
jmp 0x40de85
mov ecx, ebp
push edx
push 0
push ecx
mov ecx, eax
call fcn.0040ff10
mov ecx, eax
mov dword [esp + 0x18], ecx
test ecx, ecx
jns 0x40deac
push dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
call fcn.0040ffb0
jmp 0x40e09a
xor eax, eax
mov edi, edi
inc eax
mov dword [esp + 0x30], eax
lea eax, [esp + 0x18]
cmp eax, esi
jae 0x40def0
cmp ebx, eax
ja 0x40def0
mov edi, eax
sub edi, ebx
sar edi, 2
cmp esi, dword [esp + 0x24]
jne 0x40dee5
push 1
lea ecx, [esp + 0x20]
call fcn.0040fcb0
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
test esi, esi
je 0x40df11
mov eax, dword [ebx + edi*4]
mov dword [esi], eax
jmp 0x40df11
cmp esi, edi
jne 0x40df0b
push 1
lea ecx, [esp + 0x20]
call fcn.0040fcb0
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
test esi, esi
je 0x40df11
mov dword [esi], ecx
add esi, 4
mov edi, ecx
cmp dword [ebp + 0x14], 0x10
mov dword [esp + 0x20], esi
jb 0x40df25
mov edx, dword [ebp]
jmp 0x40df27
mov edx, ebp
push dword [ebp + 0x10]
mov eax, dword [esp + 0x38]
add eax, ecx
mov ecx, dword [esp + 0x18]
push eax
push edx
call fcn.0040ff10
mov ecx, eax
mov eax, dword [esp + 0x30]
cmp ecx, edi
mov dword [esp + 0x18], ecx
mov edi, dword [esp + 0x24]
jge 0x40deb0
test eax, eax
jne 0x40df67
push dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
call fcn.0040ffb0
jmp 0x40e08d
sub esi, ebx
xor edi, edi
sar esi, 2
test esi, esi
js 0x40e08d
jmp 0x40df80
push 0
push 0x460828
lea ecx, [esp + 0x44]
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], 0
mov byte [esp + 0x44], 0
call fcn.00401eb7
mov byte [esp + 0x78], 1
test edi, edi
jne 0x40e010
push dword [ebx]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x58]
push edi
push eax
call fcn.00402fa8
mov ebp, eax
lea eax, [esp + 0x3c]
cmp eax, ebp
je 0x40dffb
cmp dword [esp + 0x50], 0x10
jb 0x40dfdc
push dword [esp + 0x3c]
call fcn.004167f4
add esp, 4
push ebp
lea ecx, [esp + 0x40]
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], 0
mov byte [esp + 0x40], 0
call fcn.004091a0
cmp dword [esp + 0x68], 0x10
jb 0x40e05e
push dword [esp + 0x54]
call fcn.004167f4
add esp, 4
jmp 0x40e05e
mov eax, dword [ebx + edi*4 - 4]
mov ecx, dword [esp + 0x34]
add eax, ecx
cmp eax, dword [esp + 0x38]
jge 0x40e05e
cmp edi, esi
jne 0x40e028
push 0xffffffffffffffff
jmp 0x40e03c
test edi, edi
jle 0x40e05e
mov eax, dword [ebx + edi*4]
sub eax, dword [ebx + edi*4 - 4]
sub eax, ecx
push eax
mov eax, dword [ebx + edi*4 - 4]
add eax, ecx
mov ecx, dword [esp + 0x18]
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.00402fa8
push eax
lea ecx, [esp + 0x40]
call fcn.00403c90
lea ecx, [esp + 0x54]
call fcn.0040146f
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x3c]
push eax
call fcn.0040ffb0
cmp dword [esp + 0x50], 0x10
mov byte [esp + 0x78], 0
jb 0x40e084
push dword [esp + 0x3c]
call fcn.004167f4
add esp, 4
inc edi
cmp edi, esi
jle 0x40df80
test ebx, ebx
je 0x40e09a
push ebx
call fcn.004167f4
add esp, 4
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.004396df
add esp, 0x68
ret