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

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x18]
xor ecx, ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
lea edx, [eax + 0x11]
mov esi, dword [edi + edx*4]
lea edx, [edi + edx*4]
xor ebp, ebp
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], edx
mov ebx, dword [edi + 0xc]
test eax, eax
jne 0x53256e
test ebx, ebx
jle 0x53251e
mov eax, dword [esp + 0x2c]
mov dl, byte [edi + 0x10]
dec eax
add eax, ebx
nop dword [eax]
cmp byte [eax], dl
jne 0x53251a
inc ecx
dec eax
cmp ecx, ebx
jl 0x532510
mov dword [esp + 0x10], ecx
test esi, esi
je 0x5325bb
cmp dword [esi + 0xc], ebp
jle 0x532584
mov edx, dword [edi + 0x14c]
mov eax, ebx
sub eax, ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x2c]
mov al, byte [eax]
cmp al, byte [edx]
jne 0x532584
mov eax, dword [edi + 0x14c]
mov edx, dword [esp + 0x2c]
sub eax, edx
mov dword [esp + 0x18], eax
cmp ebp, dword [esp + 0x14]
jge 0x532584
mov edi, dword [esp + 0x18]
inc edx
inc ebp
mov al, byte [edx]
cmp al, byte [edi + edx]
mov edi, dword [esp + 0x24]
je 0x532553
mov eax, dword [esp + 0x28]
mov dword [esp + 0x14], ecx
mov edx, ebp
mov dword [esp + 0x18], edx
test esi, esi
je 0x5325bb
mov dword [esp + 0x10], ecx
test eax, eax
jne 0x532599
movsx edx, word [esi + 0x32]
movzx eax, byte [esi + 0x1f]
sub edx, eax
sub edx, ebx
add edx, ecx
add edx, ebp
shr edx, 0x1f
jmp 0x5325b3
mov eax, dword [edi]
xor edx, edx
mov ebp, dword [esp + 0x18]
movzx eax, word [eax + 0x78]
cmp dword [esi + 0xc], eax
mov eax, dword [esp + 0x14]
setge dl
mov dword [esp + 0x10], eax
test edx, edx
je 0x532706
mov edi, dword [edi]
mov eax, dword [edi + 0x7c]
movzx ecx, word [edi + 0x16]
add ecx, 0x54
movzx eax, word [eax + 0x2e]
add eax, ecx
push eax
push 0
push eax
call fcn.004a67c0
add esp, 4
push eax
call fcn.0059d510
mov esi, eax
push 0
mov byte [esi + 0x20], 0xff
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0x40], edi
push dword [edi + 0x7c]
call fcn.0052d5d0
mov dword [esi], eax
add esp, 0x14
mov dword [esi + 0x24], 1
mov dword [esi + 0x44], 0
mov eax, dword [edi + 0xa4]
mov dword [esi + 0x48], eax
mov dword [edi + 0xa4], esi
mov eax, dword [esi + 0x48]
test eax, eax
je 0x53262c
mov dword [eax + 0x44], esi
mov ecx, dword [esp + 0x28]
test ecx, ecx
mov dword [esi + 0x38], 0
setne al
mov dword [esi + 0x10], 0xffffffff
dec al
mov byte [esi + 0x21], 1
and al, 2
mov byte [esi + 0x20], al
test ecx, ecx
jne 0x5326cb
push esi
call fcn.00531360
mov edx, dword [esp + 0x28]
add esp, 4
mov eax, dword [esi + 0x14]
xor ebp, ebp
cmp dword [edx + 0x1c], eax
jbe 0x53268b
mov cl, byte [esi + 0x1f]
mov ch, byte [esi + 0x1c]
nop
shl eax, 8
inc cl
add ch, 8
mov byte [esi + 0x1f], cl
or eax, 0xff
mov byte [esi + 0x1c], ch
mov dword [esi + 0x14], eax
cmp dword [edx + 0x1c], eax
ja 0x532670
mov ecx, dword [esp + 0x28]
lea edi, [ecx + 0x11]
cmp dword [edx + edi*4], 0
lea edi, [edx + edi*4]
je 0x532704
mov edx, dword [edi]
mov eax, dword [esi]
mov dword [edx + 8], eax
mov eax, dword [edi]
mov edx, dword [esp + 0x24]
mov eax, dword [eax]
mov dword [esi + 4], eax
lea eax, [ecx + 1]
mov edi, dword [edi]
mov dword [esp + 0x18], eax
push dword [edi]
test ecx, ecx
jne 0x5326d1
push dword [edx + 0x150]
push dword [edx + 0x14c]
push eax
jmp 0x5326eb
mov edx, dword [esp + 0x24]
jmp 0x53268f
mov ecx, dword [edi + 0xc]
lea eax, [ebx + 8]
dec ecx
imul ecx, eax
add ecx, 0x58
add ecx, edi
mov eax, dword [ecx + ebx]
bswap eax
push eax
push ecx
push dword [esp + 0x24]
push edx
call fcn.005324d0
mov edi, dword [esp + 0x30]
add esp, 0x14
push 1
push dword [edi]
call fcn.0052eea0
add esp, 8
mov dword [edi], esi
cmp dword [esp + 0x28], 0
jne 0x53277e
movzx eax, byte [esi + 0x1e]
movzx ecx, byte [esi + 0x1f]
mov edx, dword [esi + 0xc]
mov edi, dword [esp + 0x10]
push eax
movzx eax, byte [esi + 0x1d]
push eax
imul edx, ecx
push ecx
push edi
push ebp
push dword [esp + 0x44]
mov dword [esp + 0x40], edx
lea eax, [edx + 0x64]
add eax, esi
push eax
call fcn.005323c0
sub ebx, edi
add esp, 0x1c
sub ebx, ebp
test ebx, ebx
jle 0x532768
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
add eax, ebp
push ebx
push eax
movsx eax, word [esi + 0x32]
add ecx, 0x64
sub eax, ebx
add eax, esi
add eax, ecx
push eax
call fcn.0059ce60
add esp, 0xc
movzx eax, byte [esi + 0x1f]
add ax, bx
sub word [esi + 0x32], ax
inc dword [esi + 0xc]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
lea edi, [ebx + 8]
imul edi, dword [esi + 0xc]
push ebx
push dword [esp + 0x30]
add edi, 0x58
add edi, esi
push edi
call fcn.0059ce60
mov eax, dword [esp + 0x3c]
add esp, 0xc
bswap eax
mov dword [edi + ebx], eax
mov eax, dword [esp + 0x34]
bswap eax
mov dword [edi + ebx + 4], eax
inc dword [esi + 0xc]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret