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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x7cdffc]
xor eax, esp
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x14], edx
mov edx, ecx
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], eax
mov eax, dword [edx]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov ecx, dword [eax]
xor esi, esi
push edi
mov dword [esp + 0x18], ecx
xor edi, edi
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x24], edx
mov dword [esp + 0x10], eax
test ecx, ecx
jle 0x52aee8
nop dword [eax]
mov al, byte [ebx + esi]
cmp al, 0x28
je 0x52aee4
cmp al, 0x29
je 0x52aee4
cmp al, 0x22
je 0x52aee4
inc esi
cmp esi, ecx
jl 0x52aed0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [ecx], esi
lea ecx, [esp + 0x10]
mov edx, dword [edx + 4]
push ecx
push esi
push ebx
mov ecx, eax
call fcn.0052add0
add esp, 0xc
test eax, eax
jne 0x52b07e
lea eax, [esp + 0x38]
mov dword [esp + 0x34], edi
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x30], edi
push eax
lea eax, [esp + 0x34]
mov dword [esp + 0x30], edi
push eax
lea eax, [esp + 0x40]
mov dword [esp + 0x44], edi
push eax
lea eax, [esp + 0x40]
push eax
mov eax, dword [esp + 0x2c]
push dword [esp + 0x24]
mov eax, dword [eax + 0x14]
call eax
add esp, 0x18
mov dword [esp + 0xc], eax
test eax, eax
jne 0x52b058
mov esi, dword [esp + 0x34]
add esi, 0x78
call fcn.0051fa00
test eax, eax
je 0x52af73
mov ecx, dword [esp + 0x14]
xor edi, edi
mov eax, dword [esp + 0x28]
lea esi, [edi + 7]
mov dword [ecx], eax
jmp 0x52b06c
test esi, esi
jle 0x52af5f
mov eax, esi
cdq
push edx
push eax
call fcn.004b42e0
mov edi, eax
add esp, 8
test edi, edi
je 0x52af9a
push esi
push 0
push edi
call fcn.006e6ec0
add esp, 0xc
test edi, edi
jne 0x52afae
mov ecx, dword [esp + 0x14]
mov esi, 7
mov eax, dword [esp + 0x28]
mov dword [ecx], eax
jmp 0x52b06c
mov ecx, dword [esp + 0x20]
lea eax, [edi + 0x28]
mov dword [edi + 0x14], eax
mov dword [edi], 5
mov dword [eax + 0x30], 1
mov eax, dword [edi + 0x14]
mov dword [eax + 0x34], ecx
mov ecx, dword [edi + 0x14]
mov eax, dword [esp + 0x34]
mov dword [ecx + 0x3c], eax
mov ecx, dword [edi + 0x14]
lea eax, [ecx + 0x50]
mov dword [ecx + 0x38], eax
push dword [esp + 0x34]
mov eax, dword [edi + 0x14]
push dword [esp + 0x34]
push dword [eax + 0x38]
call fcn.006e6940
mov eax, dword [esp + 0x34]
add esp, 0xc
cmp eax, dword [ebp + 0xc]
jge 0x52b016
cmp byte [ebx + eax], 0x2a
jne 0x52b016
mov eax, dword [edi + 0x14]
mov dword [eax + 0x40], 1
mov eax, dword [esp + 0x28]
inc eax
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x24]
cmp dword [ecx + 0xc], 0
je 0x52b04c
mov eax, dword [esp + 0x2c]
test eax, eax
jle 0x52b048
cmp byte [ebx + eax - 1], 0x5e
jne 0x52b048
mov eax, dword [edi + 0x14]
mov dword [eax + 0x44], 1
mov eax, dword [esp + 0x2c]
dec eax
cmp dword [ecx + 0xc], 0
mov dword [esp + 0x2c], eax
jne 0x52b024
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0xc]
mov dword [ecx], eax
jmp 0x52b06c
test esi, esi
je 0x52b068
xor ecx, ecx
cmp eax, 0x65
cmove eax, ecx
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x18]
push dword [esp + 0x10]
mov eax, dword [eax + 0x10]
call eax
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword [ecx], edi
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.006a7b19
mov esp, ebp
pop ebp
ret