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

Disassembly:
push 0
push 0
lea edx, [esp + 0x60]
push 0
push edx
call dword [0x59763c]
test eax, eax
je 0x5286af
mov ebp, dword [esi + 0x1c]
call dword [0x59776c]
cmp eax, ebp
jne 0x5286af
mov eax, dword [esp + 0x5c]
cmp eax, 0x200
ja 0x52868a
je 0x5284cd
sub eax, 0x100
je 0x5284b1
sub eax, 0x13
jne 0x528696
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
lea edx, [esp + 0x10]
mov dword [esp + 0x10], eax
push edx
push ebp
mov dword [esp + 0x1c], ecx
call dword [0x597698]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
lea edx, [esp + 0x44]
push ecx
push edx
call dword [0x59778c]
test eax, eax
je 0x528492
lea eax, [esp + 0x58]
push eax
call dword [0x5976c4]
jmp 0x5283fe
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
and ecx, 0xffff
and edx, 0xffff
shl ecx, 0x10
or ecx, edx
mov dword [esp + 0x64], ecx
jmp 0x5284d1
cmp word [esp + 0x60], 0x1b
je 0x5286a6
lea eax, [esp + 0x58]
push eax
call dword [0x5976c4]
jmp 0x5283fe
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x18]
movsx eax, cx
shr ecx, 0x10
movsx ecx, cx
test edx, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
jne 0x528574
sub eax, edi
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x3c]
cmp eax, edx
jg 0x528519
mov edx, dword [esp + 0xcc]
mov eax, ecx
mov ecx, dword [esp + 0x38]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
cmp eax, ecx
jle 0x5283fe
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x18], 1
test eax, eax
jne 0x528532
push 0
mov ecx, esi
call fcn.00527c80
mov eax, dword [esi + 0x1c]
push eax
call dword [0x5976ec]
mov ebp, dword [esp + 0xcc]
lea ecx, [esp + 0x1c]
push ebp
push edi
push ebp
push edi
push ecx
call dword [0x597730]
push 0
mov eax, 1
push 0
push eax
push ebx
push 0
push eax
lea edx, [esp + 0x34]
push ebx
push edx
lea ecx, [esp + 0xa0]
call 0x5f4909
jmp 0x52857b
mov ebp, dword [esp + 0xcc]
push 0
mov eax, 1
push 0
push eax
push ebx
push 0
push eax
lea eax, [esp + 0x34]
push ebx
push eax
lea ecx, [esp + 0xa0]
call 0x5f4909
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x44]
cmp eax, ecx
jge 0x5285b6
mov ecx, dword [esi + 0x1c]
push 0
push 0
push 0x115
push ecx
jmp 0x5285c9
cmp eax, dword [esp + 0x4c]
jl 0x5285cf
mov edx, dword [esi + 0x1c]
push 0
push 1
push 0x115
push edx
call dword [0x5977c4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x40]
cmp eax, ecx
jge 0x5285ea
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0x114
push eax
jmp 0x5285fd
cmp eax, dword [esp + 0x48]
jl 0x528603
mov ecx, dword [esi + 0x1c]
push 0
push 1
push 0x114
push ecx
call dword [0x5977c4]
push 0
mov ecx, esi
mov dword [esp + 0x54], edi
call 0x5e9a9c
push 1
mov ecx, esi
sub edi, eax
call 0x5e9a9c
imul eax, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
sub ebp, eax
mov eax, dword [esp + 0x10]
push edx
push eax
push ebp
lea ecx, [esp + 0x28]
push edi
push ecx
call dword [0x597730]
lea ecx, [esp + 0x1c]
call 0x5f4dfb
mov eax, dword [esp + 0xc4]
lea edx, [esp + 0x94]
push edx
lea ecx, [esp + 0x20]
push eax
push ecx
mov ecx, esi
call fcn.005287a0
push 0
mov eax, 1
push 0
push eax
push ebx
push 0
push eax
lea edx, [esp + 0x34]
push ebx
push edx
lea ecx, [esp + 0xa0]
call 0x5f4909
mov edi, dword [esp + 0xc8]
jmp 0x5283fe
sub eax, 0x202
je 0x5286af
sub eax, 3
je 0x5286af
lea eax, [esp + 0x58]
push eax
call dword [0x5976c4]
jmp 0x5283fe
push 0
mov ecx, esi
call fcn.00527c80
mov ecx, dword [esp + 0x34]
mov edx, dword [esi + 0x1c]
push ecx
push edx
call dword [0x5976dc]
call dword [0x597790]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x5286ee
push 0
mov eax, 1
push 0
push eax
push ebx
push 0
push eax
lea eax, [esp + 0x34]
push ebx
push eax
lea ecx, [esp + 0xa0]
call 0x5f4909
jmp 0x5286ff
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x5286ff
push 0
mov ecx, esi
call fcn.00527c80
mov eax, dword [esi + 0x1c]
push eax
mov dword [esp + 0x78], eax
call dword [0x597640]
mov ecx, dword [esp + 0xc0]
lea edx, [esp + 0x74]
neg ecx
sbb ecx, ecx
push edx
and ecx, 3
mov dword [esp + 0x7c], eax
add ecx, 0xfffffffb
mov dword [esp + 0x80], ecx
mov ecx, esi
call fcn.00527ba0
lea eax, [esp + 0x58]
push eax
call dword [0x5976c4]
lea ecx, [esp + 0x80]
mov byte [esp + 0xb8], 0
call 0x5ee8dd
lea ecx, [esp + 0x94]
mov dword [esp + 0xb8], 0xffffffff
call 0x5e6029
mov ecx, dword [esp + 0xb0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xac
ret 0x10