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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov ecx, dword [ebp + 0xc]
lea eax, [ecx + 0x214]
lea edx, [ecx + 0x1d4]
cmp byte [ebp + 0x10], 0
cmovne edx, eax
lea eax, [ecx + 0x64]
lea ecx, [ecx + 0xac]
cmove ecx, eax
mov eax, dword [ebp + 0x20]
mov edi, dword [ecx]
mov ecx, dword [ebp + 8]
test eax, eax
je 0x52f2ca
mov byte [eax], 0
mov ebx, dword [ecx + 0x91c]
test ebx, ebx
je 0x52f33a
mov dword [ebp - 0x20], edx
mov esi, dword [ebx + 0x14]
mov ecx, dword [fcn.00663270]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
mov ecx, eax
mov eax, 0x1b
test ecx, ecx
je 0x52f5ce
mov edx, dword [ebp + 0xc]
cmp byte [edx + 0x260], 0
mov dword [ebp - 0x10], ecx
je 0x52f341
mov ecx, dword [fcn.00663270]
mov edi, dword [edx + 0x7c]
call dword [section..00cfg]
push edi
call ecx
mov edx, dword [ebp + 0xc]
add esp, 4
test eax, eax
jne 0x52f343
mov ecx, dword [fcn.005f2b80]
call dword [section..00cfg]
push dword [ebp - 0x10]
jmp 0x52f5c4
xor eax, eax
jmp 0x52f5ce
xor eax, eax
cmp byte [edx + 0x261], 0
je 0x52f354
mov ecx, dword [edx + 0xcc]
jmp 0x52f357
xor ecx, ecx
dec ecx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x78]
test edx, edx
mov dword [ebp - 0x18], eax
je 0x52f36d
test byte [edx + 4], 0x10
jne 0x52f375
lea edx, [ecx + 0x920]
jmp 0x52f378
add edx, 0x74
mov dword [ebp - 0x1c], edx
mov eax, dword [ecx + 0x4e0]
cmp eax, 2
jb 0x52f3ad
mov edx, dword [ecx + 0x91c]
add edx, 0x60
xor ecx, ecx
inc ecx
cmp dword [edx + 0xc], 0
je 0x52f3b0
mov edi, dword [edx + 0x14]
cmp edi, esi
cmovl esi, edi
cmovl ebx, edx
inc ecx
add edx, 0x60
cmp eax, ecx
jne 0x52f392
jmp 0x52f3b4
xor ecx, ecx
inc ecx
cmp ecx, eax
jne 0x52f3bf
push ebx
call fcn.0052f0b0
add esp, 4
jmp 0x52f3ce
lea ebx, [ecx + ecx*2]
shl ebx, 5
mov eax, dword [ebp + 8]
add ebx, dword [eax + 0x91c]
mov eax, dword [ebp + 0x14]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp + 0x18]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
mov dword [ebx + 0x14], eax
mov ecx, dword [fcn.005f2b80]
mov esi, dword [ebx]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
mov ecx, dword [fcn.005f2b80]
mov esi, dword [ebx + 4]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
mov esi, dword [ebp - 0x10]
mov dword [ebx], esi
mov edi, dword [ebp - 0x18]
mov dword [ebx + 4], edi
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x1c], eax
mov al, byte [ebp + 0x10]
xor al, 1
movzx eax, al
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + eax*4 + 0xc4]
mov dword [ebx + 0x18], eax
mov eax, dword [ecx + 0x2a0]
mov eax, dword [eax]
mov dword [ebx + 8], eax
lea eax, [ebx + 0x20]
push eax
push dword [ebp - 0x20]
call fcn.0052e840
add esp, 8
test al, al
je 0x52f464
xor eax, eax
mov ecx, dword [ebp + 0x20]
test ecx, ecx
je 0x52f5ce
mov byte [ecx], 1
jmp 0x52f5ce
mov ecx, dword [fcn.005f2b80]
mov esi, dword [ebx + 0x28]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
xor esi, esi
mov dword [ebx + 0x28], esi
mov ecx, dword [fcn.005f2b80]
mov edi, dword [ebx + 0x2c]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
mov dword [ebx + 0x2c], esi
mov ecx, dword [fcn.005f2b80]
mov edi, dword [ebx + 0x30]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
mov dword [ebx + 0x30], esi
mov ecx, dword [fcn.005f2b80]
mov edi, dword [ebx + 0x34]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
mov dword [ebx + 0x34], esi
mov ecx, dword [fcn.005f2b80]
mov edi, dword [ebx + 0x38]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
mov dword [ebx + 0x38], esi
mov ecx, dword [fcn.005f2b80]
mov edi, dword [ebx + 0x3c]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
mov dword [ebx + 0x3c], esi
mov ecx, dword [fcn.005f2b80]
mov edi, dword [ebx + 0x40]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
mov dword [ebx + 0x40], esi
mov ecx, dword [fcn.005f2b80]
mov edi, dword [ebx + 0x44]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
mov dword [ebx + 0x44], esi
mov ecx, dword [fcn.005f2b80]
mov edi, dword [ebx + 0x48]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
mov dword [ebx + 0x48], esi
mov ecx, dword [fcn.005f2b80]
mov edi, dword [ebx + 0x4c]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
mov dword [ebx + 0x4c], esi
mov ecx, dword [fcn.005f2b80]
mov edi, dword [ebx + 0x50]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
mov dword [ebx + 0x50], esi
mov ecx, dword [fcn.005f2b80]
mov edi, dword [ebx + 0x54]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
mov dword [ebx + 0x54], esi
mov ecx, dword [fcn.005f2b80]
mov edi, dword [ebx + 0x58]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
mov dword [ebx + 0x58], esi
mov dword [ebx + 0xc], esi
mov ecx, dword [fcn.005f2b80]
call dword [section..00cfg]
push dword [ebp - 0x10]
call ecx
add esp, 4
mov ecx, dword [fcn.005f2b80]
call dword [section..00cfg]
push dword [ebp - 0x18]
call ecx
add esp, 4
mov eax, 0x1b
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret