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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x64da0b
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x6af168]
xor eax, esp
mov dword [esp + 0xc8], eax
push ebx
push esi
push edi
mov eax, dword [0x6af168]
xor eax, esp
push eax
lea eax, [esp + 0xe0]
mov dword fs:[0], eax
cmp dword [ebp + 0xc], 0
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov esi, ecx
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x10], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x50], ecx
je 0x5245bf
mov ecx, esi
call fcn.0050a110
test al, al
je 0x52428e
mov ebx, dword [edx + 4]
mov eax, dword [edx + 8]
mov edi, dword [edx]
add eax, ebx
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
cmp eax, 1
mov dword [esp + 0x1c], edi
jle 0x5241b5
add eax, 0xffffffff
lea ecx, [edx + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [ecx]
cmp eax, ebx
jge 0x524180
mov ebx, eax
mov edx, dword [ecx + 4]
lea eax, [edx + eax - 1]
cmp eax, dword [esp + 0x18]
jle 0x524191
mov dword [esp + 0x18], eax
mov eax, dword [ecx - 4]
cmp eax, edi
jge 0x52419a
mov edi, eax
cmp eax, dword [esp + 0x1c]
jle 0x5241a4
mov dword [esp + 0x1c], eax
add ecx, 0xc
sub dword [esp + 0x14], 1
jne 0x524178
mov edx, dword [esp + 0x10]
mov eax, dword [ebp + 0xc]
test eax, eax
jle 0x5241cd
mov ecx, dword [ebp + 0xc]
mov eax, edx
mov edi, edi
sub dword [eax + 4], ebx
sub dword [eax], edi
add eax, 0xc
sub ecx, 1
jne 0x5241c0
lea ecx, [esp + 0x64]
call fcn.0052f650
mov eax, dword [esp + 0x1c]
sub eax, edi
lea ecx, [eax + 1]
mov eax, dword [esp + 0x18]
sub eax, ebx
add eax, 1
push ecx
mov dword [esp + 0x24], ecx
push eax
lea ecx, [esp + 0x6c]
mov dword [esp + 0xf0], 0
mov dword [esp + 0x38], eax
call fcn.00532450
mov eax, dword [ebp + 0x28]
mov ecx, dword [ebp + 0x24]
mov edx, dword [ebp + 0x20]
push eax
mov eax, dword [ebp + 0x1c]
push ecx
mov ecx, dword [esp + 0x58]
sub edx, edi
push edx
mov edx, dword [ebp + 0x14]
sub eax, ebx
push eax
mov eax, dword [esp + 0x34]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [esp + 0x28]
push eax
push ecx
push edx
lea ecx, [esp + 0x88]
call fcn.00538ee0
mov ecx, dword [esp + 0x20]
mov edx, dword [esi]
mov edx, dword [edx + 0x24]
xor eax, eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x5c], eax
mov eax, dword [ebp + 0x14]
push eax
push 0x6bac38
mov dword [esp + 0x68], ecx
lea ecx, [esp + 0x5c]
push ecx
push edi
push ebx
lea eax, [esp + 0x78]
push eax
mov ecx, esi
call edx
lea ecx, [esp + 0x64]
mov dword [esp + 0xe8], 0xffffffff
call fcn.0052f9a0
jmp 0x5245bf
mov eax, esi
call fcn.0050ade0
mov eax, dword [esi]
mov edx, dword [eax + 0xbc]
mov ecx, esi
call edx
test al, al
je 0x5245bf
mov eax, dword [esi + 0xd4]
cmp eax, 0x10
mov edi, dword [esi + 0xd8]
mov ecx, dword [esi + 0xdc]
mov ebx, dword [esi + 0xe0]
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x30], ebx
jne 0x524448
mov eax, dword [esp + 0x24]
mov edx, dword [eax + 4]
imul edx, ecx
shr edx, 8
and edx, ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax]
imul ecx, ebx
imul eax, edi
shr ecx, 8
and ecx, ebx
shr eax, 8
or edx, ecx
and eax, edi
or edx, eax
mov eax, dword [ebp + 0xc]
test eax, eax
movzx ecx, dx
mov edx, dword [esi + 0xa4]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x3c], edx
jle 0x5245ae
mov ecx, dword [esp + 0x10]
add ecx, 8
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x20], eax
lea esp, [esp]
mov esi, dword [esi + 0x24]
mov eax, dword [ecx - 8]
mov edx, dword [ecx - 4]
imul esi, eax
sub eax, dword [ebp + 0x20]
add esi, edx
imul eax, dword [ebp + 0x24]
sub eax, dword [ebp + 0x1c]
mov edx, dword [esp + 0x3c]
add eax, dword [esp + 0x50]
lea esi, [edx + esi*2]
add eax, dword [ecx - 4]
cmp dword [ecx], 0
mov dword [esp + 0x10], esi
mov dword [esp + 0x28], 0
jle 0x52442d
movzx ecx, word [esp + 0x4c]
mov edx, ecx
and edx, dword [esp + 0x14]
mov dword [esp + 0x38], edx
mov edx, ecx
and edx, edi
and ecx, ebx
mov dword [esp + 0x34], edx
mov dword [esp + 0x40], ecx
jmp 0x524394
mov eax, dword [esp + 0x44]
movzx ecx, byte [eax]
mov ebx, dword [esp + 0x34]
add eax, 1
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x24]
add ecx, 1
imul ecx, dword [eax + 0xc]
movzx eax, word [esi]
movzx eax, ax
mov esi, eax
and esi, edi
sar ecx, 8
imul ebx, ecx
mov edx, 0x100
sub edx, ecx
imul esi, edx
add esi, ebx
mov ebx, dword [esp + 0x38]
shr esi, 8
imul ebx, ecx
and esi, edi
mov edi, eax
and edi, dword [esp + 0x14]
imul edi, edx
add edi, ebx
mov ebx, dword [esp + 0x30]
and eax, ebx
imul eax, edx
mov edx, dword [esp + 0x40]
imul edx, ecx
mov ecx, dword [esp + 0x2c]
add eax, edx
shr edi, 8
and edi, dword [esp + 0x14]
shr eax, 8
or esi, edi
mov edi, dword [esp + 0x18]
and eax, ebx
or esi, eax
mov eax, esi
mov esi, dword [esp + 0x10]
mov word [esi], ax
mov eax, dword [esp + 0x28]
add eax, 1
add esi, 2
cmp eax, dword [ecx]
mov dword [esp + 0x10], esi
mov dword [esp + 0x28], eax
jl 0x524390
mov esi, dword [esp + 0x1c]
add ecx, 0xc
sub dword [esp + 0x20], 1
mov dword [esp + 0x2c], ecx
jne 0x524330
jmp 0x5245ae
cmp eax, 0x20
jne 0x5245ae
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 8]
mov edx, dword [edx + 4]
imul eax, ebx
imul edx, ecx
shr eax, 8
shr edx, 8
and edx, ecx
mov ecx, dword [esp + 0x24]
and eax, ebx
or eax, edx
mov edx, dword [ecx]
imul edx, edi
shr edx, 8
and edx, edi
or eax, edx
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0xa4]
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0xc]
test eax, eax
jle 0x5245ae
mov ecx, dword [esp + 0x10]
add ecx, 8
mov dword [esp + 0x28], ecx
mov dword [esp + 0x10], eax
mov esi, dword [esi + 0x24]
mov eax, dword [ecx - 8]
mov edx, dword [ecx - 4]
imul esi, eax
sub eax, dword [ebp + 0x20]
add esi, edx
imul eax, dword [ebp + 0x24]
sub eax, dword [ebp + 0x1c]
mov edx, dword [esp + 0x48]
add eax, dword [ecx - 4]
lea esi, [edx + esi*4]
add eax, dword [esp + 0x50]
cmp dword [ecx], 0
mov dword [esp + 0x20], esi
mov dword [esp + 0x2c], 0
jle 0x524598
mov ecx, dword [esp + 0x40]
mov edx, ecx
and edx, ebx
mov dword [esp + 0x4c], edx
mov edx, ecx
and edx, dword [esp + 0x14]
mov ebx, ecx
and ebx, edi
mov dword [esp + 0x44], edx
mov dword [esp + 0x38], ebx
jmp 0x524508
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
movzx ecx, byte [eax]
add eax, 1
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x24]
add ecx, 1
imul ecx, dword [eax + 0xc]
mov eax, dword [esi]
mov esi, eax
and esi, edi
sar ecx, 8
imul ebx, ecx
mov edx, 0x100
sub edx, ecx
imul esi, edx
add esi, ebx
mov ebx, dword [esp + 0x44]
shr esi, 8
imul ebx, ecx
and esi, edi
mov edi, eax
and edi, dword [esp + 0x14]
imul edi, edx
add edi, ebx
mov ebx, dword [esp + 0x30]
and eax, ebx
imul eax, edx
mov edx, dword [esp + 0x4c]
imul edx, ecx
mov ecx, dword [esp + 0x28]
add eax, edx
shr edi, 8
and edi, dword [esp + 0x14]
shr eax, 8
or esi, edi
mov edi, dword [esp + 0x18]
and eax, ebx
or esi, eax
mov eax, esi
mov esi, dword [esp + 0x20]
mov dword [esi], eax
mov eax, dword [esp + 0x2c]
add eax, 1
add esi, 4
cmp eax, dword [ecx]
mov dword [esp + 0x20], esi
mov dword [esp + 0x2c], eax
jl 0x524500
mov esi, dword [esp + 0x1c]
add ecx, 0xc
sub dword [esp + 0x10], 1
mov dword [esp + 0x28], ecx
jne 0x5244a5
mov eax, dword [esi]
mov edx, dword [eax + 0xc0]
mov ecx, esi
call edx
call fcn.0050ac20
mov ecx, dword [esp + 0xe0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.00624940
mov esp, ebp
pop ebp
ret 0x24