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

Disassembly:
sub esp, 0xa4
push ebx
xor ebx, ebx
cmp dword [esp + 0xb8], ebx
jne 0x504774
mov ecx, dword [esp + 0xac]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
mov eax, dword [eax]
push edx
mov edx, dword [esp + 0xb8]
push eax
mov eax, dword [esp + 0xb8]
push edi
push edx
push eax
push ecx
call fcn.00503e40
add esp, 0x18
pop ebx
add esp, 0xa4
ret
mov ecx, dword [0x62aec4]
push ebp
push esi
mov esi, dword [esp + 0xb4]
mov eax, dword [esi]
mov edx, dword [eax + 4]
imul edx, dword [eax]
imul edx, edi
push edx
mov dword [esp + 0x34], ecx
mov dword [0x62aec4], ebx
call fcn.0050a996
add esp, 4
xor ecx, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
jmp 0x5047b4
mov ecx, dword [esp + 0xc]
mov eax, 4
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov edx, 2
mov dword [esp + 0x48], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0x60], eax
mov ebp, 1
mov dword [esp + 0x88], edx
mov dword [esp + 0x8c], edx
mov dword [esp + 0x70], ebp
mov dword [esp + 0x58], ebp
mov ebp, 8
mov dword [esp + 0x68], edx
mov dword [esp + 0x50], edx
mov dword [esp + 0xa8], edx
mov dword [esp + 0xac], edx
mov dword [esp + 0x94], ebp
mov dword [esp + 0x98], ebp
mov dword [esp + 0x9c], ebp
mov dword [esp + 0x78], ebp
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x90], 1
mov ebp, dword [esp + ecx + 0x78]
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x74], ebx
mov eax, dword [esp + ecx + 0x5c]
mov dword [esp + 0x3c], eax
mov edx, ebp
sub edx, eax
mov eax, dword [esi]
mov eax, dword [eax]
lea eax, [edx + eax - 1]
xor edx, edx
div ebp
mov edx, dword [esp + ecx + 0x94]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x54], ebx
mov ecx, dword [esp + ecx + 0x40]
mov dword [esp + 0x24], edx
mov ebp, eax
mov eax, dword [esi]
mov eax, dword [eax + 4]
sub eax, ecx
lea eax, [eax + edx - 1]
xor edx, edx
div dword [esp + 0x24]
mov dword [esp + 0x28], eax
cmp ebp, ebx
je 0x504993
cmp eax, ebx
je 0x504993
mov ecx, dword [esp + 0xbc]
mov edx, dword [esp + 0xb8]
push eax
push ebp
push edi
push ecx
push edx
push esi
call fcn.00503e40
add esp, 0x18
test eax, eax
je 0x5049c7
mov ecx, dword [esp + 0x28]
cmp ecx, ebx
jle 0x504970
mov eax, dword [esp + 0xc]
mov edx, dword [esp + eax + 0x40]
mov eax, ebp
imul eax, edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x20], ecx
cmp ebp, ebx
jle 0x50495d
mov eax, dword [esi]
mov esi, dword [esi + 0xc]
add esi, dword [esp + 0x14]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], ebp
jmp 0x504920
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx]
imul edx, dword [esp + 0x18]
add edx, dword [esp + 0x3c]
push edi
add edx, ebx
imul edx, edi
add edx, dword [esp + 0x14]
push esi
push edx
call fcn.00510c60
add ebx, dword [esp + 0x44]
add esp, 0xc
add esi, edi
sub dword [esp + 0x1c], 1
jne 0x504920
mov esi, dword [esp + 0xb4]
mov eax, dword [esp + 0x34]
xor ebx, ebx
mov ecx, dword [esp + 0x24]
add dword [esp + 0x18], ecx
add dword [esp + 0x14], eax
sub dword [esp + 0x20], 1
jne 0x504903
mov edx, dword [esi + 0xc]
push edx
call fcn.0050a8b9
imul ebp, edi
inc ebp
imul ebp, dword [esp + 0x2c]
add dword [esp + 0xbc], ebp
add esp, 4
sub dword [esp + 0xbc], ebp
mov eax, dword [esp + 0xc]
add eax, 4
cmp eax, 0x1c
mov dword [esp + 0xc], eax
jl 0x5047b0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x30]
mov dword [esi + 0xc], ecx
pop esi
pop ebp
mov dword [0x62aec4], edx
mov eax, 1
pop ebx
add esp, 0xa4
ret
mov eax, dword [esp + 0x10]
push eax
call fcn.0050a8b9
add esp, 4
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xa4
ret