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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb4
push ebx
mov ebx, dword [0x4a09d8]
push esi
push edi
mov edi, eax
mov al, 1
cmp al, byte [ecx + 1]
mov ecx, dword [0x4a13a4]
push 1
push 0
sbb esi, esi
and esi, dword [0x4a09dc]
push 0xffffffffffffffff
push 0x491918
mov dword [esp + 0x90], ebx
mov dword [esp + 0x98], esi
call fcn.00561cb0
test ebx, ebx
je 0x52df4b
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, ebx
call fcn.00561cb0
xor ebx, ebx
cmp esi, ebx
je 0x52df5e
push 1
push ebx
push 0xffffffffffffffff
push ebx
mov ecx, esi
call fcn.00561cb0
mov edx, dword [0x49d3c8]
xor eax, eax
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
test byte [edx + 0xc8], 1
jne 0x52dfad
lea eax, [esp + 0x70]
push eax
call dword [fcn.0048d604]
push eax
call dword [fcn.0048d454]
test eax, eax
je 0x52e30c
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
add dword [ebp + 8], eax
add dword [ebp + 0xc], ecx
add dword [ebp + 0x10], eax
add dword [ebp + 0x14], ecx
push 0x2e
push edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x34], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call fcn.00573ff7
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x52e023
inc esi
push 0x494afc
push esi
call fcn.005720b6
add esp, 8
test eax, eax
je 0x52e00d
push 0x494b00
push esi
call fcn.005720b6
add esp, 8
test eax, eax
je 0x52e00d
push 0x494b04
push esi
call fcn.005720b6
add esp, 8
test eax, eax
jne 0x52e023
mov esi, dword [0x48d4cc]
push 0x31
call esi
push 0x32
mov dword [esp + 0x20], eax
call esi
mov dword [esp + 0x20], eax
mov ebx, edi
mov al, byte [ebx]
cmp al, 0x20
je 0x52e02f
cmp al, 9
jne 0x52e032
inc ebx
jmp 0x52e025
cmp byte [ebx], 0x2a
jne 0x52e2ca
jmp 0x52e040
movsx ecx, byte [ebx + 1]
inc ebx
push ecx
call fcn.00575390
add esp, 4
cmp eax, 0x48
je 0x52e202
cmp eax, 0x57
je 0x52e196
push 4
push 0x491e4c
push ebx
call fcn.00572a95
add esp, 0xc
test eax, eax
jne 0x52e0a7
add ebx, 4
mov eax, ebx
call fcn.00507670
test al, al
je 0x52e098
push 0x10
push 0
push ebx
call fcn.00573994
add esp, 0xc
mov dword [esp + 0x2c], eax
jmp 0x52e26a
push ebx
call fcn.00573596
mov dword [esp + 0x30], eax
jmp 0x52e267
push 5
push 0x494660
push ebx
call fcn.00572a95
add esp, 0xc
test eax, eax
jne 0x52e142
push 0x1f
add ebx, 5
lea edx, [esp + 0xa4]
push ebx
push edx
call fcn.00575ce0
add esp, 0xc
mov edi, 0x4918e4
lea eax, [esp + 0xa0]
mov byte [esp + 0xbf], 0
call fcn.00503ff0
test eax, eax
je 0x52e0f5
mov byte [eax], 0
lea esi, [esp + 0xa0]
call fcn.00560480
cmp eax, 0xffffffff
jne 0x52e11e
push 0x10
mov eax, esi
push 0
push eax
call fcn.00573994
add esp, 0xc
mov dword [esp + 0x24], eax
jmp 0x52e26a
mov ecx, eax
shr ecx, 8
movzx edx, al
movzx ecx, cl
shl edx, 8
shr eax, 0x10
or ecx, edx
movzx eax, al
shl ecx, 8
or ecx, eax
mov dword [esp + 0x24], ecx
jmp 0x52e26a
mov eax, ebx
call fcn.00507670
test al, al
je 0x52e160
push 0x10
push 0
push ebx
call fcn.00573994
add esp, 0xc
mov dword [esp + 0x10], eax
jmp 0x52e16d
push ebx
call fcn.00573596
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jns 0x52e17e
mov dword [esp + 0x10], 0
jmp 0x52e26a
cmp eax, 0xff
jle 0x52e26a
mov dword [esp + 0x10], 0xff
jmp 0x52e26a
lea esi, [ebx + 1]
mov eax, esi
jmp 0x52e1a0
mov cl, byte [eax]
cmp cl, 0x20
je 0x52e1ac
cmp cl, 9
jne 0x52e1af
inc eax
jmp 0x52e1a0
mov cl, byte [eax]
test cl, cl
je 0x52e1f6
cmp cl, 0x2d
je 0x52e1bf
cmp cl, 0x2b
jne 0x52e1c0
inc eax
cmp byte [eax], 0x30
jne 0x52e1f6
mov cl, byte [eax + 1]
cmp cl, 0x78
je 0x52e1d2
cmp cl, 0x58
jne 0x52e1f6
movsx ecx, byte [eax + 2]
push ecx
call fcn.00573739
add esp, 4
test eax, eax
je 0x52e1f6
push 0x10
push 0
push esi
call fcn.00573994
add esp, 0xc
mov dword [esp + 0x1c], eax
jmp 0x52e26a
push esi
call fcn.00573596
mov dword [esp + 0x20], eax
jmp 0x52e267
lea esi, [ebx + 1]
mov eax, esi
mov cl, byte [eax]
cmp cl, 0x20
je 0x52e213
cmp cl, 9
jne 0x52e216
inc eax
jmp 0x52e207
mov cl, byte [eax]
test cl, cl
je 0x52e25d
cmp cl, 0x2d
je 0x52e226
cmp cl, 0x2b
jne 0x52e227
inc eax
cmp byte [eax], 0x30
jne 0x52e25d
mov cl, byte [eax + 1]
cmp cl, 0x78
je 0x52e239
cmp cl, 0x58
jne 0x52e25d
movsx edx, byte [eax + 2]
push edx
call fcn.00573739
add esp, 4
test eax, eax
je 0x52e25d
push 0x10
push 0
push esi
call fcn.00573994
add esp, 0xc
mov dword [esp + 0x20], eax
jmp 0x52e26a
push esi
call fcn.00573596
mov dword [esp + 0x24], eax
add esp, 4
test ebx, ebx
je 0x52e30c
mov dl, byte [ebx]
test dl, dl
je 0x52e30c
lea esp, [esp]
mov ecx, 0x4918e4
mov al, 0x20
cmp dl, al
je 0x52e2a9
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x52e287
mov dl, byte [ebx + 1]
inc ebx
test dl, dl
jne 0x52e280
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea edi, [ebx + 1]
mov eax, edi
mov edi, edi
mov cl, byte [eax]
cmp cl, 0x20
je 0x52e2bc
cmp cl, 9
jne 0x52e2bf
inc eax
jmp 0x52e2b0
cmp byte [eax], 0x2a
mov ebx, eax
je 0x52e040
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
push 0
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x40]
push ecx
push edx
push eax
push edi
call fcn.005608c0
mov esi, eax
add esp, 0x18
mov dword [esp + 0x60], esi
test esi, esi
je 0x52e30c
push 0
call dword [fcn.0048d48c]
mov ebx, eax
mov dword [esp + 0x4c], ebx
test ebx, ebx
jne 0x52e31a
push esi
call dword [fcn.0048d0f0]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edi, dword [fcn.0048d0f0]
xor eax, eax
cmp dword [esp + 0x38], 1
mov dword [esp + 0x64], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x68], eax
mov byte [esp + 0xd], al
jne 0x52e3a6
lea ecx, [esp + 0x8c]
push ecx
push esi
call dword [fcn.0048d46c]
test eax, eax
je 0x52e38f
push 1
lea edx, [esp + 0x12]
push edx
mov edx, dword [esp + 0xa0]
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x48]
push ecx
push edx
mov eax, ebx
call fcn.0052d600
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0xb0]
add esp, 0x14
push eax
call edi
mov ecx, dword [esp + 0x98]
push ecx
call edi
push esi
call fcn.005610e0
mov esi, eax
add esp, 4
mov dword [esp + 0x60], eax
test esi, esi
je 0x52e30c
push 8
lea edx, [esp + 0x12]
push edx
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x48]
push ecx
push esi
mov eax, ebx
call fcn.0052d600
add esp, 0x14
mov dword [esp + 0x34], eax
test eax, eax
je 0x52e607
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
mov edx, dword [esp + 0x4c]
sub esi, dword [ebp + 8]
sub ebx, dword [ebp + 0xc]
push edx
inc esi
inc ebx
call dword [fcn.0048d0b4]
mov edi, eax
mov dword [esp + 0x64], edi
test edi, edi
je 0x52e607
mov eax, dword [esp + 0x4c]
push ebx
push esi
push eax
call dword [fcn.0048d0a8]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x52e607
mov ecx, eax
push ecx
push edi
call dword [fcn.0048d0d8]
mov dword [esp + 0x68], eax
test eax, eax
je 0x52e607
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x4c]
push 0xcc0020
push edx
push eax
push ecx
push ebx
push esi
push 0
push 0
push edi
call dword [0x48d0a4]
test eax, eax
je 0x52e607
push 8
lea edx, [esp + 0x13]
push edx
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x34]
push ecx
push edx
mov eax, edi
call fcn.0052d600
mov edx, eax
add esp, 0x14
mov dword [esp + 0x20], edx
test edx, edx
je 0x52e607
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x28]
imul ecx, dword [esp + 0x48]
imul esi, dword [esp + 0x58]
cmp byte [esp + 0xe], 0
mov dword [esp + 0x44], ecx
mov dword [esp + 0x50], esi
jne 0x52e4a1
cmp byte [esp + 0xf], 0
je 0x52e4de
cmp dword [esp + 0x24], 0xffffffff
je 0x52e4b0
and dword [esp + 0x24], 0xf8f8f8
xor eax, eax
test esi, esi
jle 0x52e4c2
and dword [edx + eax*4], 0xf8f8f8
inc eax
cmp eax, esi
jl 0x52e4b6
mov edi, dword [esp + 0x34]
xor eax, eax
test ecx, ecx
jle 0x52e4f9
lea esp, [esp]
and dword [edi + eax*4], 0xf8f8f8
inc eax
cmp eax, ecx
jl 0x52e4d0
jmp 0x52e4e2
mov edi, dword [esp + 0x34]
test ecx, ecx
jle 0x52e4f9
lea eax, [edi + 3]
lea esp, [esp]
mov byte [eax], 0
add eax, 4
dec ecx
jne 0x52e4f0
mov ebx, dword [esp + 0x10]
cmp ebx, 1
jge 0x52e719
test esi, esi
jle 0x52e519
lea eax, [edx + 3]
mov ecx, esi
nop
mov byte [eax], 0
add eax, 4
dec ecx
jne 0x52e510
xor esi, esi
mov dword [esp + 0x18], esi
cmp dword [esp + 0x50], esi
jle 0x52e907
mov ebx, dword [edi]
mov dword [esp + 0x38], ebx
nop
mov eax, dword [esp + 0x20]
lea edi, [esi*4]
cmp dword [edi + eax], ebx
je 0x52e557
mov eax, dword [esp + 0x30]
test eax, eax
je 0x52e54d
cmp dword [eax], 0
jne 0x52e557
cmp ebx, dword [esp + 0x24]
jne 0x52e705
mov ecx, dword [esp + 0x28]
mov eax, esi
cdq
idiv ecx
mov esi, dword [esp + 0x58]
sub esi, eax
cmp dword [esp + 0x48], esi
jg 0x52e701
sub ecx, edx
cmp dword [esp + 0x3c], ecx
jg 0x52e701
mov esi, dword [esp + 0x18]
xor ebx, ebx
mov byte [esp + 0xd], 1
mov dword [esp + 0x1c], ebx
cmp dword [esp + 0x44], ebx
jle 0x52e60b
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
sub edx, eax
mov byte [esp + 0xd], 1
mov ecx, esi
mov dword [esp + 0x40], edi
mov dword [esp + 0x54], edx
lea ebx, [ebx]
mov edx, dword [eax]
mov edi, dword [esp + 0x20]
cmp dword [edi + esi*4], edx
je 0x52e5d6
cmp dword [esp + 0x30], 0
je 0x52e5cc
mov edi, dword [esp + 0x54]
cmp dword [edi + eax], 0
jne 0x52e5d6
cmp edx, dword [esp + 0x24]
jne 0x52e6f8
inc ebx
cmp ebx, dword [esp + 0x3c]
jge 0x52e5e0
inc esi
jmp 0x52e5f5
mov edx, dword [esp + 0x28]
lea esi, [edx*4]
add dword [esp + 0x40], esi
xor ebx, ebx
add ecx, edx
mov esi, ecx
mov edx, dword [esp + 0x1c]
inc edx
add eax, 4
mov dword [esp + 0x1c], edx
cmp edx, dword [esp + 0x44]
jl 0x52e5b0
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x4c]
push edx
push 0
call dword [fcn.0048d5c4]
mov eax, dword [esp + 0x60]
mov ebx, dword [fcn.0048d0f0]
push eax
call ebx
mov edi, dword [esp + 0x64]
test edi, edi
je 0x52e644
mov eax, dword [esp + 0x68]
test eax, eax
je 0x52e63d
push eax
push edi
call dword [fcn.0048d0d8]
push edi
call dword [fcn.0048d0c8]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x52e64f
push eax
call ebx
mov eax, dword [esp + 0x34]
test eax, eax
je 0x52e660
push eax
call fcn.005739bf
add esp, 4
mov eax, dword [esp + 0x30]
test eax, eax
je 0x52e671
push eax
call fcn.005739bf
add esp, 4
mov eax, dword [esp + 0x20]
test eax, eax
je 0x52e682
push eax
call fcn.005739bf
add esp, 4
cmp byte [esp + 0xd], 0
je 0x52e30c
mov ecx, dword [esp + 0x80]
test ecx, ecx
je 0x52e6b4
mov eax, esi
cdq
idiv dword [esp + 0x28]
push 0x18
mov eax, edx
sub eax, dword [esp + 0x74]
add eax, dword [ebp + 8]
cdq
push edx
push eax
mov eax, ecx
call fcn.004fc4d0
mov ecx, dword [esp + 0x88]
test ecx, ecx
je 0x52e6d9
mov eax, esi
cdq
idiv dword [esp + 0x28]
push 0x18
sub eax, dword [esp + 0x78]
add eax, dword [ebp + 0xc]
cdq
push edx
push eax
mov eax, ecx
call fcn.004fc4d0
mov ecx, dword [0x4a13a4]
push 1
push 0
push 0xffffffffffffffff
push 0x4900b0
call fcn.00561cb0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ebx, dword [esp + 0x38]
mov byte [esp + 0xd], 0
mov esi, dword [esp + 0x18]
inc esi
mov dword [esp + 0x18], esi
cmp esi, dword [esp + 0x50]
jl 0x52e530
jmp 0x52e907
xor esi, esi
mov dword [esp + 0x18], esi
cmp dword [esp + 0x50], esi
jle 0x52e907
mov ecx, dword [esp + 0x28]
lea ecx, [ecx]
mov eax, esi
cdq
idiv ecx
mov edi, dword [esp + 0x58]
sub edi, eax
cmp dword [esp + 0x48], edi
jg 0x52e8f8
mov eax, ecx
sub eax, edx
cmp dword [esp + 0x3c], eax
jg 0x52e8f8
xor eax, eax
mov byte [esp + 0xd], 1
mov dword [esp + 0x5c], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x40], esi
cmp dword [esp + 0x44], eax
jle 0x52e60b
mov eax, dword [esp + 0x34]
lea ecx, [esi*4]
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x30]
sub ecx, eax
mov byte [esp + 0xd], 1
mov dword [esp + 0x38], esi
mov edi, eax
mov dword [esp + 0x54], ecx
movzx eax, byte [edi + 2]
mov dl, byte [edi + 1]
cmp ebx, eax
jle 0x52e7a6
mov byte [esp + 0xe], 0
jmp 0x52e7ae
mov cl, al
sub cl, bl
mov byte [esp + 0xe], cl
movzx edx, dl
mov dword [esp + 0x84], edx
cmp ebx, edx
jle 0x52e7c3
mov byte [esp + 0x16], 0
jmp 0x52e7d1
mov ebx, dword [esp + 0x10]
mov cl, dl
sub cl, byte [esp + 0x10]
mov byte [esp + 0x16], cl
movzx ecx, byte [edi]
cmp ebx, ecx
jle 0x52e7df
mov byte [esp + 0x14], 0
jmp 0x52e7f0
mov dl, cl
sub dl, byte [esp + 0x10]
mov byte [esp + 0x14], dl
mov edx, dword [esp + 0x84]
mov ebx, dword [esp + 0x10]
mov esi, 0xff
sub esi, eax
cmp ebx, esi
jle 0x52e80a
mov eax, 0xff
mov byte [esp + 0x17], al
jmp 0x52e815
add al, bl
mov byte [esp + 0x17], al
mov eax, 0xff
mov esi, eax
sub esi, edx
cmp ebx, esi
jle 0x52e823
mov byte [esp + 0x15], al
jmp 0x52e829
add dl, bl
mov byte [esp + 0x15], dl
mov edx, eax
sub edx, ecx
cmp ebx, edx
jle 0x52e837
mov byte [esp + 0xf], al
jmp 0x52e83d
add cl, bl
mov byte [esp + 0xf], cl
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x40]
mov cl, byte [eax + esi*4 + 2]
mov dl, byte [eax + esi*4 + 1]
mov al, byte [eax + esi*4]
cmp cl, byte [esp + 0xe]
jb 0x52e874
cmp cl, byte [esp + 0x17]
ja 0x52e874
cmp dl, byte [esp + 0x16]
jb 0x52e874
cmp dl, byte [esp + 0x15]
ja 0x52e874
cmp al, byte [esp + 0x14]
jb 0x52e874
cmp al, byte [esp + 0xf]
jbe 0x52e88d
cmp dword [esp + 0x30], 0
je 0x52e885
mov eax, dword [esp + 0x54]
cmp dword [edi + eax], 0
jne 0x52e88d
mov ecx, dword [esp + 0x24]
cmp dword [edi], ecx
jne 0x52e8e7
mov eax, dword [esp + 0x5c]
inc eax
mov dword [esp + 0x5c], eax
cmp eax, dword [esp + 0x3c]
jge 0x52e8a3
inc esi
mov dword [esp + 0x40], esi
jmp 0x52e8c8
mov eax, dword [esp + 0x28]
lea ecx, [eax*4]
add dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x38]
add ecx, eax
mov dword [esp + 0x5c], 0
mov dword [esp + 0x38], ecx
mov dword [esp + 0x40], ecx
mov eax, dword [esp + 0x1c]
inc eax
add edi, 4
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0x44]
jge 0x52e607
mov ebx, dword [esp + 0x10]
jmp 0x52e794
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
mov byte [esp + 0xd], 0
inc esi
mov dword [esp + 0x18], esi
cmp esi, dword [esp + 0x50]
jl 0x52e730
mov ecx, dword [0x4a13a4]
push 1
push 0
push 0xffffffffffffffff
push 0x4916f4
call fcn.00561cb0
jmp 0x52e60b