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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 0x44]
sub esp, 0x524
test eax, eax
push ebx
push esi
push edi
mov esi, ecx
je 0x528fbe
mov dword [eax], 0
cmp dword [ebp + 0x1c], 0
mov edi, dword [0x100cf190]
je 0x529267
mov eax, dword [ebp + 0x10]
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push eax
call dword [0x100cf0ec]
push 0
lea ecx, [esp + 0x3c]
push ecx
push 0x40
lea edx, [esp + 0x324]
mov ebx, eax
push edx
push ebx
call dword [0x100cf0c0]
mov eax, dword [esp + 0x354]
push 0
push 0
push eax
push ebx
call dword [0x100cf0e8]
push 0
lea ecx, [esp + 0x3c]
push ecx
push 0xf8
lea edx, [esp + 0x134]
push edx
push ebx
call dword [0x100cf0c0]
push ebx
call dword [0x100cf21c]
mov eax, dword [esp + 0x178]
mov ecx, dword [0x100ef6e0]
xor edx, edx
div ecx
mov ebx, dword [esp + 0x15c]
mov dword [esp + 0x3c], ebx
test edx, edx
jne 0x52905f
mov eax, dword [esp + 0x178]
jmp 0x529065
add eax, 1
imul eax, ecx
lea ecx, [esp + 0x44]
push ecx
push 0x18
lea edx, [esp + 0xd8]
push edx
push 0
push esi
mov dword [esp + 0x2c], eax
call dword [0x100ef7c8]
mov edx, dword [esp + 0xd4]
lea eax, [esp + 0x30]
push eax
push 0x1d8
lea ecx, [esp + 0x360]
push ecx
push edx
push esi
call edi
mov edx, dword [esp + 0x360]
lea eax, [esp + 0x30]
push eax
push 0x40
lea ecx, [esp + 0xf0]
push ecx
push edx
push esi
call edi
mov edx, dword [esp + 0x360]
lea eax, [esp + 0x30]
push eax
mov eax, dword [esp + 0x128]
push 0xf8
lea ecx, [esp + 0x228]
push ecx
add eax, edx
push eax
push esi
call edi
mov cx, word [esp + 0x170]
mov dx, word [esp + 0x172]
mov edi, dword [0x100cf1a4]
or word [esp + 0x27e], 0x100
xor eax, eax
mov dword [esp + 0x308], eax
mov dword [esp + 0x30c], eax
lea eax, [esp + 0x20]
push eax
mov word [esp + 0x26e], dx
mov edx, dword [esp + 0x128]
push 4
mov word [esp + 0x270], cx
mov ecx, dword [esp + 0x368]
push 0xf8
add edx, ecx
push edx
push esi
call edi
mov edx, dword [esp + 0x360]
lea eax, [esp + 0x4c]
push eax
mov eax, dword [esp + 0x128]
push 0xf8
lea ecx, [esp + 0x228]
push ecx
add eax, edx
push eax
push esi
call dword [0x100cf1ac]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x360]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x128]
push edx
push 0xf8
add ecx, eax
push ecx
push esi
call edi
mov edi, dword [esp + 0x270]
mov eax, edi
mov ecx, dword [0x100ef6e0]
xor edx, edx
div ecx
test edx, edx
je 0x5291a8
lea edi, [eax + 1]
imul edi, ecx
mov edx, dword [esp + 0x18]
lea ecx, [edx + ebx]
mov edx, dword [esp + 0x360]
xor eax, eax
cmp ecx, edx
mov dword [esp + 0x1c], eax
jbe 0x5291f0
add edi, edx
cmp ebx, edi
jae 0x5291f0
cmp ebx, edx
jae 0x5291df
cmp edx, ecx
ja 0x5291df
mov eax, 1
mov dword [esp + 0x24], ebx
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], eax
cmp edi, ecx
jae 0x529201
mov dword [esp + eax*4 + 0x24], edi
mov dword [esp + eax*4 + 0x10], ecx
add eax, 1
jmp 0x5291fd
mov eax, 1
mov dword [esp + 0x24], ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], eax
test eax, eax
mov dword [esp + 0x18], 0
jle 0x529263
lea ecx, [ecx]
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + eax*4 + 0x24]
mov edi, dword [esp + eax*4 + 0x10]
push 1
push 0x2000
sub edi, ebx
push edi
push ebx
push esi
call dword [0x100cf1b4]
test eax, eax
je 0x529390
push 0x40
push 0x1000
push edi
push ebx
push esi
call dword [0x100cf1b4]
test eax, eax
je 0x529390
mov eax, dword [esp + 0x18]
add eax, 1
cmp eax, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
jl 0x529210
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x3c], ebx
mov eax, dword [0x100ef810]
push 0
push 0
push 0
push 4
push eax
call dword [0x100cf0f0]
mov edi, eax
push edi
push esi
call fcn.0053c460
add esp, 8
push edi
mov ebx, eax
call dword [0x100cf0f8]
test ebx, ebx
je 0x5294e0
push 0x100d89c8
push esi
call fcn.0053c190
add esp, 8
test eax, eax
mov dword [esp + 0x38], eax
je 0x5294e0
push 0x70
lea ecx, [esp + 0x64]
push ecx
call dword [0x100ef7e8]
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0xc]
mov eax, dword [esp + 0x3c]
push 2
push 1
push 0
mov dword [esp + 0x7c], edx
mov edx, dword [ebp + 0x24]
mov dword [esp + 0x90], ecx
lea ecx, [esp + 0x74]
push ecx
mov dword [esp + 0x98], edx
mov edx, dword [0x100ef810]
mov dword [esp + 0x90], eax
mov eax, dword [ebp + 0x28]
push esi
push edx
mov dword [esp + 0x84], ebx
mov dword [esp + 0xa4], eax
call dword [0x100cf22c]
push eax
call dword [0x100cf134]
test eax, eax
je 0x5294e0
mov ecx, dword [ebp + 0x40]
mov eax, dword [ebp + 0x3c]
mov dword [esp + 0xac], ecx
mov ecx, dword [0x100ef540]
mov dword [esp + 0xa8], eax
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
mov edi, dword [ebp + 0x10]
test edi, edi
mov ebx, dword [0x100cf068]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], edx
je 0x5293ac
push 4
push 0x101000
push edi
call ebx
lea ecx, [eax + eax + 2]
push ecx
push 0
push esi
call dword [0x100cf1b4]
lea edx, [esp + 0x34]
push edx
push edi
mov dword [esp + 0x28], eax
call ebx
mov ecx, dword [esp + 0x24]
lea eax, [eax + eax + 2]
push eax
push edi
push ecx
push esi
call dword [0x100cf1ac]
mov eax, dword [esp + 0x20]
jmp 0x5293ae
mov eax, dword [ebp + 0x44]
test eax, eax
je 0x5294e0
mov dword [eax], 0xffffffff
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x40
xor eax, eax
mov edi, dword [ebp + 0x14]
test edi, edi
mov dword [esp + 0x74], eax
je 0x5293f1
push 4
push 0x101000
push edi
call ebx
lea edx, [eax + eax + 2]
push edx
push 0
push esi
call dword [0x100cf1b4]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x34]
push eax
push edi
call ebx
mov edx, dword [esp + 0x1c]
lea ecx, [eax + eax + 2]
push ecx
push edi
push edx
push esi
call dword [0x100cf1ac]
jmp 0x5293f9
mov dword [esp + 0x18], 0
mov edi, dword [ebp + 0x18]
test edi, edi
mov eax, dword [esp + 0x18]
mov dword [esp + 0x78], eax
je 0x529440
push 4
push 0x101000
push edi
call ebx
lea ecx, [eax + eax + 2]
push ecx
push 0
push esi
call dword [0x100cf1b4]
lea edx, [esp + 0x34]
push edx
push edi
mov dword [esp + 0x20], eax
call ebx
mov ecx, dword [esp + 0x1c]
lea eax, [eax + eax + 2]
push eax
push edi
push ecx
push esi
call dword [0x100cf1ac]
jmp 0x529448
mov dword [esp + 0x18], 0
mov edx, dword [esp + 0x18]
mov eax, 0x200
xor ecx, ecx
mov dword [esp + 0x7c], edx
mov dword [esp + 0x2c], 0xff
call fcn.0053b3c0
mov edi, eax
mov eax, dword [0x100ef4c8]
test eax, eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], 0
mov word [edi], 0
je 0x5294eb
lea ecx, [esp + 0x24]
push ecx
push eax
call fcn.0053d1d0
mov edi, dword [esp + 0x2c]
add esp, 8
cmp dword [esp + 0x28], 0
je 0x5294eb
test edi, edi
je 0x5294eb
push 4
push 0x101000
push edi
call ebx
lea edx, [eax + eax + 2]
push edx
push 0
push esi
call dword [0x100cf1b4]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x34]
push eax
push edi
call ebx
mov edx, dword [esp + 0x24]
lea ecx, [eax + eax + 2]
push ecx
push edi
push edx
push esi
call dword [0x100cf1ac]
test eax, eax
jne 0x5294ef
lea ecx, [esp + 0x24]
call fcn.004729b0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x40
xor eax, eax
jmp 0x5294f3
mov eax, dword [esp + 0x20]
mov ebx, dword [0x100cf22c]
push 2
push 1
mov dword [esp + 0x9c], eax
push 0
lea eax, [esp + 0x54]
push eax
push esi
call ebx
push eax
call ebx
push eax
call dword [0x100cf134]
test eax, eax
jne 0x529532
test edi, edi
je 0x5294e0
mov eax, edi
call fcn.00472510
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x40
mov ecx, dword [esp + 0x48]
push 0
push 0
push 0
push 0
mov dword [esp + 0xac], ecx
mov dword [esp + 0x50], 0xffffffff
call dword [0x100cf0cc]
push 2
push 1
push 0
lea edx, [esp + 0x5c]
push edx
push esi
push eax
mov dword [esp + 0x30], eax
call ebx
push eax
call dword [0x100cf134]
test eax, eax
je 0x5294d7
mov eax, dword [esp + 0x50]
lea ecx, [esp + 0x4c]
push ecx
push 0x18
lea edx, [esp + 0xd8]
push edx
xor edi, edi
push edi
push esi
mov dword [esp + 0xac], eax
call dword [0x100ef7c8]
mov edx, dword [esp + 0xd4]
mov ebx, dword [0x100cf190]
lea eax, [esp + 0x20]
push eax
push 0x1d8
lea ecx, [esp + 0x360]
push ecx
push edx
push esi
call ebx
mov edx, dword [esp + 0x360]
lea eax, [esp + 0x20]
push eax
push 0x40
lea ecx, [esp + 0xf0]
push ecx
push edx
push esi
call ebx
mov edx, dword [esp + 0x360]
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x128]
push 0xf8
lea ecx, [esp + 0x130]
push ecx
add eax, edx
push eax
push esi
call ebx
mov ecx, dword [esp + 0x210]
mov edx, dword [esp + 0x214]
mov ebx, dword [0x100cf1a4]
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0xa8], edx
mov edx, dword [esp + 0x128]
push 4
mov dword [esp + 0xa8], ecx
mov ecx, dword [esp + 0x368]
push 0xf8
add edx, ecx
push edx
push esi
mov dword [esp + 0x224], edi
mov dword [esp + 0x228], edi
call ebx
mov edx, dword [esp + 0x360]
lea eax, [esp + 0x44]
push eax
mov eax, dword [esp + 0x128]
push 0xf8
lea ecx, [esp + 0x130]
push ecx
add eax, edx
push eax
push esi
call dword [0x100cf1ac]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x360]
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x128]
push edx
push 0xf8
add ecx, eax
push ecx
push esi
call ebx
mov edx, dword [ebp + 8]
cmp dword [edx + 0x48], edi
je 0x529735
mov ebx, 1
mov dword [esp + 0xb0], ebx
call fcn.0052aba0
mov dword [esp + 0xb4], eax
xor eax, eax
push ebx
lea ebx, [esp + 0x14]
mov dword [esp + 0xbc], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
call fcn.0052ac30
add esp, 4
lea ebx, [edi + 0xb]
call fcn.0052aba0
mov dword [esp + 0xbc], eax
xor eax, eax
push ebx
lea ebx, [esp + 0x14]
mov dword [esp + 0xc4], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
call fcn.0052ac30
add esp, 4
lea ebx, [edi + 0xc]
call fcn.0052aba0
mov dword [esp + 0xc4], eax
xor eax, eax
push ebx
lea ebx, [esp + 0x14]
mov dword [esp + 0xcc], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
call fcn.0052ac30
add esp, 4
push 4
push 0x101000
push 0x70
push 0
push esi
call dword [0x100cf1b4]
mov ebx, eax
lea eax, [esp + 0x34]
push eax
push 0x70
lea ecx, [esp + 0x68]
push ecx
push ebx
push esi
call dword [0x100cf1ac]
test eax, eax
je 0x5294d7
mov edx, esi
call fcn.0053cdc0
mov edi, eax
test edi, edi
mov dword [esp + 0x1c], edi
je 0x5294d7
mov eax, dword [esp + 0x38]
mov ecx, dword [ebp + 0x34]
lea edx, [esp + 0x40]
push edx
push 0
push ebx
push eax
push ecx
push 0
push esi
call dword [0x100cf1c0]
test eax, eax
mov dword [esp + 0x20], eax
je 0x5294d7
mov ecx, dword [ebp + 0x30]
test ecx, ecx
je 0x5297ad
mov edx, dword [esp + 0x40]
mov dword [ecx], edx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x58], esi
lea edx, [esp + 0x54]
mov esi, 3
mov dword [esp + 0x54], ecx
mov dword [esp + 0x5c], eax
call fcn.0052f3a0
test eax, eax
jne 0x5294d7
mov ecx, dword [0x100ef540]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
push edi
call eax
mov ecx, dword [0x100ef48c]
mov edx, dword [esp + 0x18]
mov eax, dword [ecx + 0x2b0]
add ecx, 0x2b0
push edx
mov edx, dword [eax + 0x24]
call edx
call eax
mov esi, dword [ebp + 8]
add esi, 8
mov edi, esi
lea ebx, [esp + 0xf]
mov dword [esp + 0x10], edi
call fcn.004761f0
test al, al
je 0x52981e
add dword [edi + 0x10], 1
mov al, 1
mov ebx, dword [ebp + 8]
mov edi, dword [ebx + 0x3c]
mov byte [esp + 0x14], al
lea eax, [esp + 0x10]
call fcn.004761a0
test edi, edi
je 0x529a8a
push 1
mov eax, ebx
call fcn.00524e20
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, eax
mov eax, 1
call fcn.00524fe0
lea ebx, [esp + 0xf]
mov edi, esi
mov dword [esp + 0x10], esi
call fcn.004761f0
test al, al
je 0x52986e
mov eax, 1
add dword [esi + 0x10], eax
mov edx, dword [ebp + 8]
mov edi, dword [edx + 0x28]
mov byte [esp + 0x14], al
lea eax, [esp + 0x10]
call fcn.004761a0
mov eax, dword [esp + 0x1c]
push eax
mov ecx, edi
mov eax, 3
call fcn.00524fe0
mov edi, esi
lea ebx, [esp + 0xf]
mov dword [esp + 0x10], edi
call fcn.004761f0
test al, al
je 0x5298ad
mov eax, 1
add dword [edi + 0x10], eax
mov ecx, dword [ebp + 8]
mov edi, dword [ecx + 0x2c]
mov byte [esp + 0x14], al
lea eax, [esp + 0x10]
call fcn.004761a0
mov edx, dword [esp + 0x1c]
push edx
mov ecx, edi
mov eax, 4
call fcn.00524fe0
mov edi, esi
lea ebx, [esp + 0xf]
mov dword [esp + 0x10], edi
call fcn.004761f0
test al, al
je 0x5298ec
mov eax, 1
add dword [edi + 0x10], eax
mov byte [esp + 0x14], al
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x30]
lea eax, [esp + 0x10]
call fcn.004761a0
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, edi
mov eax, 5
call fcn.00524fe0
mov edi, esi
lea ebx, [esp + 0xf]
mov dword [esp + 0x10], edi
call fcn.004761f0
test al, al
je 0x52992b
mov eax, 1
add dword [edi + 0x10], eax
mov edx, dword [ebp + 8]
mov edi, dword [edx + 0x34]
mov byte [esp + 0x14], al
lea eax, [esp + 0x10]
call fcn.004761a0
mov eax, dword [esp + 0x1c]
push eax
mov ecx, edi
mov eax, 6
call fcn.00524fe0
mov edi, esi
lea ebx, [esp + 0xf]
mov dword [esp + 0x10], edi
call fcn.004761f0
test al, al
je 0x52996a
mov eax, 1
add dword [edi + 0x10], eax
mov ecx, dword [ebp + 8]
mov edi, dword [ecx + 0x38]
mov byte [esp + 0x14], al
lea eax, [esp + 0x10]
call fcn.004761a0
mov edx, dword [esp + 0x1c]
push edx
mov ecx, edi
mov eax, 7
call fcn.00524fe0
mov edi, esi
lea ebx, [esp + 0xf]
mov dword [esp + 0x10], edi
call fcn.004761f0
test al, al
je 0x5299a9
mov eax, 1
add dword [edi + 0x10], eax
mov byte [esp + 0x14], al
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x3c]
lea eax, [esp + 0x10]
call fcn.004761a0
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, edi
mov eax, 8
call fcn.00524fe0
mov edi, esi
lea ebx, [esp + 0xf]
mov dword [esp + 0x10], edi
call fcn.004761f0
test al, al
je 0x5299e8
mov eax, 1
add dword [edi + 0x10], eax
mov edx, dword [ebp + 8]
mov edi, dword [edx + 0x40]
mov byte [esp + 0x14], al
lea eax, [esp + 0x10]
call fcn.004761a0
mov eax, dword [esp + 0x1c]
push eax
mov ecx, edi
mov eax, 9
call fcn.00524fe0
mov edi, esi
lea ebx, [esp + 0xf]
mov dword [esp + 0x10], edi
call fcn.004761f0
test al, al
je 0x529a27
mov eax, 1
add dword [edi + 0x10], eax
mov ecx, dword [ebp + 8]
mov edi, dword [ecx + 0x44]
mov byte [esp + 0x14], al
lea eax, [esp + 0x10]
call fcn.004761a0
mov edx, dword [esp + 0x1c]
push edx
mov ecx, edi
mov eax, 0xb
call fcn.00524fe0
lea ebx, [esp + 0xf]
mov edi, esi
mov dword [esp + 0x10], esi
call fcn.004761f0
test al, al
je 0x529a66
mov eax, 1
add dword [esi + 0x10], eax
mov byte [esp + 0x14], al
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x48]
lea eax, [esp + 0x10]
call fcn.004761a0
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, esi
mov eax, 0xc
call fcn.00524fe0
cmp dword [ebp + 0x38], 0
mov esi, dword [esp + 0x20]
je 0x529a9b
push esi
call dword [0x100cf1bc]
mov eax, dword [ebp + 0x2c]
test eax, eax
je 0x529abb
lea ecx, [esp + 0x24]
mov dword [eax], esi
call fcn.004729b0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x40
mov ecx, dword [0x100ef48c]
mov edx, dword [ecx + 0x2b0]
mov eax, dword [edx + 0x24]
add ecx, 0x2b0
push esi
call eax
call eax
lea ecx, [esp + 0x24]
call fcn.004729b0
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x40