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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5cc
mov eax, dword [0x101282a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x20]
push edi
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x5b0], esi
lea esi, [ebp - 0x134]
push esi
mov dword [ebp - 0x5c0], eax
mov eax, dword [ebp + 0x1c]
push edx
mov dword [ebp - 0x5b4], eax
mov eax, dword [ebx]
push ecx
push ebx
mov dword [ebp - 0x5ac], edx
mov dword [ebp - 0x594], ecx
call dword [eax + 0x38]
mov esi, dword [ebp - 0x5b0]
test eax, eax
js 0x10059384
mov eax, dword [ebx]
lea ecx, [ebp - 0x590]
push ecx
push dword [ebp - 0x594]
push ebx
call dword [eax + 0x20]
and dword [ebp - 0x598], 0
call fcn.1001a069
mov dword [ebp - 0x5a4], eax
mov edx, dword [eax]
mov ecx, dword [edx]
mov dword [ebp - 0x5b8], ecx
cmp ecx, edx
je 0x10058ff5
mov esi, dword [ebp - 0x594]
push dword [ebp - 0x584]
lea eax, [ecx + 0x10]
push esi
push dword [ebp - 0x5ac]
mov dword [ebp - 0x5a0], eax
push ebx
push dword [eax]
lea eax, [ebp - 0x5cc]
push eax
call fcn.10059395
mov ecx, dword [ebp - 0x5b4]
lea eax, [ebp - 0x5cc]
add esp, 0x18
push eax
mov eax, dword [ebp - 0x5a0]
push dword [eax]
call fcn.10015b92
lea ecx, [ebp - 0x5cc]
call fcn.1001524c
cmp dword [ebp - 0x598], eax
lea ecx, [ebp - 0x5bc]
mov dword [ebp - 0x5bc], eax
lea eax, [ebp - 0x598]
cmovae ecx, eax
mov eax, dword [ecx]
mov dword [ebp - 0x598], eax
mov eax, dword [ebp - 0x5a0]
push dword [eax]
call fcn.1001a09a
pop ecx
cmp byte [eax + 0x28], 0
je 0x10058fc5
push dword [ebp - 0x5a0]
lea ecx, [edi + 0x48]
call fcn.1004667f
lea ecx, [ebp - 0x5c8]
call fcn.10067a16
lea ecx, [ebp - 0x5b8]
call fcn.100134d4
mov eax, dword [ebp - 0x5a4]
mov ecx, dword [ebp - 0x5b8]
cmp ecx, dword [eax]
jne 0x10058f33
mov esi, dword [ebp - 0x5b0]
or dword [edi], 0xffffffff
lea ecx, [ebp - 0xd8]
and dword [edi + 4], 0
lea edx, [ebp - 0xdc]
mov eax, dword [ebp - 0xd8]
cmp eax, dword [ebp - 0xdc]
movss xmm0, dword [0x100e8820]
cmovae ecx, edx
mov dword [edi + 8], 1
and dword [edi + 0x14], 0
mov dword [edi + 0x30], 0x3f800000
mov eax, dword [ecx]
xor ecx, ecx
mov dword [edi + 0xc], eax
inc ecx
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], eax
mov eax, dword [ebp - 0x68]
and eax, 0xff00
mov dword [edi + 0x10], ecx
mov dword [edi + 0x20], ecx
mov dword [edi + 0x24], ecx
cmp eax, 0x300
jb 0x10059065
movss xmm0, dword [ebp - 0x84]
and dword [edi + 0x40], 0
lea eax, [ebp - 0x5a4]
and dword [edi + 0x44], 0
lea ecx, [edi + 0x54]
push eax
movss dword [edi + 0x34], xmm0
mov dword [edi + 0x38], 0x3f800000
mov dword [edi + 0x3c], 0x3f800000
mov dword [ebp - 0x5a4], 0x93a6
call fcn.1004667f
xor edx, edx
mov dword [edi + 0x78], 0x10
mov ecx, 0xfffe0300
mov dword [edi + 0x70], edx
cmp dword [ebp - 0x70], ecx
mov dword [edi + 0x74], edx
sbb eax, eax
mov dword [edi + 0x80], 0xfe
and eax, 0xfffffffe
mov dword [edi + 0x7c], 0x3f8
add eax, 9
mov dword [edi + 0x84], edx
shl eax, 2
mov dword [edi + 0x88], eax
cmp dword [ebp - 0x70], ecx
jb 0x10059110
mov eax, dword [ebx]
push 0x6f
push 3
push 0x100000
push dword [ebp - 0x584]
push dword [ebp - 0x5ac]
push dword [ebp - 0x594]
push ebx
call dword [eax + 0x28]
xor edx, edx
test eax, eax
js 0x10059110
mov dword [edi + 0x8c], 4
jmp 0x10059116
mov dword [edi + 0x8c], edx
cmp dword [ebp - 0x68], 0xffff0300
push 0x10
sbb eax, eax
mov dword [edi + 0x98], edx
and eax, 0xffffff40
mov dword [edi + 0xa4], edx
add eax, 0xdd
mov dword [edi + 0xa8], edx
mov dword [edi + 0x94], eax
shl eax, 2
mov dword [edi + 0x90], eax
mov eax, dword [edi + 0x88]
mov dword [edi + 0x9c], eax
shr eax, 2
pop ecx
push dword [ebp - 0x5b4]
mov dword [edi + 0xd4], eax
mov eax, dword [edi + 0x8c]
add eax, ecx
mov dword [edi + 0xa0], ecx
mov ecx, esi
mov dword [edi + 0xac], edx
mov dword [edi + 0xb0], edx
mov dword [edi + 0xb4], edx
mov dword [edi + 0xb8], edx
mov dword [edi + 0xbc], edx
mov dword [edi + 0xc0], edx
mov dword [edi + 0xc4], edx
mov dword [edi + 0xc8], edx
mov dword [edi + 0xcc], edx
mov dword [edi + 0xd0], edx
mov dword [edi + 0xd8], eax
mov dword [edi + 0xdc], edx
mov dword [edi + 0xe0], edx
mov dword [edi + 0xe4], edx
call fcn.10015c45
cmp dword [ebp - 0x7c], 0x10000
push 0x1ff
sbb al, al
mov word [esi + 1], 0x101
inc al
mov byte [esi + 3], 1
mov byte [esi], al
xor eax, eax
push eax
mov byte [ebp - 0x580], al
lea eax, [ebp - 0x57f]
push eax
mov dword [esi + 5], 1
call fcn.100d0450
push 0x24c
lea eax, [ebp - 0x380]
push 0
push eax
call fcn.100d0450
mov eax, dword [ebx]
lea ecx, [ebp - 0x580]
add esp, 0x18
push ecx
push 0
push dword [ebp - 0x594]
push ebx
call dword [eax + 0x14]
test eax, eax
js 0x1005927f
test byte [ebp - 0xf8], 2
mov edi, 0x1002
jne 0x1005926a
test dword [ebp - 0xf8], 0x20100
jne 0x1005926a
call fcn.100872c9
test al, al
mov eax, dword [ebp - 0x158]
jne 0x10059265
cmp eax, edi
je 0x10059270
xor ecx, ecx
inc ecx
jmp 0x10059272
mov eax, dword [ebp - 0x158]
xor ecx, ecx
mov byte [esi + 0x14], cl
cmp eax, edi
jne 0x10059283
mov byte [esi + 0x12], 0
jmp 0x10059283
mov byte [esi + 0x14], 0
test dword [ebp - 0x110], 0x20000
mov eax, dword [ebp - 0xc8]
mov byte [esi + 0x15], 0
mov byte [esi + 0x13], 1
je 0x100592a7
cmp eax, 2
jb 0x100592a7
xor ecx, ecx
inc ecx
jmp 0x100592a9
xor ecx, ecx
mov ebx, dword [ebp - 0x5c0]
movd xmm0, eax
and dword [ebp - 0x5a8], 0
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
mov byte [esi + 0x16], cl
lea ecx, [ebp - 0x5a8]
push ecx
push 9
push ebx
addsd xmm0, qword [eax*8 + 0x100e8830]
cvtpd2ps xmm0, xmm0
movss dword [esi + 0x18], xmm0
mov eax, dword [ebx]
call dword [eax + 0x1d8]
test eax, eax
js 0x100592fa
cmp dword [ebp - 0x5a8], 0
je 0x100592fa
xor eax, eax
inc eax
jmp 0x100592fc
xor eax, eax
mov byte [esi + 0x1c], al
lea eax, [ebp - 0x5a8]
push eax
call fcn.1002eb9d
mov eax, dword [ebx]
and dword [ebp - 0x59c], 0
pop ecx
lea ecx, [ebp - 0x59c]
push ecx
push 8
push ebx
call dword [eax + 0x1d8]
test eax, eax
js 0x10059337
cmp dword [ebp - 0x59c], 0
je 0x10059337
xor eax, eax
inc eax
jmp 0x10059339
xor eax, eax
mov byte [esi + 0x1d], al
lea eax, [ebp - 0x59c]
push eax
call fcn.1002eb9d
cmp dword [ebp - 0x68], 0xffff0300
mov edx, dword [ebp - 0x598]
sbb al, al
mov dword [esi + 0x1e], 0x1010100
inc al
mov byte [esi + 0x22], 1
mov byte [esi + 0x28], al
mov eax, dword [ebp - 0x2c]
shr eax, 1
and al, 1
mov dword [esi + 0x24], edx
pop ecx
mov byte [esi + 0x29], 1
mov byte [esi + 0x2a], al
mov byte [esi + 0x2b], 1
mov dword [esi + 0x2f], 0x10101
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100cdf13
mov esp, ebp
pop ebp
ret