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

Disassembly:
sub esp, 0x28
push ebx
mov ebx, dword [0x41a0b0]
push ebp
push esi
push edi
xor edi, edi
push 0x4201d0
push edi
push edi
mov esi, ecx
push 0x420088
call ebx
push eax
call entry0
add esp, 8
mov dword [esp + 0x14], eax
push 0x4201bc
push edi
push edi
push 0x4200e0
call ebx
push eax
call entry0
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x44]
add esp, 8
cmp eax, edi
je 0x40d5eb
cmp dword [esi + 0x1c], edi
je 0x40d5eb
mov ecx, esi
call fcn.0040d130
lea ebp, [esi + 4]
push 1
push ebp
mov ecx, esi
mov dword [esi + 0x20], edi
call fcn.0040cf10
lea eax, [esp + 0x1c]
push eax
call 0x3f709d2
nop
lea ecx, [esp + 0x1c]
push 8
push ecx
mov ecx, esi
call fcn.0040cf10
push 0x421538
push edi
push edi
push 0x4203ac
call ebx
push eax
call entry0
add esp, 8
lea edx, [esp + 0x24]
mov dword [esp + 0x24], 0x14
push edx
call eax
test eax, eax
je 0x40d4cd
cmp dword [esp + 0x28], 1
jne 0x40d4cd
mov ecx, dword [esp + 0x2c]
lea eax, [esi + 0xcc]
cmp ecx, dword [eax]
je 0x40d4a4
inc edi
add eax, 4
cmp edi, 0x10
jl 0x40d497
push 0x421340
push 0
push 0
push 0x420114
call ebx
push eax
call entry0
mov ecx, dword [esp + 0x34]
add esp, 8
push ecx
call eax
cmp edi, 0x10
je 0x40d4cd
mov eax, edi
jmp 0x40d4d0
or eax, 0xffffffff
lea edx, [esp + 0x13]
push 1
push edx
mov ecx, esi
mov byte [esp + 0x1b], al
call fcn.0040cf10
cmp byte [ebp], 2
jne 0x40d53c
mov eax, dword [esi + 0x68]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
mov eax, dword [esi + 0x44]
push ecx
mov ecx, dword [esi + 0x80]
push edx
push eax
push ecx
mov ecx, esi
call fcn.0040d170
mov edx, dword [esi + 0x68]
mov ecx, dword [esi + 0x20]
mov ebp, dword [esi + 0x1c]
mov eax, dword [edx + 0x14]
mov edx, dword [esi + 0x60]
add ecx, ebp
push eax
mov eax, dword [esi + 0x78]
push ecx
push edx
push eax
mov ecx, esi
call fcn.0040d1f0
mov ecx, dword [esi + 0x20]
pop edi
add eax, ecx
mov ecx, dword [esp + 0x38]
mov dword [ecx], eax
mov eax, dword [esi + 0x1c]
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
mov ecx, dword [esp + 0x20]
xor edx, edx
lea eax, [ecx - 0x13]
test eax, eax
setl dl
dec edx
and edx, eax
mov eax, dword [0x423254]
cmp ecx, eax
mov edi, edx
je 0x40d569
push edi
mov ecx, esi
call fcn.0040cc20
test al, al
je 0x40d569
add edi, 0x13
jmp 0x40d56c
mov edi, dword [esi + 0x30]
cmp edi, dword [esi + 0x2c]
jge 0x40d58a
push edi
mov ecx, esi
call fcn.0040cc20
test al, al
je 0x40d580
add edi, 0x13
mov eax, dword [esi + 0x2c]
add edi, 0x13
cmp edi, eax
jl 0x40d571
mov eax, dword [esp + 0x20]
mov ecx, 0x13
mov dword [0x423254], eax
mov eax, dword [esi + 0x30]
add eax, 3
mov ebx, dword [0x41a070]
cdq
idiv ecx
mov eax, dword [esp + 0x3c]
lea edi, [esi + 0x14]
mov dword [esi + 0x30], edx
mov edx, dword [esi + 0x20]
mov dword [eax], edx
call ebx
mov edx, dword [edi]
mov ecx, dword [esi + 0x18]
sub eax, edx
cmp eax, ecx
jae 0x40d5d6
push 1
call dword [esp + 0x18]
call ebx
mov edx, dword [edi]
mov ecx, dword [esi + 0x18]
sub eax, edx
cmp eax, ecx
jb 0x40d5c3
call ebx
push eax
push edi
call dword [esp + 0x20]
mov eax, dword [esi + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28
ret 4