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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x523ec5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x517ccc]
call fcn.00404350
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x38]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x80]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 8]
mov ebx, dword [eax + 0x114]
mov eax, dword [ebp - 8]
mov esi, dword [eax + 0x118]
sub esi, ebx
jl 0x523ea7
inc esi
mov eax, dword [ebp - 0x28]
push dword [eax + 0x50]
mov eax, ebx
pop edx
mov ecx, edx
cdq
idiv ecx
test edx, edx
jne 0x523e9f
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.00523f60
test al, al
jne 0x523e9f
lea ecx, [ebp - 4]
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.005243c8
cmp dword [ebp - 4], 0
je 0x523e9f
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x80]
mov edx, ebx
call fcn.00520a58
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
cmp byte [eax + 0x10], 0
je 0x523e9f
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0x20]
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x304]
call fcn.005094b0
mov eax, dword [ebp - 0x24]
cmp byte [eax + 0x2ec], 0
je 0x523ce8
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x304]
mov edx, dword [eax]
call dword [edx + 0xc4]
test al, al
jne 0x523ce8
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x2f0]
cmp byte [eax + 0x3c], 0
je 0x523ce8
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x2f0]
cmp dword [eax + 0x38], 0x64
je 0x523ce8
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x304]
mov edi, dword [eax + 8]
push 0
push 1
mov eax, edi
call fcn.0042df60
mov dword [ebp - 0x2c], eax
fild dword [ebp - 0x2c]
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x2f0]
fild dword [eax + 0x38]
fld xword [0x523ed4]
fmulp st(1)
fmulp st(1)
call fcn.00403568
push edx
push eax
call fcn.00427b04
mov edx, eax
mov eax, edi
call fcn.0042df7c
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x80]
cmp byte [eax + 0x29], 0
jne 0x523d24
lea ecx, [ebp - 0x10]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x24]
call fcn.00526394
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x304]
mov edx, 0x523ee8
mov ecx, dword [eax]
call dword [ecx + 0x7c]
imul eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
jmp 0x523d44
lea ecx, [ebp - 0x20]
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x304]
mov edx, dword [ebp - 4]
call fcn.00507520
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x304]
mov edx, 0x523ee8
mov ecx, dword [eax]
call dword [ecx + 0x78]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x28]
mov edi, dword [eax + 0x64]
test edi, edi
je 0x523d88
mov eax, edi
call fcn.00529fb4
test al, al
je 0x523d88
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x304]
mov edx, 0x523ee8
mov ecx, dword [eax]
call dword [ecx + 0x7c]
sub eax, 4
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
mov edi, dword [eax + 0xc]
mov eax, edi
call fcn.0042e300
mov ecx, eax
mov edx, edi
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x304]
mov edi, dword [eax]
call dword [edi + 0x38]
mov eax, dword [ebp - 0x18]
mov edi, dword [eax + 0xc]
cmp byte [edi + 0x28], 0
je 0x523dc4
mov eax, edi
call fcn.0042e430
add eax, eax
add dword [ebp - 0xc], eax
add dword [ebp - 0x10], eax
jmp 0x523dca
inc dword [ebp - 0x10]
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
mov dword [eax + 0x24], edx
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov dword [eax + 0x18], edx
mov edx, ebx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + pe_nt_image_headers32]
mov edx, dword [ebp - 0x14]
mov dword [edx + 0xd], eax
mov edx, ebx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x104]
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x11], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx + 0xd]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 0x11]
mov dword [eax + 8], ecx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xd]
mov edx, dword [ebp - 0xc]
sar edx, 1
jns 0x523e24
adc edx, 0
sub eax, edx
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x11]
sub eax, dword [ebp - 0x10]
inc eax
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x20], eax
mov edx, dword [ebp - 0x28]
mov edx, dword [edx + 0x64]
test edx, edx
je 0x523e8b
lea edi, [edx + 0x31]
add eax, 2
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x1c]
add eax, 2
mov dword [edi], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x304]
mov edx, 0x523ee8
mov ecx, dword [eax]
call dword [ecx + 0x7c]
add eax, dword [edi + 4]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x304]
mov edx, 0x523ee8
mov ecx, dword [eax]
call dword [ecx + 0x7c]
add eax, dword [edi]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, ebx
mov eax, dword [ebp - 8]
mov edi, dword [eax]
call dword [edi + 0x84]
inc ebx
dec esi
jne 0x523bee
mov eax, dword [ebp - 0x14]
call fcn.00404380
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x523ecc
lea eax, [ebp - 4]
call fcn.004052e4
ret