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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xac
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 0xc]
push ebx
push esi
push edi
push eax
mov edi, ecx
mov ecx, dword [ebp + 8]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov edx, dword [ebp + 0x14]
mov dword [eax + 8], ecx
mov ecx, edi
mov dword [esp + 0x50], edi
mov dword [eax + 0xc], edx
call fcn.004204f0
mov eax, dword [edi + 0x158]
mov edx, dword [edi + 0x160]
mov ecx, dword [edi + 0x15c]
mov dword [ebp + 8], eax
mov eax, dword [edi + 0x164]
mov dword [ebp + 0x10], edx
mov edx, dword [edi]
mov edx, dword [edx + 0x178]
mov dword [ebp + 0x14], eax
lea eax, [esp + 0x88]
mov dword [ebp + 0xc], ecx
push eax
mov ecx, edi
call edx
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x8c]
add dword [ebp + 8], eax
add dword [ebp + 0xc], ecx
mov edx, dword [esp + 0x90]
mov eax, dword [esp + 0x94]
mov ecx, dword [edi + 0x584]
sub dword [ebp + 0x10], edx
sub dword [ebp + 0x14], eax
test ecx, ecx
je 0x440a37
mov edx, dword [ecx]
mov eax, dword [edx + 0x100]
call eax
test al, al
je 0x440a37
mov ecx, dword [edi + 0x584]
mov edx, dword [ecx]
mov eax, dword [edx + 0x88]
call eax
sub dword [ebp + 0x10], eax
mov ecx, dword [edi + 0x588]
test ecx, ecx
je 0x440a62
mov edx, dword [ecx]
mov eax, dword [edx + 0x100]
call eax
test al, al
je 0x440a62
mov ecx, dword [edi + 0x588]
mov edx, dword [ecx]
mov eax, dword [edx + 0x90]
call eax
sub dword [ebp + 0x14], eax
cmp dword [edi + 0x558], 0
jne 0x440a74
push 0
push 0
jmp 0x441230
mov eax, dword [edi]
mov edx, dword [eax + 0x180]
mov ecx, edi
call edx
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
sub esi, dword [ebp + 8]
sub ebx, dword [ebp + 0xc]
mov ecx, dword [edi + 0x588]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], ebx
test ecx, ecx
je 0x440ac0
mov eax, dword [ecx]
mov edx, dword [eax + 0x100]
call edx
test al, al
je 0x440ac0
mov eax, dword [edi + 0x588]
add esi, dword [eax + 0x558]
mov dword [esp + 0x44], esi
mov ecx, dword [edi + 0x584]
test ecx, ecx
je 0x440ae8
mov edx, dword [ecx]
mov eax, dword [edx + 0x100]
call eax
test al, al
je 0x440ae8
mov ecx, dword [edi + 0x584]
add ebx, dword [ecx + 0x558]
mov dword [esp + 0x48], ebx
xor ebx, ebx
cmp dword [edi + 0x558], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x34], ebx
jle 0x440cef
lea ebx, [ebx]
mov edx, dword [edi + 0x554]
mov esi, dword [edx + ebx*4]
mov eax, dword [esi]
mov edx, dword [eax + 0x100]
mov ecx, esi
call edx
test al, al
je 0x440cde
mov eax, dword [esi]
mov edx, dword [eax + 0x12c]
mov ecx, esi
call edx
test al, al
jne 0x440cde
mov eax, dword [esp + 0x48]
mov edx, dword [esi]
mov ebx, dword [esp + 0x44]
mov edx, dword [edx + 0x74]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x74]
push eax
mov ecx, esi
mov dword [esp + 0x30], ebx
call edx
sub ebx, dword [esp + 0x7c]
mov eax, dword [esi]
mov edx, dword [eax + 0x88]
sub ebx, dword [esp + 0x74]
mov ecx, esi
call edx
mov dword [esp + 0x1c], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x90]
mov ecx, esi
call edx
cmp dword [esp + 0x1c], 0
mov dword [esp + 0x28], eax
jg 0x440b9e
mov eax, dword [esi]
mov edx, dword [eax + 0xa0]
mov ecx, esi
call edx
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x28]
test ecx, ecx
jg 0x440bb8
mov eax, dword [esi]
mov edx, dword [eax + 0xb0]
mov ecx, esi
call edx
mov dword [esp + 0x28], eax
mov ecx, eax
mov eax, dword [esp + 0x1c]
cmp ebx, eax
jle 0x440bc2
mov ebx, eax
cmp dword [esp + 0x30], ecx
jle 0x440bcc
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x30]
mov eax, dword [esi]
mov eax, dword [eax + 0x14c]
push ecx
push ebx
lea edx, [esp + 0x18]
push edx
mov ecx, esi
call eax
cmp dword [esp + 0x14], 0
jne 0x440bf0
inc dword [esp + 0x38]
jmp 0x440c34
mov edx, dword [esi]
mov eax, dword [edx + 0xa8]
mov ecx, esi
call eax
cmp dword [esp + 0x14], eax
jge 0x440c12
mov edx, dword [esi]
mov eax, dword [edx + 0xa8]
mov ecx, esi
call eax
mov dword [esp + 0x14], eax
mov edx, dword [esi]
mov eax, dword [edx + 0xb0]
mov ecx, esi
call eax
cmp dword [esp + 0x14], eax
jle 0x440c34
mov edx, dword [esi]
mov eax, dword [edx + 0xb0]
mov ecx, esi
call eax
mov dword [esp + 0x14], eax
mov edx, dword [esi]
mov edx, dword [edx + 0x74]
lea eax, [esp + 0xa8]
push eax
mov ecx, esi
call edx
lea ebx, [eax + 0xc]
mov eax, dword [esi]
mov edx, dword [eax + 0x74]
lea ecx, [esp + 0x98]
push ecx
mov ecx, esi
call edx
mov eax, dword [eax + 4]
add eax, dword [esp + 0x14]
xor ecx, ecx
add eax, dword [ebx]
add dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
test eax, eax
setle cl
dec ecx
and ecx, eax
mov dword [esp + 0x10], ecx
mov edx, dword [esi]
mov eax, dword [edx + 0x98]
mov ecx, esi
call eax
cmp dword [esp + 0x10], eax
jge 0x440c9a
mov edx, dword [esi]
mov eax, dword [edx + 0x98]
mov ecx, esi
call eax
mov dword [esp + 0x10], eax
mov edx, dword [esi]
mov eax, dword [edx + 0xa0]
mov ecx, esi
call eax
mov ecx, dword [esp + 0x10]
cmp ecx, eax
jle 0x440cc0
mov edx, dword [esi]
mov eax, dword [edx + 0xa0]
mov ecx, esi
call eax
mov ecx, eax
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x74]
add ecx, edx
add eax, ecx
cmp dword [esp + 0x60], eax
jg 0x440cd6
mov dword [esp + 0x60], eax
inc dword [esp + 0x24]
mov ebx, dword [esp + 0x34]
inc ebx
cmp ebx, dword [edi + 0x558]
mov dword [esp + 0x34], ebx
jl 0x440b10
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x38]
dec eax
imul eax, dword [esp + 0x40]
add dword [esp + 0x18], eax
xor esi, esi
cmp ecx, esi
mov dword [esp + 0x84], eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x68], esi
jle 0x440d2f
mov eax, dword [esp + 0x48]
sub eax, dword [esp + 0x18]
cdq
idiv ecx
xor ecx, ecx
cmp eax, esi
setl cl
dec ecx
and ecx, eax
mov dword [esp + 0x68], ecx
mov ecx, dword [edi + 0x584]
mov esi, dword [esp + 0x48]
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x70], esi
mov dword [esp + 0x20], ebx
test ecx, ecx
je 0x440d64
mov edx, dword [ecx]
mov eax, dword [edx + 0x100]
call eax
test al, al
je 0x440d64
mov ecx, dword [edi + 0x584]
sub ebx, dword [ecx + 0x560]
jmp 0x440d96
cmp dword [esp + 0x38], 0
jg 0x440d9a
mov edx, dword [edi]
mov eax, dword [edx + 0x190]
mov ecx, edi
call eax
cmp eax, 4
jne 0x440d8b
mov eax, esi
sub eax, dword [esp + 0x18]
cdq
sub eax, edx
sar eax, 1
add ebx, eax
jmp 0x440d96
cmp eax, 8
jne 0x440d9a
sub esi, dword [esp + 0x18]
add ebx, esi
mov dword [esp + 0x20], ebx
mov ecx, dword [esp + 0x18]
xor eax, eax
cmp dword [edi + 0x558], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], eax
jle 0x44121d
lea esp, [esp]
mov edx, dword [edi + 0x554]
mov eax, dword [esp + 0x24]
mov esi, dword [edx + eax*4]
mov edx, dword [esi]
mov eax, dword [edx + 0x100]
mov ecx, esi
call eax
test al, al
je 0x441208
mov edx, dword [esi]
mov eax, dword [edx + 0x12c]
mov ecx, esi
call eax
test al, al
je 0x440e07
mov edx, dword [edi]
mov eax, dword [esp + 0x24]
mov edx, dword [edx + 0x204]
push eax
mov ecx, edi
call edx
jmp 0x441208
mov eax, dword [esi]
mov edx, dword [eax + 0x74]
inc dword [esp + 0x5c]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, esi
call edx
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x70]
sub ecx, dword [esp + 0x50]
mov dword [esp + 0x2c], eax
sub eax, dword [esp + 0x54]
mov dword [esp + 0x70], ecx
sub eax, dword [esp + 0x4c]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x88]
mov ecx, esi
call edx
mov dword [esp + 0x1c], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x90]
mov ecx, esi
call edx
cmp dword [esp + 0x1c], 0
mov dword [esp + 0x28], eax
jg 0x440e74
mov eax, dword [esi]
mov edx, dword [eax + 0xa0]
mov ecx, esi
call edx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
test eax, eax
jg 0x440e8c
mov eax, dword [esi]
mov edx, dword [eax + 0xb0]
mov ecx, esi
call edx
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x1c]
cmp dword [esp + 0x2c], ecx
jle 0x440e9a
mov dword [esp + 0x2c], ecx
cmp dword [esp + 0x30], eax
jle 0x440ea4
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x58]
add ecx, eax
sub dword [esp + 0x18], ecx
cmp dword [esp + 0x5c], 1
jle 0x440ec1
mov edx, dword [esp + 0x40]
sub dword [esp + 0x18], edx
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [esi]
push ecx
push edx
mov edx, dword [eax + 0x14c]
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call edx
cmp dword [esp + 0x14], 0
jne 0x440f5b
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
inc eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x14], ecx
cmp eax, dword [esp + 0x38]
jne 0x440f15
mov eax, dword [esp + 0x70]
sub eax, dword [esp + 0x58]
mov edx, 0
sub eax, dword [esp + 0x18]
sets dl
dec edx
and edx, eax
mov dword [esp + 0x14], edx
mov eax, dword [esi]
mov edx, dword [eax + 0xa8]
mov ecx, esi
call edx
cmp dword [esp + 0x14], eax
jge 0x440f37
mov eax, dword [esi]
mov edx, dword [eax + 0xa8]
mov ecx, esi
call edx
mov dword [esp + 0x14], eax
mov eax, dword [esi]
mov edx, dword [eax + 0xb0]
mov ecx, esi
call edx
cmp dword [esp + 0x14], eax
jle 0x440fa7
mov eax, dword [esi]
mov edx, dword [eax + 0xb0]
mov ecx, esi
call edx
mov dword [esp + 0x14], eax
jmp 0x440fa7
mov eax, dword [esi]
mov edx, dword [eax + 0xa8]
mov ecx, esi
call edx
cmp dword [esp + 0x14], eax
jge 0x440f7d
mov eax, dword [esi]
mov edx, dword [eax + 0xa8]
mov ecx, esi
call edx
mov dword [esp + 0x14], eax
mov eax, dword [esi]
mov edx, dword [eax + 0xb0]
mov ecx, esi
call edx
mov ecx, dword [esp + 0x14]
cmp ecx, eax
jle 0x440fa3
mov eax, dword [esi]
mov edx, dword [eax + 0xb0]
mov ecx, esi
call edx
mov ecx, eax
mov dword [esp + 0x14], ecx
sub dword [esp + 0x18], ecx
mov eax, dword [esp + 0x10]
xor ecx, ecx
test eax, eax
setle cl
dec ecx
and ecx, eax
mov eax, ecx
mov dword [esp + 0x10], eax
jne 0x440fcd
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x54]
sub eax, dword [esp + 0x4c]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x2c]
cmp eax, ecx
jle 0x440fd9
mov dword [esp + 0x10], ecx
mov edx, dword [esi]
mov eax, dword [edx + 0x98]
mov ecx, esi
call eax
cmp dword [esp + 0x10], eax
jge 0x440ffb
mov edx, dword [esi]
mov eax, dword [edx + 0x98]
mov ecx, esi
call eax
mov dword [esp + 0x10], eax
mov edx, dword [edi]
mov eax, dword [edx + 0x188]
mov ecx, edi
call eax
cmp eax, 1
jne 0x4410bb
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
lea eax, [edx + ecx]
mov ecx, dword [edi + 0x588]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x20], eax
test ecx, ecx
je 0x441055
mov eax, dword [ecx]
mov edx, dword [eax + 0x100]
call edx
test al, al
je 0x441055
mov ecx, dword [edi + 0x588]
mov eax, dword [ecx + 0x558]
cdq
sub eax, edx
sar eax, 1
sub eax, dword [ecx + 0x560]
add dword [esp + 0x20], eax
mov ecx, dword [esp + 0x10]
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x20]
sar eax, 1
sub edx, eax
mov eax, dword [esp + 0x50]
add ecx, edx
add eax, ebx
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x14]
add eax, ecx
mov ecx, dword [esp + 0x78]
add eax, ebx
push 0
mov dword [esp + 0x84], eax
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x90]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x94]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x5c]
mov ecx, esi
call edx
jmp 0x4411dd
cmp eax, 2
jne 0x441158
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 0x588]
mov edi, dword [ebp + 0x10]
test ecx, ecx
je 0x4410fb
mov edx, dword [ecx]
mov eax, dword [edx + 0x100]
call eax
test al, al
je 0x4410fb
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx + 0x588]
mov edx, dword [eax + 0x558]
sub edx, dword [eax + 0x560]
add edi, edx
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
mov eax, edi
sub eax, dword [esp + 0x10]
add edx, ebx
sub eax, ecx
sub edi, ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x9c], edx
mov edx, dword [esp + 0x50]
push 0
mov dword [esp + 0xa4], edi
lea edi, [ecx + edx]
mov edx, dword [esi]
mov edx, dword [edx + 0x5c]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [esp + 0xb0]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0xb4]
add edi, ebx
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edi
mov ecx, esi
call edx
jmp 0x4411d9
mov ecx, dword [edi + 0x588]
mov eax, dword [ebp + 8]
mov dword [esp + 0x1c], eax
test ecx, ecx
je 0x441187
mov edx, dword [ecx]
mov eax, dword [edx + 0x100]
call eax
test al, al
je 0x441187
mov ecx, dword [edi + 0x588]
mov edx, dword [ecx + 0x560]
sub dword [esp + 0x1c], edx
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x1c]
add edx, ebx
lea edi, [ecx + eax]
mov dword [esp + 0xac], edx
mov edx, dword [esp + 0x10]
add ecx, edx
mov edx, dword [esp + 0x50]
add ecx, eax
mov eax, dword [esp + 0x14]
push 0
add edx, eax
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov edi, dword [esp + 0xc0]
mov dword [eax + 4], edi
add edx, ebx
mov ebx, dword [esi]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [ebx + 0x5c]
mov ecx, esi
call eax
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x58]
mov esi, dword [esp + 0x50]
lea eax, [ecx + edx]
add eax, esi
mov esi, dword [esp + 0x40]
add dword [esp + 0x34], eax
add ecx, edx
add ecx, dword [esp + 0x40]
add esi, eax
add ebx, esi
sub dword [esp + 0x70], ecx
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x24]
inc eax
cmp eax, dword [edi + 0x558]
mov dword [esp + 0x24], eax
jl 0x440dc0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x84]
add eax, ecx
push eax
mov eax, dword [esp + 0x64]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [edi]
mov edx, dword [edx + 0x208]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebp + 0x14]
mov dword [eax + 0xc], ecx
mov ecx, edi
call edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14