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

Disassembly:
sub esp, 0x94
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ebp, dword [esp + 0xa8]
push ebp
mov dword [esp + 0x64], edi
mov eax, dword [edi + 4]
lea esi, [edi + 4]
mov dword [esp + 0x2c], esi
mov ecx, dword [eax + 8]
mov edx, dword [ecx + 0xc]
mov dword [esp + 0x1c], edx
mov edx, dword [edi]
mov eax, dword [ecx + 0x10]
mov ecx, edi
mov dword [esp + 0x20], eax
call dword [edx + 0x14]
lea ecx, [esp + 0x7c]
mov ebx, eax
mov eax, dword [edi]
push ebp
push ecx
mov ecx, edi
mov dword [esp + 0x64], ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x80]
mov ecx, dword [esi]
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
mov eax, dword [ecx + 8]
mov edx, dword [eax + 4]
mov ecx, dword [eax + 0x10]
push edx
mov edx, dword [eax + 0xc]
push ecx
push edx
push 0x20
lea edx, [esp + 0x30]
lea ecx, [esp + 0x74]
call fcn.004070b0
mov eax, dword [esi]
push ebp
add eax, 4
lea ecx, [eax + 0xc]
call fcn.00403b80
mov eax, dword [eax]
mov edx, dword [esp + 0x68]
sub edx, eax
mov ecx, ebx
mov dword [esp + 0x68], edx
mov eax, dword [ebx]
call dword [eax + 0x48]
test eax, eax
jle 0x407355
jmp 0x4071af
mov eax, dword [esp + 0x20]
mov edx, dword [ebx]
dec eax
mov dword [esp + 0x20], eax
push eax
lea eax, [esp + 0x98]
mov ecx, ebx
push eax
call dword [edx + 0x54]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x3c], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x40], edx
mov edx, dword [eax + 0xc]
lea eax, [esp + 0x64]
mov dword [esp + 0x44], ecx
push eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x4c], edx
call fcn.00406fe0
mov eax, dword [esp + 0x48]
mov ebp, dword [esp + 0x1c]
cmp eax, ebp
jge 0x4071fb
mov ebp, eax
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x18]
cmp eax, esi
jge 0x407209
mov esi, eax
mov ecx, dword [esp + 0x40]
cmp ecx, 0xffffff01
jg 0x40721a
mov ecx, 0xffffff01
mov eax, dword [esp + 0x3c]
xor edx, edx
test eax, eax
setle dl
dec edx
push ebp
and eax, edx
push esi
push ecx
push eax
lea ecx, [esp + 0x3c]
call fcn.00406fc0
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
add eax, 0x1f
sar eax, 5
add ecx, 0x1f
push eax
mov eax, dword [esp + 0x30]
sar ecx, 5
sar edx, 5
push ecx
push edx
sar eax, 5
push eax
lea ecx, [esp + 0x5c]
call fcn.00406fc0
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x58]
cmp eax, ecx
mov dword [esp + 0x88], 0
mov ebp, eax
jge 0x407342
mov eax, dword [esp + 0x54]
mov ebx, dword [esp + 0x4c]
cmp ebx, eax
jge 0x407331
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x84]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebp
call fcn.00409a20
lea ecx, [eax + 8]
call fcn.00409b20
mov eax, dword [eax + 4]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
shl ecx, 4
add ecx, eax
call fcn.00404060
lea esi, [eax + 4]
mov ecx, esi
call fcn.004099d0
mov edi, dword [eax + 4]
mov edx, dword [esp + 0xa8]
mov eax, dword [edi]
cmp eax, edx
jne 0x4072ea
mov eax, dword [esp + 0x20]
mov ecx, dword [edi + 4]
cmp ecx, eax
je 0x4072ef
add edi, 8
jmp 0x4072d2
mov ecx, esi
call fcn.004099d0
mov esi, eax
push edi
lea ecx, [edi + 8]
mov edx, dword [esi + 8]
call fcn.005c4d00
mov eax, dword [esi + 8]
mov ecx, esi
push eax
add eax, 0xfffffff8
push eax
call fcn.004d1a20
mov edi, dword [esi + 8]
add edi, 0xfffffff8
inc ebx
mov dword [esi + 8], edi
mov eax, dword [esp + 0x54]
cmp ebx, eax
jl 0x407291
mov ebx, dword [esp + 0x4c]
mov edi, dword [esp + 0x60]
mov ecx, dword [esp + 0x58]
inc ebp
cmp ebp, ecx
jl 0x407289
mov ebx, dword [esp + 0x5c]
mov eax, dword [esp + 0x20]
test eax, eax
jg 0x4071ab
mov ebp, dword [esp + 0xa8]
mov edx, dword [edi]
lea eax, [esp + 0x88]
push ebp
push eax
mov ecx, edi
call dword [edx + 0x1c]
mov ecx, dword [eax + 4]
push ecx
mov ecx, edi
mov edx, dword [eax]
lea eax, [esp + 0x1c]
push edx
push eax
call fcn.00405bf0
push ebp
mov ecx, edi
call fcn.00405880
mov ecx, dword [esp + 0x1c]
sub ecx, eax
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x10]
push ecx
mov ecx, edi
call fcn.00405ab0
mov edx, dword [edi]
push ebp
mov ecx, edi
call dword [edx + 0x14]
mov ecx, dword [esp + 0x10]
mov esi, eax
mov eax, dword [esp + 0x14]
push eax
push ecx
push 0xffffff01
push 0
lea ecx, [esp + 0xa4]
call fcn.00406fc0
lea edx, [esp + 0x18]
push eax
mov eax, dword [esi]
lea ecx, [esp + 0x50]
push edx
push ecx
mov ecx, esi
call dword [eax + 0x44]
mov edx, eax
lea ecx, [esp + 0x44]
call fcn.00407020
mov edx, eax
lea ecx, [esp + 0x30]
call fcn.00407060
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
add edx, 0x1f
sar edx, 5
add eax, 0x1f
push edx
mov edx, dword [esp + 0x30]
sar eax, 5
sar ecx, 5
push eax
push ecx
sar edx, 5
push edx
lea ecx, [esp + 0x7c]
call fcn.00406fc0
mov ebx, dword [esp + 0x70]
mov eax, dword [esp + 0x78]
cmp ebx, eax
mov dword [esp + 0x88], 0
jge 0x407489
mov eax, dword [esp + 0x74]
mov esi, dword [esp + 0x6c]
cmp esi, eax
jge 0x407480
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x84]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], ebx
call fcn.00409a20
lea ecx, [eax + 8]
call fcn.00409b20
mov eax, dword [eax + 4]
lea ecx, [esp + 0x10]
push ebp
push ecx
mov ecx, edi
shl ecx, 4
add ecx, eax
call fcn.00404060
mov ecx, eax
call fcn.004041a0
mov eax, dword [esp + 0x74]
inc esi
cmp esi, eax
jl 0x407437
mov esi, dword [esp + 0x6c]
mov ecx, dword [esp + 0x78]
inc ebx
cmp ebx, ecx
jl 0x407433
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret 4