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

Disassembly:
sub esp, 0x160
push ebp
mov ebp, dword [esp + 0x168]
imul ebp, ebp, 0x1c
push esi
mov esi, ecx
mov ecx, dword [esi + 0x50]
mov al, byte [ebp + ecx + 4]
add ebp, ecx
test al, al
je 0x5291c7
movsx eax, word [ebp + 6]
push ebx
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x20], eax
jl 0x5291c6
mov al, byte [ebp + 8]
cmp al, 0xff
mov byte [esp + 0x18], al
je 0x5291c6
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x18]
push eax
push ecx
mov ecx, esi
call fcn.004fe530
test eax, eax
je 0x5291c6
push edi
mov edi, dword [esi + 0x28]
cmp edi, ebx
je 0x528be9
fld dword [edi + 0x12c]
fcomp dword [0x5997ac]
fnstsw ax
test ah, 1
jne 0x528ab9
mov dword [esp + 0x10], 0xff
jmp 0x528aed
fld dword [edi + 0x12c]
fcomp dword [0x5997c8]
fnstsw ax
test ah, 0x41
jp 0x528ad2
mov dword [esp + 0x10], ebx
jmp 0x528aed
fld dword [edi + 0x12c]
fmul dword [0x5999ec]
fadd dword [0x5999e8]
call fcn.00479bdc
mov dword [esp + 0x10], eax
fld dword [edi + 0x130]
fcomp dword [0x5997ac]
fnstsw ax
test ah, 1
jne 0x528b0a
mov dword [esp + 0x18], 0xff
jmp 0x528b3e
fld dword [edi + 0x130]
fcomp dword [0x5997c8]
fnstsw ax
test ah, 0x41
jp 0x528b23
mov dword [esp + 0x18], ebx
jmp 0x528b3e
fld dword [edi + 0x130]
fmul dword [0x5999ec]
fadd dword [0x5999e8]
call fcn.00479bdc
mov dword [esp + 0x18], eax
fld dword [edi + 0x134]
fcomp dword [0x5997ac]
fnstsw ax
test ah, 1
jne 0x528b58
mov ebx, 0xff
jmp 0x528b84
fld dword [edi + 0x134]
fcomp dword [0x5997c8]
fnstsw ax
test ah, 0x41
jnp 0x528b84
fld dword [edi + 0x134]
fmul dword [0x5999ec]
fadd dword [0x5999e8]
call fcn.00479bdc
mov ebx, eax
fld dword [edi + 0x138]
fcomp dword [0x5997ac]
fnstsw ax
test ah, 1
jne 0x528b9e
mov eax, 0xff
jmp 0x528bcc
fld dword [edi + 0x138]
fcomp dword [0x5997c8]
fnstsw ax
test ah, 0x41
jp 0x528bb5
xor eax, eax
jmp 0x528bcc
fld dword [edi + 0x138]
fmul dword [0x5999ec]
fadd dword [0x5999e8]
call fcn.00479bdc
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
shl eax, 8
or eax, edx
shl eax, 8
or eax, edi
shl eax, 8
or eax, ebx
mov dword [esp + 0x18], eax
jmp 0x528bf1
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [esp + 0x1c]
movzx edx, word [eax + 0x6a570]
mov cx, word [eax + 0x6a572]
imul edx, edx, 0xffff9c00
lea ebx, [eax + 0x3913c]
movzx eax, cx
imul eax, eax, 0x6400
mov dword [esp + 0x10], edx
lea ecx, [esi + 0x6cc]
fild dword [esp + 0x10]
push ecx
mov dword [esp + 0x14], eax
lea edi, [esi + 0x70c]
fstp dword [esi + 0x6fc]
push edi
fild dword [esp + 0x18]
lea edx, [esp + 0x78]
push edx
mov dword [esp + 0x34], ebx
fstp dword [esi + 0x700]
call fcn.0048d832
lea eax, [esi + 0x74c]
push eax
lea ecx, [esp + 0x74]
push ecx
lea edx, [esp + 0xb8]
push edx
call fcn.0048d832
mov ecx, dword [0x5ef6e8]
lea eax, [esp + 0xb0]
push eax
push 0x11
call fcn.004c0790
push 0
push 0xbacccccd
push 0x3acccccd
lea ecx, [esp + 0x3c]
push ecx
call fcn.0048e0ff
lea edx, [esp + 0x30]
push edx
push edi
lea eax, [esp + 0xf8]
push eax
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
call fcn.0048d832
lea ecx, [esp + 0xf0]
push ecx
mov ecx, dword [0x5ef6e8]
push 0x10
call fcn.004c0790
mov ecx, ebp
call fcn.00519cc0
test eax, eax
je 0x5291c5
mov edx, dword [esi + 0x950]
mov eax, dword [eax + 4]
mov ecx, dword [0x5ef6e8]
push edx
push eax
push 0
call fcn.004c00c0
mov ecx, dword [0x5ef6e8]
push 0
push 0x89
call fcn.004bff50
mov ecx, dword [esi + 0x92c]
mov dword [esp + 0x2c], ecx
mov ecx, dword [0x62bc10]
mov byte [esp + 0x17], 1
mov ebp, 1
call fcn.0053a6d0
cmp eax, ebp
jbe 0x528e8e
add ebx, 0x10414
mov eax, dword [ebx - 8]
test eax, eax
je 0x528e77
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
inc edx
shl edx, 8
add edx, ebp
cmp dword [eax + edx*4], 0
je 0x528e77
push ebp
lea ecx, [esi + 0x258]
call fcn.0053a830
mov ecx, dword [0x5ef6e8]
mov edi, eax
mov al, byte [esp + 0x17]
test al, al
je 0x528ddc
push 1
push 4
push 1
call fcn.004bffd0
mov ecx, dword [edi + 0x1c]
push ecx
mov ecx, dword [0x5ef6e8]
push 0
call fcn.004bff90
mov edx, dword [ebx]
mov ecx, dword [0x5ef6e8]
push edx
push 1
call fcn.004bff90
movzx eax, word [esp + 0x178]
mov ecx, dword [esi + 0x948]
mov edx, dword [esp + 0x17c]
push eax
push 0
push ecx
mov ecx, dword [0x5ef6e8]
push 0
push edx
call fcn.004c01d0
mov ecx, dword [0x5ef6e8]
push 2
push 4
push 1
call fcn.004bffd0
mov byte [esp + 0x17], 0
jmp 0x528e1e
mov eax, dword [edi + 0x1c]
push eax
push 0
call fcn.004bff90
mov ecx, dword [ebx]
push ecx
mov ecx, dword [0x5ef6e8]
push 1
call fcn.004bff90
movzx edx, word [esp + 0x178]
mov eax, dword [esi + 0x948]
mov ecx, dword [esp + 0x17c]
push edx
push 0
push eax
push 0
push ecx
mov ecx, dword [0x5ef6e8]
call fcn.004c01d0
mov edi, dword [esi + 0x93c]
mov eax, dword [esi + 0x938]
lea edx, [esp + 0x10]
push edx
push edi
push eax
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x20], ebp
call fcn.005284b0
mov eax, dword [esp + 0x30]
add esp, 0x10
cmp eax, edi
jne 0x528e5e
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esi + 0x934]
mov dword [esp + 0x14], ebp
call fcn.004b39e0
mov edx, dword [esi + 0x92c]
mov ecx, dword [esi + 0x944]
inc edx
mov eax, edx
cmp eax, ecx
mov dword [esi + 0x92c], edx
jge 0x528e8e
mov ecx, dword [0x62bc10]
inc ebp
add ebx, 0xc
call fcn.0053a6d0
cmp ebp, eax
jb 0x528d32
mov al, byte [esi + 0x129]
test al, al
je 0x529199
mov ecx, dword [0x5ef6e8]
push 1
push 0x89
call fcn.004bff50
mov ecx, dword [0x5ef6e8]
push 0xffffffffffffffff
push 0x22
call fcn.004bff50
mov ecx, dword [0x5ef6e8]
push 1
push 0x13
call fcn.004bff50
mov ecx, dword [0x5ef6e8]
push 3
push 0x14
call fcn.004bff50
lea edx, [esi + 0x78c]
push edx
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x138]
push ecx
call fcn.0048d832
mov ecx, dword [0x5ef6e8]
lea edx, [esp + 0x130]
push edx
push 0x10
call fcn.004c0790
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x4a544]
push ecx
mov ecx, dword [0x5ef6e8]
push 0
call fcn.004bff90
mov ecx, dword [0x5ef6e8]
push 2
push 2
push 0
call fcn.004bffd0
mov ecx, dword [0x5ef6e8]
push 1
push 3
push 0
call fcn.004bffd0
mov ecx, dword [0x5ef6e8]
push 4
push 1
push 0
call fcn.004bffd0
mov ecx, dword [0x5ef6e8]
push 2
push 5
push 0
call fcn.004bffd0
mov ecx, dword [0x5ef6e8]
push 1
push 6
push 0
call fcn.004bffd0
mov ecx, dword [0x5ef6e8]
push 1
push 4
push 0
call fcn.004bffd0
mov ecx, dword [0x5ef6e8]
push 3
push 0xd
push 0
call fcn.004bffd0
mov ecx, dword [0x5ef6e8]
push 3
push 0xe
push 0
call fcn.004bffd0
mov al, byte [esi + 0x12a]
test al, al
mov ecx, dword [0x5ef6e8]
je 0x529047
lea edx, [esi + 0x7cc]
push edx
push 0x11
call fcn.004c0790
mov eax, dword [esi + 0x1cc]
mov ecx, dword [0x5ef6e8]
push eax
push 1
call fcn.004bff90
mov ecx, dword [0x5ef6e8]
push 2
push 2
push 1
call fcn.004bffd0
mov ecx, dword [0x5ef6e8]
push 1
push 3
push 1
call fcn.004bffd0
mov ecx, dword [0x5ef6e8]
push 4
push 1
push 1
call fcn.004bffd0
mov ecx, dword [0x5ef6e8]
push 1
push 4
push 1
call fcn.004bffd0
mov ecx, dword [0x5ef6e8]
push 3
push 0xd
push 1
call fcn.004bffd0
mov ecx, dword [0x5ef6e8]
push 3
push 0xe
push 1
call fcn.004bffd0
jmp 0x529050
push 0
push 1
call fcn.004bff90
movzx eax, word [esp + 0x178]
mov edx, dword [0x5f566c]
push eax
add edx, eax
mov dword [0x5f566c], edx
mov ecx, dword [esi + 0x948]
mov edx, dword [esp + 0x180]
push 0
push ecx
mov ecx, dword [0x5ef6e8]
push 0
push edx
call fcn.004c01d0
mov ecx, dword [esi + 0x92c]
mov al, byte [esi + 0x12a]
inc ecx
test al, al
mov dword [esi + 0x92c], ecx
je 0x5290e0
mov ecx, dword [0x5ef6e8]
push 1
push 2
push 1
call fcn.004bffd0
mov ecx, dword [0x5ef6e8]
push 2
push 1
push 1
call fcn.004bffd0
mov ecx, dword [0x5ef6e8]
push 2
push 5
push 1
call fcn.004bffd0
mov ecx, dword [0x5ef6e8]
push 2
push 4
push 1
call fcn.004bffd0
mov ecx, dword [0x5ef6e8]
push 2
push 2
push 0
call fcn.004bffd0
mov ecx, dword [0x5ef6e8]
push 1
push 3
push 0
call fcn.004bffd0
mov ecx, dword [0x5ef6e8]
push 4
push 1
push 0
call fcn.004bffd0
mov ecx, dword [0x5ef6e8]
push 2
push 5
push 0
call fcn.004bffd0
mov ecx, dword [0x5ef6e8]
push 2
push 4
push 0
call fcn.004bffd0
mov ecx, dword [0x5ef6e8]
push 1
push 0xd
push 0
call fcn.004bffd0
mov ecx, dword [0x5ef6e8]
push 1
push 0xe
push 0
call fcn.004bffd0
mov ecx, dword [0x5ef6e8]
push 5
push 0x13
call fcn.004bff50
mov ecx, dword [0x5ef6e8]
push 6
push 0x14
call fcn.004bff50
mov eax, dword [esp + 0x18]
mov ecx, dword [0x5ef6e8]
push eax
push 0x22
call fcn.004bff50
mov ecx, dword [0x5ef6e8]
push 0
push 0x89
call fcn.004bff50
mov ecx, dword [esp + 0x2c]
mov eax, dword [esi + 0x92c]
mov edx, dword [esi + 0x930]
sub eax, ecx
mov ecx, eax
imul ecx, eax
mov eax, dword [esi + 0x928]
inc edx
add eax, ecx
mov dword [esi + 0x930], edx
mov dword [esi + 0x928], eax
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x160
ret 0xc