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

Disassembly:
mov eax, dword [esp + 0x18]
call fcn.00404720
mov dword [esp + 4], eax
mov eax, dword [esp + 0x1c]
call fcn.00404720
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x1c]
jge 0x50c32d
mov eax, dword [esp + 0x18]
inc esp
and al, 0x18
mov dword [esp + 0x3c], eax
jmp 0x50c335
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x3c]
sar eax, 1
jns 0x50c340
adc eax, 0
call fcn.00404720
mov dword [esp + 0xc], eax
mov eax, 0x28
call fcn.00404720
movzx edi, byte [esp + 0x24]
sub edi, eax
mov eax, dword [esp + 0x28]
imul edi
mov ecx, 0xff
cdq
idiv ecx
mov ecx, eax
movzx ecx, cl
mov eax, dword [esp + 0x30]
imul edi
mov ebx, 0xff
cdq
idiv ebx
movzx eax, al
shl eax, 8
or ecx, eax
mov eax, dword [esp + 0x2c]
imul edi
mov ebx, 0xff
cdq
idiv ebx
movzx eax, al
shl eax, 0x10
or ecx, eax
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0xc]
dec eax
test eax, eax
jl 0x50c4ae
inc eax
mov dword [esp + 0x34], eax
xor edi, edi
mov eax, dword [esi + 0x74db029c]
cmp byte [eax + 0x39], 9
jne 0x50c435
mov eax, dword [esp + 4]
sub eax, edi
test eax, eax
jle 0x50c3f4
mov eax, dword [esp + 8]
add eax, edi
cmp eax, dword [esp + 0x1c]
jge 0x50c3f4
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [esi + 0x74db0378]
call fcn.00464c88
mov ecx, dword [esp + 0xc]
add ecx, edi
mov edx, dword [esp + 8]
add edx, edi
mov ebx, dword [eax]
call dword [ebx + 0x20]
mov eax, dword [esp + 4]
add eax, edi
cmp eax, dword [esp + 0x18]
jge 0x50c4a3
mov eax, dword [esp + 8]
sub eax, edi
test eax, eax
jle 0x50c4a3
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [esi + 0x74db0378]
call fcn.00464c88
mov ecx, dword [esp + 0xc]
sub ecx, edi
mov edx, dword [esp + 8]
sub edx, edi
mov ebx, dword [eax]
call dword [ebx + 0x20]
jmp 0x50c4a3
mov eax, dword [esp + 4]
sub eax, edi
test eax, eax
jle 0x50c46c
mov eax, dword [esp + 8]
add eax, edi
cmp eax, dword [esp + 0x1c]
jge 0x50c46c
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [esi + 0x74db0378]
call fcn.00464c88
mov ecx, dword [esp + 0xc]
add ecx, edi
mov edx, dword [esp + 8]
sub edx, edi
mov ebx, dword [eax]
call dword [ebx + 0x20]
mov eax, dword [esp + 4]
add eax, edi
cmp eax, dword [esp + 0x18]
jge 0x50c4a3
mov eax, dword [esp + 8]
sub eax, edi
test eax, eax
jle 0x50c4a3
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [esi + 0x74db0378]
call fcn.00464c88
mov ecx, dword [esp + 0xc]
sub ecx, edi
mov edx, dword [esp + 8]
add edx, edi
mov ebx, dword [eax]
call dword [ebx + 0x20]
inc edi
dec dword [esp + 0x34]
jne 0x50c3b1
dec dword [esp]
jne 0x50c2ff
mov dword [esp], 0x78
mov eax, dword [esp + 0x18]
test eax, eax
jl 0x50d013
inc eax
mov dword [esp + 0x34], eax
xor edi, edi
mov eax, dword [esp + 0x1c]
test eax, eax
jl 0x50c5c6
inc eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x10], 0
mov eax, dword [esi + 0x74db0378]
call fcn.00464c88
mov ecx, dword [esp + 0x10]
mov edx, edi
mov ebx, dword [eax]
call dword [ebx + 0x18]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
shr eax, 0x10
movzx eax, al
mov dword [esp + 4], eax
movzx ecx, byte [esp + 0x24]
mov eax, ecx
sub eax, dword [esp + 4]
mov dword [esp + 4], eax
mov eax, dword [esp]
imul edi
cdq
idiv dword [esp + 0x18]
mov ebx, eax
add ebx, dword [esp + 4]
mov eax, dword [esp]
imul dword [esp + 0x10]
cdq
idiv dword [esp + 0x1c]
add ebx, eax
mov dword [esp + 4], ebx
mov eax, dword [esp + 4]
inc esp
and al, 4
sar eax, 1
jns 0x50c54e
adc eax, 0
sub ecx, eax
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x28]
imul dword [esp + 4]
mov ecx, 0xff
cdq
idiv ecx
mov ecx, eax
movzx ecx, cl
mov eax, dword [esp + 0x30]
imul dword [esp + 4]
mov ebx, 0xff
cdq
idiv ebx
movzx eax, al
shl eax, 8
or ecx, eax
mov eax, dword [esp + 0x2c]
imul dword [esp + 4]
mov ebx, 0xff
cdq
idiv ebx
movzx eax, al
shl eax, 0x10
or ecx, eax
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [esi + 0x74db0378]
call fcn.00464c88
mov ecx, dword [esp + 0x14]
mov edx, edi
mov ebx, dword [eax]
call dword [ebx + 0x20]
inc dword [esp + 0x10]
dec dword [esp + 0x38]
jne 0x50c4ea
inc edi
dec dword [esp + 0x34]
jne 0x50c4d1
jmp 0x50e0f5
invalid