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

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [esp + 0x28]
mov eax, dword [esi + 0x648]
mov ecx, dword [esi + 0x854]
lea eax, [eax + eax*2]
add eax, eax
lea edx, [esi + eax*8 + 0x48]
lea eax, [esi + 0x854]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x2c]
mov ebp, dword [eax + 0xd4]
add eax, 0xd4
mov dword [esp + 0xc], edx
lea ebx, [esi + ecx*8 + 0x64c]
mov dword [esp + 0x14], ebp
cmp ebp, eax
je 0x438d40
lea eax, [ebx + 8]
push edi
mov dword [esp + 0x14], eax
jmp 0x438bb4
mov ebp, dword [esp + 0x18]
movzx ecx, byte [ebp + 0x20]
lea eax, [ebp + 0x20]
mov dword [esp + 0x24], eax
and ecx, 0xf
mov ecx, dword [ecx*4 + 0x4d5424]
lea eax, [esi + 0x648]
cmp edx, eax
jae 0x438d38
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x14], eax
jae 0x438d38
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0xa4]
sub eax, dword [esi + 0x40]
mov dword [esp + 0x20], eax
cmp eax, ecx
jb 0x438d38
mov eax, dword [esp + 0x18]
mov edi, dword [eax + 0x50]
test edi, edi
je 0x438c1c
mov edx, dword [edi + 0xc]
add edx, ecx
cmp dword [esp + 0x20], edx
mov edx, dword [esp + 0x10]
jb 0x438d38
cmp dword [eax + 0x50], 0
mov edi, dword [esp + 0x18]
mov edi, dword [edi]
mov dword [esp + 0x18], edi
je 0x438c9c
mov edi, dword [esp + 0x30]
mov edx, dword [edi + 0x78]
add edx, 7
and edx, 0x1f
mov dword [edi + 0x78], edx
cmp edx, dword [edi + 0x70]
jbe 0x438c98
mov ecx, dword [eax + 0x50]
dec dword [ecx]
mov edi, dword [eax + 0x50]
cmp dword [edi], 0
jne 0x438c78
mov eax, dword [edi + 0x10]
test eax, eax
je 0x438c5b
push edi
call eax
add esp, 4
test byte [edi + 4], 4
jne 0x438c6e
mov eax, dword [edi + 8]
push eax
call dword [0x4d5458]
add esp, 4
push edi
call dword [0x4d5458]
add esp, 4
mov ecx, dword [ebp + 4]
mov edx, dword [ebp]
mov dword [ecx], edx
mov eax, dword [ebp]
mov ecx, dword [ebp + 4]
push ebp
mov dword [eax + 4], ecx
call dword [0x4d5458]
add esp, 4
jmp 0x438d1f
mov edx, dword [esp + 0x10]
mov dword [ebx], ecx
mov dword [ebx + 4], edx
add dword [esi + 0x40], ecx
mov esi, dword [esp + 0x24]
mov edi, edx
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 4]
mov ecx, dword [ebp]
mov dword [edx], ecx
mov ecx, dword [ebp + 4]
mov edx, dword [ebp]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 0x50]
test ecx, ecx
je 0x438d04
mov edx, dword [ecx + 8]
mov ecx, dword [esp + 0x2c]
add dword [esp + 0x14], 8
mov dword [ebx + 0xc], edx
mov eax, dword [eax + 0x50]
mov eax, dword [eax + 0xc]
add ebx, 8
mov dword [ebx], eax
add dword [ecx + 0x40], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0xc8]
add eax, 0xc4
mov dword [ebp + 4], ecx
mov dword [ebp], eax
mov edx, ecx
mov dword [edx], ebp
mov dword [eax + 4], ebp
jmp 0x438d0e
push ebp
call dword [0x4d5458]
add esp, 4
add dword [esp + 0x10], 0x30
mov esi, dword [esp + 0x2c]
add ebx, 8
add dword [esp + 0x14], 8
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x10]
add eax, 0xd4
cmp dword [esp + 0x18], eax
jne 0x438bb0
jmp 0x438d3f
mov dword [esi + 0x3c], 1
pop edi
mov ecx, dword [esp + 0x18]
sub edx, esi
sub edx, 0x48
mov eax, 0x2aaaaaab
imul edx
sar edx, 3
sub ebx, esi
mov eax, edx
shr eax, 0x1f
sub ebx, 0x64c
add eax, edx
sar ebx, 3
mov dword [esi + 0x648], eax
mov dword [ecx], ebx
mov ecx, dword [esp + 0x2c]
cmp dword [ecx + 0x28], 6
pop esi
pop ebp
pop ebx
jne 0x438dae
lea eax, [ecx + 0xcc]
cmp dword [eax], eax
jne 0x438dae
lea eax, [ecx + 0xd4]
cmp dword [eax], eax
jne 0x438dae
lea eax, [ecx + 0xbc]
cmp dword [eax], eax
jne 0x438dae
mov edx, dword [ecx + 0x16c]
add esp, 0x18
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
jmp fcn.00436da0
add esp, 0x18
ret