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

Disassembly:
push ebx
push esi
mov esi, ecx
test esi, esi
je 0x52f0a1
mov eax, dword [esi + 0x20]
mov dword [esi + 0x18], 0
test eax, eax
jne 0x52edb9
mov dword [esi + 0x28], eax
mov eax, 0x52df00
mov dword [esi + 0x20], 0x52df00
cmp dword [esi + 0x24], 0
jne 0x52edc6
mov dword [esi + 0x24], 0x52df20
cmp edx, 0xffffffff
mov ebx, 6
cmovne ebx, edx
cmp ebx, 9
ja 0x52f0a1
push edi
push 0x16c4
push 1
push dword [esi + 0x28]
call eax
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x52edf7
lea eax, [edi - 4]
pop edi
pop esi
pop ebx
ret
mov dword [esi + 0x1c], edi
push ebp
push 2
mov dword [edi], esi
mov dword [edi + 0x18], 1
mov dword [edi + 0x1c], 0
mov dword [edi + 0x30], 0xf
mov dword [edi + 0x2c], 0x8000
mov dword [edi + 0x34], 0x7fff
mov dword [edi + 0x50], 0xf
mov dword [edi + 0x4c], 0x8000
mov dword [edi + 0x54], 0x7fff
mov dword [edi + 0x58], 5
mov eax, dword [esi + 0x20]
push 0x8000
push dword [esi + 0x28]
call eax
push 2
push dword [edi + 0x2c]
mov dword [edi + 0x38], eax
push dword [esi + 0x28]
mov eax, dword [esi + 0x20]
call eax
push 2
push dword [edi + 0x4c]
mov dword [edi + 0x40], eax
push dword [esi + 0x28]
mov eax, dword [esi + 0x20]
call eax
push 4
mov dword [edi + 0x44], eax
mov dword [edi + 0x16c0], 0
mov dword [edi + 0x169c], 0x4000
mov eax, dword [esi + 0x20]
push 0x4000
push dword [esi + 0x28]
call eax
mov ebp, dword [edi + 0x169c]
add esp, 0x30
cmp dword [edi + 0x38], 0
mov edx, eax
mov dword [edi + 8], edx
lea ecx, [ebp*4]
mov dword [edi + 0xc], ecx
je 0x52f081
cmp dword [edi + 0x40], 0
je 0x52f081
cmp dword [edi + 0x44], 0
je 0x52f081
test edx, edx
je 0x52f081
mov eax, ebp
mov dword [edi + 0x84], ebx
shr eax, 1
mov dword [edi + 0x88], 0
mov byte [edi + 0x24], 8
lea eax, [edx + eax*2]
mov dword [edi + 0x16a4], eax
lea eax, [edx + ebp*2]
add eax, ebp
mov dword [edi + 0x1698], eax
mov edi, dword [esi + 0x1c]
test edi, edi
je 0x52f077
cmp dword [esi + 0x20], 0
je 0x52f077
cmp dword [esi + 0x24], 0
je 0x52f077
mov dword [esi + 0x14], 0
mov dword [esi + 8], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x2c], 2
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 8]
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], eax
test ecx, ecx
jns 0x52ef4f
neg ecx
mov dword [edi + 0x18], ecx
test ecx, ecx
mov edx, 0x2a
mov eax, 0x71
cmovne eax, edx
mov dword [edi + 4], eax
xor eax, eax
cmp ecx, 2
mov ecx, edi
setne al
mov dword [esi + 0x30], eax
lea eax, [edi + 0x94]
mov dword [edi + 0xb18], eax
lea eax, [edi + 0x988]
mov dword [edi + 0xb24], eax
lea eax, [edi + 0xa7c]
mov dword [edi + 0xb30], eax
xor eax, eax
mov dword [edi + 0x28], 0
mov dword [edi + 0xb20], 0x6aafdc
mov dword [edi + 0xb2c], 0x6aafb4
mov dword [edi + 0xb38], 0x6aafc8
mov word [edi + 0x16b8], ax
mov dword [edi + 0x16bc], eax
mov dword [edi + 0x16b4], 8
call fcn.00530ad0
mov eax, dword [edi + 0x2c]
xor edx, edx
mov ecx, dword [edi + 0x4c]
add eax, eax
mov dword [edi + 0x3c], eax
mov eax, dword [edi + 0x44]
mov word [eax + ecx*2 - 2], dx
mov eax, dword [edi + 0x4c]
lea eax, [eax*2 - 2]
push eax
push edx
push dword [edi + 0x44]
call fcn.00586880
mov eax, dword [edi + 0x84]
add esp, 0xc
lea ecx, [eax + eax*2]
movzx eax, word [ecx*4 + 0x5e7f82]
mov dword [edi + 0x80], eax
movzx eax, word [ecx*4 + 0x5e7f80]
mov dword [edi + 0x8c], eax
movzx eax, word [ecx*4 + 0x5e7f84]
mov dword [edi + 0x90], eax
movzx eax, word [ecx*4 + 0x5e7f86]
pop ebp
mov dword [edi + 0x7c], eax
xor eax, eax
mov dword [edi + 0x6c], 0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x74], 0
mov dword [edi + 0x78], 2
mov dword [edi + 0x60], 2
mov dword [edi + 0x68], 0
mov dword [edi + 0x48], 0
pop edi
pop esi
pop ebx
ret
pop ebp
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
ret
mov eax, dword [str.insufficient_memory]
mov ecx, esi
mov dword [edi + 4], 0x29a
mov dword [esi + 0x18], eax
call fcn.0052f8c0
pop ebp
pop edi
pop esi
mov eax, 0xfffffffc
pop ebx
ret
pop esi
mov eax, 0xfffffffe
pop ebx
ret