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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0xf4
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebx + 8]
mov dword [esp + 0x60], ebx
mov dword [esp + 0x30], esi
push edi
lea edi, [ebx + 8]
mov dword [esp + 0x8c], edi
cmp esi, 0x40
ja 0x49b92d
push 2
push dword [ebx + 4]
mov esi, 0x40
push dword [ebx]
sub esi, dword [esp + 0x40]
call fcn.0040ebba
mov ecx, eax
add esp, 0xc
sub ecx, esi
mov esi, dword [esp + 0x34]
jmp 0x49b934
call fcn.00412b61
mov ecx, eax
mov eax, esi
sub eax, ecx
cmp eax, 5
ja 0x49b9b8
cmp esi, 0x40
ja 0x49b989
mov eax, dword [ebx + 4]
mov ecx, 0x3f
mov edi, dword [ebx]
or edx, 0xffffffff
mov ebx, dword [ebp + 8]
mov dword [esp + 0x24], eax
lea eax, [esi - 1]
and eax, 0x3f
sub ecx, eax
or eax, 0xffffffff
mov dword [ebx + 8], esi
call fcn.00403bcf
mov ecx, eax
mov esi, edx
movzx eax, byte [edi + 0x92788c]
cdq
and ecx, eax
and esi, edx
mov dword [ebx], ecx
mov eax, ebx
mov dword [ebx + 4], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebx]
mov ebx, dword [ebp + 8]
push 0
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x28], eax
mov dword [ebx + 8], esi
movzx eax, byte [ecx + 0x92788c]
mov ecx, ebx
cdq
push edx
push eax
call fcn.004148fd
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp eax, 0x34
jae 0x49ba5b
cmp esi, 0x40
jbe 0x49b9c8
mov ebx, dword [ebx]
mov edx, dword [ebx + 4]
mov ecx, dword [ebx]
call fcn.0040669f
xorps xmm1, xmm1
ucomisd xmm1, xmm0
ja 0x49b9e1
sqrtsd xmm0, xmm0
jmp 0x49b9e6
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
sub esp, 8
movsd qword [esp], xmm0
call dword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_round]
fld qword [0x9278e0]
add esp, 8
fxch st(1)
xorps xmm0, xmm0
fcomi st(1)
movlpd qword [esp + 0x20], xmm0
jb 0x49ba27
fsub st(1)
fxch st(1)
fcompi st(1)
jbe 0x49ba29
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
add esi, 0
adc edi, 0x80000000
jmp 0x49ba31
fstp st(1)
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
call fcn.004127a1
mov ecx, dword [ebp + 8]
add eax, esi
push 0
adc edx, edi
push edx
push eax
mov eax, dword [esp + 0x98]
push dword [eax]
call fcn.00414f8d
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [esp + 0x18], 4
mov ebx, esi
mov dword [esp + 0x70], ebx
cmp esi, 0x40
ja 0x49baa3
lea ecx, [esi - 1]
or eax, 0xffffffff
and ecx, 0x3f
or edx, 0xffffffff
not ecx
add ecx, 0x40
call fcn.00403bcf
and eax, 0x10
mov dword [esp + 0x24], edx
mov edi, esi
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], 0
mov dword [esp + 0x48], esi
mov dword [esp + 0x14], edi
jmp 0x49bac9
push 0
push 0
push 0x10
lea ecx, [esp + 0x74]
call fcn.004148fd
mov edi, dword [edi]
mov dword [esp + 0x14], edi
mov dword [esp + 0x48], edi
cmp edi, 0x40
ja 0x49bb1b
mov ebx, dword [esp + 0x70]
mov eax, dword [esp + 0x68]
lea ecx, [edi - 1]
mov dword [esp + 0x1c], eax
and ecx, 0x3f
or eax, 0xffffffff
not ecx
or edx, 0xffffffff
add ecx, 0x40
call fcn.00403bcf
mov ecx, edi
mov dword [esp + 0x24], edx
and eax, 1
mov dword [esp + 0x44], 0
xorps xmm0, xmm0
mov dword [esp + 0x40], eax
mov dword [esp + 0xa8], edi
mov dword [esp + 0x38], ecx
movlpd qword [esp + 0xa0], xmm0
mov dword [esp + 0x80], ecx
jmp 0x49bba7
push 0
push 0
push 1
lea ecx, [esp + 0x4c]
call fcn.004148fd
mov ebx, dword [esp + 0x8c]
mov ecx, dword [ebx]
mov edi, ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0xa8], edi
cmp ecx, 0x40
ja 0x49bb6a
mov eax, dword [esp + 0x68]
xorps xmm0, xmm0
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x1c], eax
movlpd qword [esp + 0xa0], xmm0
mov dword [esp + 0x80], ecx
jmp 0x49bba7
push 0
push 0
push 0
lea ecx, [esp + 0xac]
call fcn.004148fd
mov ecx, dword [ebx]
mov eax, ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x80], eax
cmp ecx, 0x40
ja 0x49bbd0
mov eax, dword [esp + 0x68]
mov edi, dword [esp + 0xa8]
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], edi
dec ecx
or eax, 0xffffffff
and ecx, 0x3f
or edx, 0xffffffff
not ecx
add ecx, 0x40
call fcn.00403bcf
and eax, 2
mov dword [esp + 0x24], edx
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], 0
jmp 0x49bc08
push 0
push 0
push 2
lea ecx, [esp + 0x84]
call fcn.004148fd
mov eax, dword [esp + 0x68]
mov edi, dword [esp + 0xa8]
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x14], edi
mov dword [esp + 0x34], eax
cmp esi, 4
jbe 0x49bcc6
mov edi, dword [esp + 0x1c]
nop dword [eax]
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x68]
push eax
call fcn.00414bf5
test eax, eax
jle 0x49bcbe
add dword [esp + 0x18], 2
mov dword [esp + 0xe8], ebx
cmp ebx, 0x40
ja 0x49bc5b
mov eax, dword [esp + 0x6c]
mov dword [esp + 0xe0], edi
mov dword [esp + 0xe4], eax
jmp 0x49bc6c
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0xe4]
call fcn.00406ffa
push 2
lea ecx, [esp + 0xe4]
call fcn.0040cbcb
cmp ebx, 0x40
jbe 0x49bc88
push edi
call fcn.0040dae4
add esp, 4
mov ebx, dword [esp + 0xe8]
mov edi, dword [esp + 0xe0]
mov eax, dword [esp + 0xe4]
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], ebx
mov dword [esp + 0xe8], 0
cmp dword [esp + 0x18], esi
jb 0x49bc20
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x48]
mov dword [esp + 0xf8], esi
cmp esi, 0x40
ja 0x49bcee
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0xf0], eax
mov dword [esp + 0xf4], ecx
jmp 0x49bcff
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0xf4]
call fcn.00406ffa
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0xf0]
shr eax, 1
push eax
call fcn.0040cbcb
cmp esi, 0x40
jbe 0x49bd23
push dword [esp + 0x40]
call fcn.0040dae4
add esp, 4
mov eax, dword [esp + 0xf4]
mov esi, dword [esp + 0xf8]
mov ebx, dword [esp + 0xf0]
mov dword [esp + 0x30], eax
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x18], esi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x48], esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ebx
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x54]
push eax
call fcn.00404750
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x54]
call fcn.004015af
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x20], eax
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0xb4], eax
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x94]
mov dword [esp + 0xb4], ecx
push eax
lea ecx, [esp + 0xb8]
mov dword [esp + 0x60], 0
call fcn.00404750
lea ecx, [esp + 0xa0]
mov dword [esp + 0x14], eax
cmp ecx, eax
je 0x49be1d
cmp edi, 0x40
jbe 0x49bdf1
push dword [esp + 0x3c]
call fcn.0040dae4
mov eax, dword [esp + 0x18]
add esp, 4
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov edi, dword [eax + 8]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa4], edx
mov dword [esp + 0xa8], edi
mov dword [eax + 8], 0
cmp dword [esp + 0x98], 0x40
jbe 0x49be36
push dword [esp + 0x90]
call fcn.0040dae4
add esp, 4
cmp dword [esp + 0x20], 0x40
jbe 0x49be49
push dword [esp + 0x50]
call fcn.0040dae4
add esp, 4
lea eax, [esp + 0xa0]
push eax
lea ecx, [esp + 0x44]
call fcn.00414bf5
test eax, eax
jle 0x49bec5
cmp esi, 0x40
ja 0x49be9f
cmp edi, 0x40
ja 0x49be9f
lea eax, [edi - 1]
mov ecx, 0x3f
and eax, 0x3f
mov esi, edi
sub ecx, eax
mov dword [esp + 0x48], esi
or eax, 0xffffffff
or edx, 0xffffffff
call fcn.00403bcf
mov ebx, dword [esp + 0x3c]
and ebx, eax
mov eax, dword [esp + 0x18]
and eax, edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x44], eax
jmp 0x49bd62
lea eax, [esp + 0xa0]
push eax
lea ecx, [esp + 0x44]
call fcn.0040ba00
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x48]
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x30], eax
jmp 0x49bd66
lea eax, [esp + 0x40]
mov dword [esp + 0x14], ebx
push eax
lea eax, [esp + 0xd4]
mov dword [esp + 0x1c], esi
push eax
lea ecx, [esp + 0x48]
call fcn.00413f2a
mov dword [esp + 0x28], esi
cmp esi, 0x40
ja 0x49befa
mov eax, dword [esp + 0x30]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
jmp 0x49bf08
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x24]
call fcn.00406ffa
push 0
push 1
lea ecx, [esp + 0x28]
call fcn.0040ba50
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0xb4], eax
lea eax, [esp + 0xb0]
mov dword [esp + 0xb0], ecx
mov dword [esp + 0x58], esi
push eax
lea eax, [esp + 0xc4]
push eax
cmp esi, 0x40
ja 0x49bf5d
mov eax, dword [esp + 0x38]
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], eax
jmp 0x49bf6b
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x5c]
call fcn.00406ffa
push 0
push 1
lea ecx, [esp + 0x60]
call fcn.0040ba50
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x5c]
mov esi, dword [esp + 0x60]
mov dword [esp + 0x98], ecx
lea ecx, [esp + 0x98]
mov dword [esp + 0xa0], esi
mov dword [esp + 0x9c], eax
call fcn.00413f2a
mov ebx, dword [esp + 0x70]
cmp esi, 0x40
jbe 0x49bfba
push dword [esp + 0x50]
call fcn.0040dae4
add esp, 4
cmp dword [esp + 0x28], 0x40
jbe 0x49bfcd
push dword [esp + 0x20]
call fcn.0040dae4
add esp, 4
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0xd0]
push eax
call fcn.00414bf5
test eax, eax
jns 0x49c050
cmp dword [esp + 0xc8], 0x40
mov ecx, dword [ebp + 8]
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov dword [ecx], eax
mov eax, dword [esp + 0x30]
mov dword [ecx + 8], esi
mov dword [ecx + 4], eax
jbe 0x49c012
push dword [esp + 0xc0]
call fcn.0040dae4
add esp, 4
cmp dword [esp + 0xd8], 0x40
jbe 0x49c02b
push dword [esp + 0xd0]
call fcn.0040dae4
add esp, 4
cmp dword [esp + 0x38], 0x40
jbe 0x49c03e
push dword [esp + 0x34]
call fcn.0040dae4
add esp, 4
cmp edi, 0x40
jbe 0x49c2e8
push dword [esp + 0x3c]
jmp 0x49c2e0
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0xb4]
push eax
mov eax, dword [esp + 0xd0]
mov dword [esp + 0x60], eax
cmp eax, 0x40
ja 0x49c085
mov eax, dword [esp + 0xcc]
mov ecx, dword [esp + 0xc8]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], eax
jmp 0x49c096
lea eax, [esp + 0xc8]
push eax
lea ecx, [esp + 0x5c]
call fcn.00406ffa
lea eax, [esp + 0xd8]
push eax
lea ecx, [esp + 0x5c]
call fcn.00405489
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x5c]
mov esi, dword [esp + 0x60]
mov dword [esp + 0x98], ecx
lea ecx, [esp + 0x98]
mov dword [esp + 0xa0], esi
mov dword [esp + 0x9c], eax
call fcn.00404750
cmp esi, 0x40
jbe 0x49c0e5
push dword [esp + 0x50]
call fcn.0040dae4
add esp, 4
mov eax, dword [esp + 0x8c]
mov eax, dword [eax]
mov dword [esp + 0x28], eax
cmp eax, 0x40
ja 0x49c10a
mov ecx, dword [esp + 0x64]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
jmp 0x49c117
push dword [esp + 0x64]
lea ecx, [esp + 0x24]
call fcn.00406ffa
lea eax, [esp + 0xd0]
push eax
lea ecx, [esp + 0x24]
call fcn.00405489
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x94], eax
lea eax, [esp + 0xb0]
mov dword [esp + 0x90], ecx
lea ecx, [esp + 0x90]
push eax
call fcn.00414bf5
mov esi, dword [esp + 0x18]
test eax, eax
jns 0x49c1ff
cmp dword [esp + 0x28], 0x40
mov ecx, dword [ebp + 8]
mov eax, dword [esp + 0x14]
mov dword [ecx], eax
mov eax, dword [esp + 0x30]
mov dword [ecx + 8], esi
mov dword [ecx + 4], eax
jbe 0x49c18f
push dword [esp + 0x20]
call fcn.0040dae4
add esp, 4
cmp dword [esp + 0xb8], 0x40
jbe 0x49c1a8
push dword [esp + 0xb0]
call fcn.0040dae4
add esp, 4
cmp dword [esp + 0xc8], 0x40
jbe 0x49c1c1
push dword [esp + 0xc0]
call fcn.0040dae4
add esp, 4
cmp dword [esp + 0xd8], 0x40
jbe 0x49c1da
push dword [esp + 0xd0]
call fcn.0040dae4
add esp, 4
cmp dword [esp + 0x38], 0x40
jbe 0x49c1ed
push dword [esp + 0x34]
call fcn.0040dae4
add esp, 4
cmp edi, 0x40
jbe 0x49c2e8
push dword [esp + 0x3c]
jmp 0x49c2e0
mov dword [esp + 0x80], esi
cmp esi, 0x40
ja 0x49c21d
mov eax, dword [esp + 0x14]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x7c], eax
jmp 0x49c22b
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x7c]
call fcn.00406ffa
push 0
push 1
lea ecx, [esp + 0x80]
call fcn.0040ba50
cmp dword [esp + 0x28], 0x40
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x7c]
mov dword [edx + 8], eax
mov eax, dword [esp + 0x78]
mov dword [edx], eax
mov dword [edx + 4], ecx
jbe 0x49c268
push dword [esp + 0x20]
call fcn.0040dae4
add esp, 4
cmp dword [esp + 0xb8], 0x40
jbe 0x49c281
push dword [esp + 0xb0]
call fcn.0040dae4
add esp, 4
cmp dword [esp + 0xc8], 0x40
jbe 0x49c29a
push dword [esp + 0xc0]
call fcn.0040dae4
add esp, 4
cmp dword [esp + 0xd8], 0x40
jbe 0x49c2b3
push dword [esp + 0xd0]
call fcn.0040dae4
add esp, 4
cmp dword [esp + 0x38], 0x40
jbe 0x49c2c6
push dword [esp + 0x34]
call fcn.0040dae4
add esp, 4
cmp edi, 0x40
jbe 0x49c2d7
push dword [esp + 0x3c]
call fcn.0040dae4
add esp, 4
cmp esi, 0x40
jbe 0x49c2e8
push dword [esp + 0x14]
call fcn.0040dae4
add esp, 4
cmp ebx, 0x40
jbe 0x49c2f9
push dword [esp + 0x1c]
call fcn.0040dae4
add esp, 4
mov ebx, dword [ebp + 8]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4