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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x174
mov eax, dword [0x8a3940]
xor eax, esp
mov dword [esp + 0x170], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ecx, ecx
push edi
mov dword [esp + 0x34], esi
mov dword [esp + 0x58], ecx
mov eax, dword [esi + 0x90]
mov dword [esp + 0x68], ecx
mov ebx, dword [eax + 0x14]
xor eax, eax
mov dword [esp + 0x4c], eax
mov eax, dword [ebx + 0xec]
mov dword [esp + 0x48], eax
xor eax, eax
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x78]
test eax, eax
je 0x5231f9
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x58], ecx
mov ecx, dword [eax + 0x18]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x4c], eax
cmp dword [esi + 0x40], 0
je 0x523207
xor edi, edi
mov dword [esp + 0x40], edi
jmp 0x523227
mov eax, dword [ebx]
lea ecx, [esp + 0x40]
push ecx
push ebx
mov eax, dword [eax + 0x74]
call eax
add esp, 8
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x523a92
mov edi, dword [esp + 0x40]
movzx esi, word [esi + 0x72]
mov eax, 1
push 0x1e0
test edi, edi
mov dword [esp + 0x40], esi
push 0
cmove edi, eax
push 0x1e0
mov dword [esp + 0x60], edi
call fcn.004a67c0
add esp, 4
push eax
call fcn.0059d510
movd xmm0, edi
mov ecx, edi
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
mov dword [esp + 0x3c], eax
xorps xmm1, xmm1
addsd xmm0, qword [ecx*8 + 0x7676e0]
ucomisd xmm1, xmm0
movsd qword [esp + 0x7c], xmm0
ja 0x523286
sqrtsd xmm0, xmm0
jmp 0x52328b
call fcn.005a5d90
add esp, 4
movsd qword [esp + 0x68], xmm0
fld qword [esp + 0x68]
fstp qword [esp]
call fcn.005a4670
add esp, 8
fstp qword [esp + 0x60]
movsd xmm0, qword [esp + 0x60]
call fcn.0059be80
movsd xmm0, qword [esp + 0x70]
add esi, 4
mov dword [esp + 0x5c], eax
movd xmm1, esi
cvtdq2pd xmm1, xmm1
divsd xmm0, xmm1
xorps xmm1, xmm1
ucomisd xmm1, xmm0
ja 0x5232da
sqrtsd xmm0, xmm0
jmp 0x5232df
call fcn.005a5d90
sub esp, 8
movsd qword [esp + 0x68], xmm0
fld qword [esp + 0x68]
fstp qword [esp]
call fcn.005a4670
add esp, 8
fstp qword [esp + 0x60]
movsd xmm0, qword [esp + 0x60]
call fcn.0059be80
mov ecx, eax
xor edx, edx
mov eax, 0x100000
shl ecx, 7
div esi
cmp ecx, eax
jae 0x52331e
add ecx, ecx
cmp ecx, eax
jb 0x523318
cmp ecx, edi
mov esi, edi
cmovbe esi, ecx
mov edi, dword [esp + 0x3c]
add edi, 4
imul edi, esi
lea eax, [edi*4]
push eax
call fcn.004a6730
add esp, 4
test eax, eax
je 0x523412
push eax
call fcn.004a6790
lea eax, [edi + edi]
push eax
call fcn.004a6730
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x523414
mov edi, dword [esp + 0x3c]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov dword [edx], eax
mov dword [edx + 0xc], edi
mov edi, dword [esp + 0x54]
mov dword [edx + 4], 0
mov eax, dword [eax + 0x3c]
mov dword [edx + 0x10], eax
lea eax, [esi + esi]
mov dword [edx + 0x30], eax
lea eax, [edi - 1]
mov dword [edx + 0x34], ecx
add eax, esi
mov dword [edx + 0x2c], esi
mov dword [edx + 0x18], edi
xor edx, edx
div esi
mov ecx, dword [esp + 0x30]
mov dword [ecx + 0x24], eax
test eax, eax
jne 0x5233b2
xor edx, edx
mov eax, edi
div esi
inc eax
mov dword [ecx + 0x24], eax
lea eax, [eax + eax*2]
shl eax, 3
push eax
push 0
push eax
call fcn.004a67c0
add esp, 4
push eax
call fcn.0059d510
mov ecx, dword [esp + 0x3c]
add esp, 0xc
mov dword [ecx + 0x3c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x170], ecx
mov dword [ecx + 0x14], eax
cmp dword [esp + 0x40], 0
jne 0x523448
mov esi, dword [esp + 0x34]
push 0
push esi
call fcn.00521890
add esp, 8
test eax, eax
je 0x52343e
mov ecx, dword [eax]
push eax
push esi
mov dword [esi + 0x68], ecx
call fcn.00521910
mov esi, dword [esp + 0x34]
add esp, 8
jmp 0x523a78
shr esi, 1
mov eax, dword [esp + 0x5c]
cmp esi, eax
jae 0x523325
mov edi, dword [esp + 0x3c]
mov esi, eax
add eax, eax
lea ecx, [edi + 4]
imul eax, ecx
push eax
call fcn.004a67c0
add esp, 4
mov ecx, eax
jmp 0x523367
mov esi, 1
jmp 0x523a78
mov eax, dword [ebx + 0x16c]
xor esi, esi
push dword [ebx + 0x88]
mov dword [esp + 0x74], eax
xor eax, eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x54], eax
mov eax, dword [ebx + 0xe4]
mov dword [esp + 0x60], eax
mov dword [esp + 0x58], esi
call fcn.004e4860
mov dword [esp + 0x64], eax
xor edi, edi
mov eax, dword [esp + 0x38]
add esp, 4
mov dword [esp + 0x28], edi
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x6c], ecx
cmp word [eax + 0x70], si
je 0x5234a4
push edi
call fcn.004898b0
add esp, 4
mov dword [esp + 0x28], eax
mov edi, eax
mov eax, dword [ebx + 0x78]
test eax, eax
je 0x5235a3
cmp dword [eax + 0x34], esi
jne 0x5235a3
mov eax, dword [eax + 0x24]
test eax, eax
je 0x5234db
push eax
call fcn.0048be00
mov esi, eax
add esp, 4
test esi, esi
je 0x5234db
mov dword [esp + 0x44], 1
jmp 0x5235a9
mov eax, dword [ebx + 0x78]
cmp dword [eax + 0x28], 0
jne 0x523573
cmp dword [eax + 0x20], 0
jg 0x523573
cmp dword [eax + 0x4c], 0
je 0x523505
mov dword [esp + 0x50], 1
jmp 0x5235a9
cmp dword [eax + 0x3c], 0
jne 0x52351a
mov dword [ebx + 0x16c], 0
jmp 0x5235a9
mov eax, dword [ebx + 0x16c]
test eax, eax
je 0x5235a9
push eax
call fcn.00525790
add esp, 4
test eax, eax
je 0x5235a9
push dword [ebx + 0x16c]
call fcn.00525f00
push dword [ebx + 0x16c]
call fcn.00524210
mov ecx, dword [ebx + 0x16c]
add esp, 8
cmp dword [ecx + 0x60], 0
jne 0x523563
mov eax, dword [ecx + 0x84]
mov esi, dword [eax + 4]
push dword [ecx + 0x90]
call fcn.0051f600
add esp, 4
jmp 0x5235a9
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x523588
push ecx
call fcn.0048be00
mov esi, eax
add esp, 4
mov eax, dword [ebx + 0x78]
mov ecx, dword [esp + 0x48]
test esi, esi
mov eax, dword [eax + 0x20]
cmovne ecx, esi
mov esi, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
mov dword [esp + 0x44], ecx
jmp 0x5235a9
mov dword [ebx + 0x16c], esi
mov eax, dword [esp + 0x30]
push 0x10000
mov dword [eax + 0x1d0], 0x40
call fcn.004a67c0
mov ecx, dword [esp + 0x34]
xor edx, edx
add esp, 4
mov dword [ecx + 0x1cc], eax
mov eax, dword [ecx + 0x1d0]
movzx ecx, word [ebx + 0xa2]
shl eax, 0xa
div ecx
mov dword [esp + 0x48], eax
call fcn.00497330
test eax, eax
jne 0x52361a
cmp dword [esp + 0x48], 1
jle 0x52361a
mov ecx, dword [ebx + 0x78]
test ecx, ecx
je 0x523610
cmp dword [ecx + 0x34], eax
jne 0x523610
cmp dword [ebx + 0x16c], eax
jne 0x52361a
cmp dword [esp + 0x50], eax
jne 0x52361a
mov dword [esp + 0x3c], 1
jmp 0x523622
mov dword [esp + 0x3c], 0
test esi, esi
jne 0x5236d1
cmp dword [ebx + 0x16c], esi
jne 0x5236d1
mov eax, dword [ebx]
mov esi, 1
mov eax, dword [eax + 0x10]
push esi
push ebx
call eax
add esp, 8
mov esi, eax
cmp dword [esp + 0x50], 0
mov dword [esp + 0x2c], esi
je 0x52366b
test esi, esi
jne 0x52366b
mov eax, dword [ebx]
push 1
push ebx
mov eax, dword [eax + 0x24]
call eax
add esp, 8
mov dword [esp + 0x2c], eax
mov esi, eax
mov eax, dword [ebx + 0xec]
mov dword [esp + 0x38], eax
test esi, esi
jne 0x523c08
nop dword [eax]
cmp dword [ebx + 0x28], 0
jne 0x523c04
call fcn.004a5c50
test ax, ax
jne 0x523bff
cmp dword [esp + 0x3c], 0
je 0x5237d9
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x38]
cmp edx, ecx
ja 0x523c18
mov edi, dword [esp + 0x54]
mov eax, dword [esp + 0x48]
test edi, edi
je 0x5236c7
cmp edi, eax
jl 0x523754
sub ecx, edx
cmp ecx, eax
jb 0x5236ef
mov ecx, eax
jmp 0x5236f0
mov eax, dword [ebx]
test esi, esi
jne 0x52363d
mov eax, dword [eax + 0x18]
push ebx
call eax
mov esi, eax
add esp, 4
mov dword [esp + 0x2c], esi
jmp 0x52366b
inc ecx
mov eax, dword [esp + 0x44]
test eax, eax
je 0x5236fd
cmp eax, ecx
cmovb ecx, eax
movzx eax, word [ebx + 0xa2]
mov edi, eax
imul edi, ecx
lea ecx, [edx - 1]
cdq
push edx
push eax
push 0
push ecx
call fcn.0059c2f0
mov esi, eax
mov ecx, edx
movzx eax, word [ebx + 0xa0]
cdq
add esi, eax
mov eax, dword [esp + 0x30]
adc ecx, edx
push ecx
push esi
push edi
push dword [eax + 0x1cc]
push dword [ebx + 0x8c]
call fcn.004e27b0
add esp, 0x14
cmp eax, edi
jne 0x523aa7
mov esi, dword [esp + 0x2c]
xor edi, edi
mov edx, dword [esp + 0x38]
movzx eax, word [ebx + 0xa2]
mov ecx, dword [esp + 0x30]
imul eax, edi
push 0
push ebx
add eax, dword [ecx + 0x1cc]
mov dword [ebx + 0xe4], eax
mov eax, dword [ebx]
mov dword [ebx + 0xec], edx
mov eax, dword [eax + 0x54]
call eax
add esp, 8
cmp eax, 1
je 0x523b2d
mov eax, dword [ebx + 0xe4]
xor ecx, ecx
mov dword [ebx + 0x118], 1
mov dword [ebx + 0x114], 1
cmp byte [eax], 0x2a
sete cl
cmp dword [ebx + 0x7c], 0
mov dword [ebx + 0x124], ecx
je 0x5237d4
mov eax, dword [ebx]
push ebx
mov eax, dword [eax + 0xd4]
call eax
mov esi, eax
add esp, 4
mov dword [esp + 0x2c], esi
test esi, esi
jne 0x523a36
inc edi
mov dword [esp + 0x54], edi
mov eax, dword [esp + 0x58]
test eax, eax
je 0x5237f8
push eax
call fcn.0049d860
push eax
call fcn.0048bc60
add esp, 8
test eax, eax
je 0x523c04
mov eax, dword [esp + 0x38]
cmp eax, dword [esp + 0x40]
ja 0x523987
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x523825
push eax
call fcn.0049d860
push eax
call fcn.0048bc60
add esp, 8
test eax, eax
je 0x523987
mov eax, dword [esp + 0x34]
movzx ecx, word [eax + 0x70]
test cx, cx
je 0x52384b
mov eax, dword [ebx]
mov edi, dword [esp + 0x28]
push edi
push ecx
mov eax, dword [eax + 0x58]
push ebx
call eax
mov esi, eax
add esp, 0xc
mov dword [esp + 0x2c], esi
jmp 0x52385c
push dword [eax + 0xc]
call fcn.0049d860
mov edi, eax
add esp, 4
mov dword [esp + 0x28], edi
push edi
call fcn.0048e6f0
add esp, 4
cmp eax, 0x40
ja 0x523913
je 0x5238ce
sub eax, 2
cmp eax, 0x1e
ja case.0x523883.3
movzx eax, byte [eax + 0x523c30]
jmp dword [eax*4 + 0x523c24]
mov ecx, dword [esp + 0x34]
movzx eax, word [ecx + 0x74]
push eax
movzx eax, word [ecx + 0x72]
push eax
lea eax, [esp + 0x80]
push eax
push edi
call fcn.0051fcd0
mov eax, dword [esp + 0x44]
movzx eax, word [eax + 0x72]
push eax
lea eax, [esp + 0x8c]
push eax
push dword [ebx + 0xec]
push dword [esp + 0x4c]
call fcn.00522530
add esp, 0x20
jmp 0x52398b
mov eax, dword [esp + 0x34]
cmp byte [eax + 0x6e], 0x54
jne case.0x523883.32
lea eax, [esp + 0x78]
push eax
push edi
call fcn.0048c100
push 0x11
lea eax, [esp + 0x84]
push eax
push dword [ebx + 0xec]
push dword [esp + 0x44]
call fcn.00522530
add esp, 0x18
jmp 0x52398b
lea eax, [esp + 0x78]
push eax
push edi
call fcn.0048bc30
push 8
jmp 0x5238e5
cmp eax, 0x80
je 0x523954
cmp eax, 0x400
je 0x52392c
cmp eax, 0xc00
jne case.0x523883.3
push edi
call fcn.0048bbd0
add esp, 4
push eax
push edi
call fcn.0048bbf0
add esp, 4
push eax
push dword [ebx + 0xec]
push dword [esp + 0x3c]
call fcn.00522530
add esp, 0x10
jmp 0x52398b
push edi
call fcn.0048bc60
neg eax
push 1
sbb al, al
and al, 0xe
add al, 0x46
mov byte [esp + 0x80], al
lea eax, [esp + 0x80]
push eax
push dword [ebx + 0xec]
push dword [esp + 0x40]
call fcn.00522530
add esp, 0x14
jmp 0x52398b
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x4c]
test eax, eax
je 0x5239b0
add eax, 0xffffffff
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], edi
je 0x523c04
test ecx, ecx
je 0x5239de
mov eax, dword [ebx + 0x78]
mov edi, dword [esp + 0x68]
cmp edi, dword [eax + 0x18]
jl 0x5239d9
push ecx
xor edi, edi
call fcn.0049d860
push eax
call fcn.0048bc60
add esp, 8
test eax, eax
je 0x523bf2
inc edi
mov dword [esp + 0x68], edi
cmp dword [esp + 0x3c], 0
je 0x5239eb
inc dword [esp + 0x38]
jmp 0x523a29
test esi, esi
jne 0x523a4a
mov eax, dword [ebx]
push 1
push ebx
mov eax, dword [eax + 0x28]
call eax
add esp, 8
mov dword [esp + 0x2c], eax
cmp dword [esp + 0x50], esi
je 0x523a1b
test eax, eax
jne 0x523a1b
mov eax, dword [ebx]
push 1
push ebx
mov eax, dword [eax + 0x24]
call eax
add esp, 8
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0xec]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x38], eax
test esi, esi
je 0x523680
jmp 0x523c04
mov eax, dword [esp + 0x5c]
mov dword [ebx + 0xe4], eax
mov dword [ebx + 0x114], 0
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x34]
cmp word [eax + 0x70], 0
je 0x523a62
push edi
call fcn.0048d9b0
add esp, 4
mov eax, dword [esp + 0x70]
push dword [esp + 0x60]
mov dword [ebx + 0x16c], eax
call fcn.004e4860
add esp, 4
push 1
push dword [esp + 0x34]
call fcn.00522330
add esp, 8
mov dword [ebx + 0x170], 0
mov eax, esi
mov ecx, dword [esp + 0x17c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0059bb21
mov esp, ebp
pop ebp
ret
call fcn.004edd40
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 0x90]
mov eax, dword [ecx + 0x14]
mov edi, dword [ecx]
mov dword [esp + 0x58], eax
call fcn.004a5c50
test ax, ax
jne 0x523b29
call fcn.004b4900
mov esi, eax
push 0x17
push esi
call fcn.004b4a20
push 0x3f2
push esi
call fcn.004b4ac0
push dword [esp + 0x7c]
push esi
call fcn.004b4a80
push 0x17
call fcn.004da950
push eax
push esi
call fcn.004b49c0
add esp, 0x24
test edi, edi
je 0x523b10
push edi
push esi
call fcn.004b49e0
add esp, 8
mov ecx, dword [esp + 0x58]
push esi
push ecx
mov eax, dword [ecx]
mov eax, dword [eax + 0x144]
call eax
push esi
call fcn.004b5150
add esp, 0xc
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x5c]
mov dword [ebx + 0xe4], eax
mov dword [ebx + 0x114], 0
test esi, esi
jne 0x523a4e
mov eax, dword [ebx]
push edx
push ebx
mov eax, dword [eax + 0x10]
call eax
add esp, 8
mov esi, eax
test esi, esi
jne 0x523a4e
push dword [esp + 0x30]
call fcn.00522760
add esp, 4
jmp 0x523a4e
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 0x90]
mov edi, dword [eax]
call fcn.004a5c50
test ax, ax
jne 0x523be4
call fcn.004b4900
mov esi, eax
push 0x21
push esi
call fcn.004b4a20
push 0x402
push esi
call fcn.004b4ac0
push 0
push esi
call fcn.004b4a80
push 0x21
call fcn.004da950
push eax
push esi
call fcn.004b49c0
add esp, 0x24
test edi, edi
je 0x523bcf
push edi
push esi
call fcn.004b49e0
add esp, 8
mov eax, dword [ebx]
push esi
push ebx
mov eax, dword [eax + 0x144]
call eax
push esi
call fcn.004b5150
add esp, 0xc
mov eax, dword [esp + 0x34]
mov esi, 1
mov dword [eax + 0x48], esi
jmp 0x523c04
mov eax, dword [esp + 0x34]
mov dword [eax + 0x48], 1
jmp 0x523c04
mov esi, 1
mov edi, dword [esp + 0x28]
cmp dword [esp + 0x3c], 0
je 0x523b5f
jmp 0x523b31
mov edi, dword [esp + 0x28]
jmp 0x523b35