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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x581980]
xor eax, esp
mov dword [esp + 0x48], eax
mov edx, dword [ebp + 0xc]
push ebx
push esi
push edi
mov esi, 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, esi
mov dword [eax + 0xc], edx
call fcn.00412250
mov edi, dword [esi + 0x154]
mov ecx, dword [esi + 0x158]
mov eax, dword [esi + 0x15c]
mov edx, dword [esi + 0x160]
add edi, dword [esi + 0x4b0]
add ecx, dword [esi + 0x4b4]
sub eax, dword [esi + 0x4b8]
sub edx, dword [esi + 0x4bc]
cmp dword [esi + 0x4a8], 0
mov dword [ebp + 8], edi
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x14], edx
jne 0x438ac5
mov ebx, dword [esi]
push 0
push 0
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov edx, dword [ebx + 0x1b4]
jmp 0x439124
mov ecx, dword [esi + 0x4cc]
test ecx, ecx
je 0x438aed
mov eax, dword [ecx]
mov edx, dword [eax + 0xc8]
call edx
test al, al
je 0x438aed
mov ecx, dword [esi + 0x4cc]
mov eax, dword [ecx]
mov edx, dword [eax + 0x58]
call edx
sub dword [ebp + 0x10], eax
mov ecx, dword [esi + 0x4d0]
test ecx, ecx
je 0x438b15
mov eax, dword [ecx]
mov edx, dword [eax + 0xc8]
call edx
test al, al
je 0x438b15
mov ecx, dword [esi + 0x4d0]
mov eax, dword [ecx]
mov edx, dword [eax + 0x60]
call edx
sub dword [ebp + 0x14], eax
mov ebx, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
sub ebx, dword [ebp + 0xc]
mov ecx, dword [esi + 0x4d0]
sub edi, dword [ebp + 8]
mov dword [esp + 0x2c], ebx
test ecx, ecx
je 0x438b49
mov eax, dword [ecx]
mov edx, dword [eax + 0xc8]
call edx
test al, al
je 0x438b49
mov eax, dword [esi + 0x4d0]
add edi, dword [eax + 0x4a4]
xor edx, edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], edx
cmp dword [esi + 0x4a8], edx
jle 0x438c4c
mov ecx, dword [esi + 0x4a4]
mov edx, dword [esp + 0x1c]
mov ebx, dword [ecx + edx*4]
mov eax, dword [ebx]
mov edx, dword [eax + 0xc8]
mov ecx, ebx
call edx
test al, al
je 0x438c2f
mov eax, dword [ebx]
mov edx, dword [eax + 0xf4]
mov ecx, ebx
call edx
test al, al
jne 0x438c2f
mov ecx, dword [esp + 0x2c]
mov eax, dword [ebx]
mov eax, dword [eax + 0x114]
push ecx
push edi
lea edx, [esp + 0x18]
push edx
mov ecx, ebx
call eax
cmp dword [esp + 0x10], 0
jne 0x438bc0
inc dword [esp + 0x20]
jmp 0x438bf8
mov edx, dword [ebx]
mov eax, dword [edx + 0x68]
mov ecx, ebx
call eax
cmp dword [esp + 0x10], eax
jge 0x438bdc
mov edx, dword [ebx]
mov eax, dword [edx + 0x68]
mov ecx, ebx
call eax
mov dword [esp + 0x10], eax
mov edx, dword [ebx]
mov eax, dword [edx + 0x70]
mov ecx, ebx
call eax
cmp dword [esp + 0x10], eax
jle 0x438bf8
mov edx, dword [ebx]
mov eax, dword [edx + 0x70]
mov ecx, ebx
call eax
mov dword [esp + 0x10], eax
mov edx, dword [ebx]
mov edx, dword [edx + 0x48]
lea eax, [esp + 0x44]
push eax
mov ecx, ebx
call edx
add eax, 8
mov dword [esp + 0x30], eax
mov eax, dword [ebx]
mov edx, dword [eax + 0x48]
lea ecx, [esp + 0x34]
push ecx
mov ecx, ebx
call edx
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx]
add edx, dword [eax]
add edx, dword [esp + 0x10]
add dword [esp + 0x18], edx
inc dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
cmp eax, dword [esi + 0x4a8]
jl 0x438b67
mov ebx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
mov ecx, dword [esi + 0x4c0]
dec eax
imul ecx, eax
add edx, ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x30], eax
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], eax
cmp ecx, eax
jle 0x438c87
mov eax, edi
sub eax, edx
cdq
idiv ecx
xor edx, edx
test eax, eax
sets dl
dec edx
and edx, eax
mov dword [esp + 0x24], edx
mov ecx, dword [esi + 0x4d0]
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], ebx
mov ebx, dword [ebp + 8]
xor edi, edi
mov dword [esp + 0x20], ebx
cmp ecx, edi
je 0x438cc0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc8]
call edx
test al, al
je 0x438cc0
mov eax, dword [esi + 0x4d0]
sub ebx, dword [eax + 0x4a8]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], edi
cmp dword [esi + 0x4a8], edi
jle 0x438e9d
mov ecx, dword [esi + 0x4a4]
mov edx, dword [esp + 0x1c]
mov edi, dword [ecx + edx*4]
mov eax, dword [edi]
mov edx, dword [eax + 0xc8]
mov ecx, edi
call edx
test al, al
je 0x438e86
mov eax, dword [edi]
mov edx, dword [eax + 0xf4]
mov ecx, edi
call edx
test al, al
je 0x438d17
mov ecx, dword [esp + 0x1c]
mov eax, dword [esi]
mov edx, dword [eax + 0x1b0]
push ecx
mov ecx, esi
call edx
jmp 0x438e86
mov eax, dword [edi]
mov edx, dword [eax + 0x48]
lea ecx, [esp + 0x34]
push ecx
mov ecx, edi
call edx
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
mov edx, dword [edi]
mov edx, dword [edx + 0x114]
push ecx
push eax
mov dword [esp + 0x30], eax
lea eax, [esp + 0x18]
push eax
mov ecx, edi
call edx
cmp dword [esp + 0x10], 0
mov ecx, edi
jne 0x438d59
mov eax, dword [esp + 0x24]
mov dword [esp + 0x10], eax
mov edx, dword [edi]
mov eax, dword [edx + 0x68]
call eax
cmp dword [esp + 0x10], eax
jge 0x438d73
mov edx, dword [edi]
mov eax, dword [edx + 0x68]
mov ecx, edi
call eax
mov dword [esp + 0x10], eax
mov edx, dword [edi]
mov eax, dword [edx + 0x70]
mov ecx, edi
call eax
cmp dword [esp + 0x10], eax
jle 0x438d8f
mov edx, dword [edi]
mov eax, dword [edx + 0x70]
mov ecx, edi
call eax
mov dword [esp + 0x10], eax
mov edx, dword [edi]
mov eax, dword [edx + 0x60]
mov ecx, edi
call eax
mov dword [esp + 0x14], eax
test eax, eax
jne 0x438db4
mov eax, dword [ebp + 0x14]
sub eax, dword [esp + 0x40]
sub eax, dword [esp + 0x38]
sub eax, dword [ebp + 0xc]
mov dword [esp + 0x14], eax
test eax, eax
jns 0x438dbe
mov dword [esp + 0x14], 0
mov edx, dword [edi]
mov eax, dword [edx + 0x78]
mov ecx, edi
call eax
cmp dword [esp + 0x14], eax
jge 0x438dda
mov edx, dword [edi]
mov eax, dword [edx + 0x78]
mov ecx, edi
call eax
mov dword [esp + 0x14], eax
mov edx, dword [edi]
mov eax, dword [edx + 0x80]
mov ecx, edi
call eax
cmp dword [esp + 0x14], eax
jle 0x438dfc
mov edx, dword [edi]
mov eax, dword [edx + 0x80]
mov ecx, edi
call eax
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
lea edx, [ecx + ebx]
add ecx, dword [esp + 0x10]
mov dword [esp + 0x44], edx
mov edx, dword [ebp + 0xc]
add eax, edx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x38]
add eax, dword [esp + 0x14]
add ecx, ebx
mov ebx, dword [esp + 0x44]
add eax, edx
mov edx, dword [edi]
mov edx, dword [edx + 0x34]
mov dword [esp + 0x50], eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov ebx, dword [esp + 0x58]
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x60]
mov dword [eax + 0xc], ecx
mov ecx, edi
call edx
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0x4c0]
mov ebx, dword [esp + 0x20]
lea edi, [ecx + edx]
mov edx, dword [esp + 0x34]
add edi, edx
add edi, eax
add ebx, edi
mov edi, dword [esp + 0x10]
add edi, ecx
add ecx, dword [esp + 0x10]
add edi, edx
add dword [esp + 0x18], edi
add ecx, eax
sub dword [esp + 0x28], ecx
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
cmp eax, dword [esi + 0x4a8]
jl 0x438cd0
xor edi, edi
mov eax, dword [esi + 0x4c0]
imul eax, dword [esp + 0x30]
mov ecx, dword [esi + 0x4d0]
add dword [esp + 0x18], eax
cmp ecx, edi
je 0x4390fa
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp + 8]
mov edx, dword [ecx]
cmp dword [esp + 0x18], eax
mov eax, dword [edx + 0xc8]
jle 0x43902b
call eax
mov ecx, dword [esi + 0x4d0]
test al, al
je 0x438f4c
mov eax, dword [esp + 0x18]
sub eax, dword [ebp + 0x10]
add eax, dword [ebp + 8]
cmp dword [ecx + 0x4a4], eax
je 0x4390fa
mov dword [ecx + 0x4a4], eax
cmp eax, edi
jge 0x438f04
mov dword [ecx + 0x4a4], edi
mov eax, dword [ecx + 0x4a4]
cmp dword [ecx + 0x4a8], eax
jle 0x438f18
mov dword [ecx + 0x4a8], eax
mov ebx, dword [ecx + 0x154]
mov edx, dword [ecx]
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov ebx, dword [ecx + 0x158]
mov dword [eax + 4], ebx
mov ebx, dword [ecx + 0x15c]
mov dword [eax + 8], ebx
mov ebx, dword [ecx + 0x160]
mov dword [eax + 0xc], ebx
mov eax, dword [edx + 0x34]
call eax
jmp 0x4390fa
mov edx, dword [ecx]
mov eax, dword [edx + 0xcc]
push 1
call eax
mov eax, dword [esp + 0x18]
sub eax, dword [ebp + 0x10]
mov ecx, dword [esi + 0x4d0]
add eax, dword [ebp + 8]
cmp dword [ecx + 0x4a4], eax
je 0x438fc3
mov dword [ecx + 0x4a4], eax
cmp eax, edi
jge 0x438f80
mov dword [ecx + 0x4a4], edi
mov eax, dword [ecx + 0x4a4]
cmp dword [ecx + 0x4a8], eax
jle 0x438f94
mov dword [ecx + 0x4a8], eax
mov ebx, dword [ecx + 0x154]
mov edx, dword [ecx]
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov ebx, dword [ecx + 0x158]
mov dword [eax + 4], ebx
mov ebx, dword [ecx + 0x15c]
mov dword [eax + 8], ebx
mov ebx, dword [ecx + 0x160]
mov dword [eax + 0xc], ebx
mov eax, dword [edx + 0x34]
call eax
mov ecx, dword [esi + 0x4d0]
cmp dword [ecx + 0x4a8], edi
je 0x439016
mov eax, dword [ecx + 0x4a4]
mov dword [ecx + 0x4a8], edi
cmp eax, edi
jge 0x438fe7
mov dword [ecx + 0x4a8], eax
mov ebx, dword [ecx + 0x154]
mov edx, dword [ecx]
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov ebx, dword [ecx + 0x158]
mov dword [eax + 4], ebx
mov ebx, dword [ecx + 0x15c]
mov dword [eax + 8], ebx
mov ebx, dword [ecx + 0x160]
mov dword [eax + 0xc], ebx
mov eax, dword [edx + 0x34]
call eax
mov ecx, dword [esi + 0x4d0]
mov edx, dword [ecx]
mov eax, dword [edx + 0x60]
call eax
sub dword [ebp + 0x14], eax
jmp 0x4390fa
call eax
test al, al
je 0x4390fa
mov ecx, dword [esi + 0x4d0]
mov edx, dword [ecx]
mov eax, dword [edx + 0xcc]
push edi
call eax
mov ecx, dword [esi + 0x4d0]
cmp dword [ecx + 0x4a4], edi
je 0x439097
mov dword [ecx + 0x4a4], edi
cmp dword [ecx + 0x4a8], edi
jle 0x439068
mov dword [ecx + 0x4a8], edi
mov ebx, dword [ecx + 0x154]
mov edx, dword [ecx]
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov ebx, dword [ecx + 0x158]
mov dword [eax + 4], ebx
mov ebx, dword [ecx + 0x15c]
mov dword [eax + 8], ebx
mov ebx, dword [ecx + 0x160]
mov dword [eax + 0xc], ebx
mov eax, dword [edx + 0x34]
call eax
mov ecx, dword [esi + 0x4d0]
cmp dword [ecx + 0x4a8], edi
je 0x4390ea
mov eax, dword [ecx + 0x4a4]
mov dword [ecx + 0x4a8], edi
cmp eax, edi
jge 0x4390bb
mov dword [ecx + 0x4a8], eax
mov ebx, dword [ecx + 0x154]
mov edx, dword [ecx]
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov ebx, dword [ecx + 0x158]
mov dword [eax + 4], ebx
mov ebx, dword [ecx + 0x15c]
mov dword [eax + 8], ebx
mov ebx, dword [ecx + 0x160]
mov dword [eax + 0xc], ebx
mov eax, dword [edx + 0x34]
call eax
mov ecx, dword [esi + 0x4d0]
mov edx, dword [ecx]
mov eax, dword [edx + 0x60]
call eax
add dword [ebp + 0x14], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 8]
mov edx, dword [esi]
mov edx, dword [edx + 0x1b4]
push edi
push eax
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, esi
call edx
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004f2889
mov esp, ebp
pop ebp
ret 0x10