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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x524f7e
mov eax, dword fs:[0]
push eax
sub esp, 0x1d8
mov eax, dword [0x5750c8]
xor eax, esp
mov dword [esp + 0x1d0], eax
push ebx
push esi
push edi
mov eax, dword [0x5750c8]
xor eax, esp
push eax
lea eax, [esp + 0x1e8]
mov dword fs:[0], eax
xor esi, esi
mov edi, ecx
mov dword [esp + 0x24], esi
mov eax, dword [edi + 0x284]
mov dword [esp + 0x28], edi
cmp eax, esi
jle 0x41060d
dec eax
mov dword [edi + 0x284], eax
lea ecx, [edi + 0x18]
lea edx, [edi + 4]
lea eax, [esp + 0x50]
call fcn.00403dd0
mov byte [edi + 0x61], 0
cmp dword [edi + 0x5c], esi
jl 0x410d7e
cmp byte [edi + 0x2d], 0
je 0x410d7e
mov eax, dword [edi + 0x54]
fld dword [0x555660]
push eax
fstp dword [esp + 0x18]
lea ecx, [esp + 0x60]
call fcn.00404370
fldz
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
push esi
sub esp, 0x10
mov eax, esp
fstp dword [esp + 0xc]
mov dword [eax], ecx
mov ecx, dword [esp + 0x78]
mov dword [eax + 4], edx
mov edx, dword [0x5b30cc]
push edx
mov dword [eax + 8], ecx
call fcn.0041f760
fstp dword [esp + 0x2c]
fld dword [0x555584]
fld dword [esp + 0x2c]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x4106a1
fdivr qword [0x555658]
fmul qword [0x555650]
fstp dword [esp + 0x14]
jmp 0x4106a3
fstp st(0)
mov eax, dword [edi + 0x10]
xor ebx, ebx
mov dword [esp + 0x38], ebx
cmp eax, esi
je 0x4106ee
fld dword [eax + 0xc]
fsub qword [0x554fd0]
fstp dword [esp + 0x44]
fld dword [eax + 0xc]
fsub qword [0x555648]
fadd qword [0x554b68]
fstp dword [esp + 0x4c]
call fcn.0048fe70
fchs
fstp dword [esp + 0x40]
call fcn.0048fe70
lea eax, [esp + 0x40]
fstp dword [esp + 0x48]
mov dword [esp + 0x38], eax
mov ebx, eax
cmp byte [edi + 0x60], 0
mov eax, dword [0x5b30cc]
mov dl, 0x40
mov cl, 0x22
mov dword [esp + 0x18], 0xff402217
mov dword [esp + 0x2c], eax
je 0x410862
fld dword [esp + 0x14]
mov ecx, dword [0x5b30e4]
fmul qword [0x555640]
mov dword [esp + 0x2c], ecx
mov esi, 0x576b6c
lea eax, [esp + 0x20]
lea ecx, [esp + 0x18]
fstp dword [esp + 0x14]
call fcn.00403890
movzx edx, byte [0x576b6c]
push ecx
mov eax, esp
mov byte [eax], dl
movzx ecx, byte [0x576b6d]
mov byte [eax + 1], cl
movzx edx, byte [0x576b6e]
mov byte [eax + 2], dl
movzx ecx, byte [0x576b6f]
mov edx, dword [esp + 0x44]
mov byte [eax + 3], cl
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x28], esp
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x5c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x60]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov eax, dword [0x5b2e74]
mov edx, dword [eax + 0x30]
fild dword [eax + 0x30]
test edx, edx
jns 0x41079a
fadd dword [0x554b74]
fld qword [0x554b90]
mov eax, dword [0x5b2e74]
mov eax, dword [eax + 0x2c]
fmul st(1), st(0)
fxch st(1)
sub esp, 0x14
mov dword [esp + 0x48], eax
fstp dword [esp + 0x44]
fld dword [esp + 0x44]
fstp dword [esp + 0x10]
fild dword [esp + 0x48]
test eax, eax
jns 0x4107cd
fadd dword [0x554b74]
fmulp st(1)
mov eax, esp
lea ecx, [esp + 0xc4]
mov dword [esp + 0x48], esp
fstp dword [esp + 0x44]
fld dword [esp + 0x44]
fstp dword [esp + 0xc]
push ecx
fld dword [esp + 0x7c]
fstp dword [eax]
fld dword [esp + 0x80]
fstp dword [eax + 4]
fld dword [esp + 0x84]
fstp dword [eax + 8]
call fcn.004c6ae0
add esp, 0x2c
test al, al
je 0x410925
mov ecx, dword [0x5b2e74]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
mov eax, 2
mov ecx, 0x576b80
call fcn.004036d0
push 1
mov ebx, 0x576b80
call fcn.0041b7e0
mov eax, 4
lea ecx, [esp + 0x9c]
call fcn.0041cd00
mov ecx, dword [0x5b2e74]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
mov ebx, dword [esp + 0x38]
jmp 0x410925
fld dword [0x554dc0]
sub esp, 8
fstp dword [esp + 0x2c]
mov eax, esp
fld dword [0x57c3ac]
mov dword [esp + 0x28], esp
fstp dword [eax]
fld dword [0x57c3b0]
fstp dword [eax + 4]
mov dword [esp + 0x1f8], esi
fldz
push ecx
fstp dword [esp]
fld1
push ebx
push ecx
fstp dword [esp]
fld dword [esp + 0x28]
push 3
sub esp, 8
fstp dword [esp + 4]
mov eax, esp
mov dword [esp + 0x3c], esp
mov byte [eax], 0x17
mov byte [eax + 1], cl
mov byte [eax + 2], dl
mov byte [eax + 3], 0xff
lea ecx, [esp + 0x44]
lea eax, [esp + 0xa4]
mov edx, 0x57c3b4
call fcn.004037a0
sub esp, 0xc
mov ecx, eax
mov eax, esp
lea edx, [esp + 0x7c]
mov dword [esp + 0x50], esp
call fcn.00403dd0
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x70], esp
mov byte [esp + 0x228], 2
mov edx, dword [edi + 0x54]
push ecx
push edx
call fcn.00404370
mov eax, dword [0x5b30cc]
add esp, 4
push eax
mov dword [esp + 0x22c], 0xffffffff
call fcn.0041fa70
fld dword [esp + 0x14]
fmul qword [0x555640]
fstp dword [esp + 0x14]
cmp dword [edi + 0x5c], 0
jle 0x410b8e
mov ecx, dword [edi + 0x58]
push ecx
push 0x551e90
lea edx, [esp + 0x1c8]
call fcn.004198f0
fld dword [0x57c3ac]
mov eax, esp
fstp dword [eax]
mov dword [esp + 0x28], esp
fld dword [0x57c3b0]
fstp dword [eax + 4]
mov dword [esp + 0x1f8], 3
fldz
movzx edx, byte [esp + 0x20]
push ecx
fst dword [esp]
push ebx
fld1
push ecx
movzx ecx, byte [esp + 0x2d]
fstp dword [esp]
fld dword [esp + 0x28]
push 3
sub esp, 8
mov eax, esp
mov byte [eax], dl
movzx edx, byte [esp + 0x3a]
fstp dword [esp + 4]
mov byte [eax + 1], cl
movzx ecx, byte [esp + 0x3b]
mov dword [esp + 0x48], esp
mov byte [eax + 2], dl
mov byte [eax + 3], cl
sub esp, 0xc
fld dword [0x554ce0]
lea ecx, [esp + 0x98]
fstp dword [esp + 0x98]
mov eax, esp
fld dword [0x554dc0]
lea edx, [esp + 0x7c]
fstp dword [esp + 0x9c]
mov dword [esp + 0x50], esp
fstp dword [esp + 0xa0]
call fcn.00403dd0
sub esp, 0xc
mov ecx, esp
mov byte [esp + 0x228], 5
mov dword [esp + 0x54], esp
push ecx
lea edx, [esp + 0x1fc]
push edx
call fcn.00404370
mov eax, dword [esp + 0x68]
add esp, 4
push eax
mov dword [esp + 0x22c], 0xffffffff
call fcn.0041fa70
mov al, byte [0x5b3073]
mov ecx, 0x551f40
test al, al
je 0x410a28
cmp al, 1
jne 0x410a6a
mov eax, dword [edi + 0x5c]
cdq
mov esi, 0xa
idiv esi
cmp eax, 1
je 0x410a65
cmp edx, 3
jg 0x410a65
test edx, edx
je 0x410a65
cmp edx, 1
jne 0x410a4d
mov ecx, 0x551e98
jmp 0x410a6a
cmp edx, 2
jne 0x410a59
mov ecx, 0x551e9c
jmp 0x410a6a
cmp edx, 3
jne 0x410a6a
mov ecx, 0x551ea0
jmp 0x410a6a
mov ecx, str.TSNR
push ecx
mov ecx, dword [edi + 0x5c]
push ecx
push 0x551ea4
lea edx, [esp + 0x1cc]
call fcn.004198f0
fld dword [0x554cf8]
fst dword [esp + 0x9c]
add esp, 4
fst dword [esp + 0x9c]
mov eax, esp
fstp dword [esp + 0xa0]
mov dword [esp + 0x28], esp
fld dword [0x57c3ac]
fstp dword [eax]
fld dword [0x57c3b0]
fstp dword [eax + 4]
mov dword [esp + 0x1f8], 6
fldz
movzx edx, byte [esp + 0x20]
push ecx
lea edi, [esp + 0x9c]
fstp dword [esp]
push ebx
fld1
push ecx
fstp dword [esp]
push 3
fld dword [esp + 0x2c]
sub esp, 8
mov ecx, esp
fstp dword [esp + 4]
mov dword [esp + 0x48], esp
push ecx
mov eax, esp
mov byte [eax], dl
movzx edx, byte [esp + 0x3d]
mov byte [eax + 1], dl
movzx edx, byte [esp + 0x3e]
mov byte [eax + 2], dl
movzx edx, byte [esp + 0x3f]
mov byte [eax + 3], dl
mov edx, edi
mov dword [esp + 0x48], esp
call fcn.00404410
fld dword [0x5553ac]
sub esp, 8
fstp dword [esp + 0xa4]
lea ecx, [esp + 0xa4]
fld dword [0x554dc0]
mov eax, esp
fstp dword [esp + 0xa8]
lea edx, [esp + 0x7c]
fldz
mov dword [esp + 0x50], esp
fstp dword [esp + 0xac]
call fcn.00403dd0
sub esp, 0xc
mov ecx, esp
mov byte [esp + 0x228], 8
mov dword [esp + 0x54], esp
push ecx
lea eax, [esp + 0x1fc]
push eax
call fcn.00404370
mov ecx, dword [0x5b30e4]
add esp, 4
push ecx
mov dword [esp + 0x22c], 0xffffffff
call fcn.0041fa70
jmp 0x410d7e
lea edi, [esp + 0x30]
call fcn.004c8050
mov dword [esp + 0x1f0], 9
mov esi, dword [esp + 0x28]
mov cl, byte [esi + 0x62]
test cl, cl
je 0x410bbb
mov dword [esp + 0x3c], 0xff808080
lea eax, [esp + 0x3c]
jmp 0x410bdf
mov eax, dword [0x576b6c]
mov dl, byte [0x576b6e]
mov byte [esp + 0x34], al
mov al, byte [0x576b6f]
mov byte [esp + 0x35], ah
mov byte [esp + 0x37], al
mov byte [esp + 0x36], dl
lea eax, [esp + 0x34]
movzx edx, byte [eax + 1]
mov bl, byte [eax]
mov byte [esp + 0x15], dl
movzx edx, byte [eax + 2]
mov al, byte [eax + 3]
mov byte [esp + 0x16], dl
mov byte [esp + 0x17], al
test cl, cl
je 0x410c04
fld dword [0x555330]
jmp 0x410c06
fld1
mov eax, dword [esp + 0x30]
fstp dword [esp + 0x2c]
fld dword [esp + 0x2c]
mov ecx, dword [eax + 0x2c]
fmul qword [0x554b90]
fstp dword [esp + 0x28]
fild dword [eax + 0x2c]
test ecx, ecx
jns 0x410c2c
fadd dword [0x554b74]
fld dword [esp + 0x28]
mov eax, dword [esp + 0x30]
mov edx, dword [eax + 0x30]
fld st(0)
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x1c]
fild dword [eax + 0x30]
test edx, edx
jns 0x410c4e
fadd dword [0x554b74]
test byte [0x5fcd68], 1
fmulp st(1)
fstp dword [esp + 0x28]
jne 0x410c91
fld dword [0x55562c]
or dword [0x5fcd68], 1
fstp dword [0x5fcd5c]
push 0x529dd0
fld dword [0x5553a8]
fstp dword [0x5fcd60]
fldz
fstp dword [0x5fcd64]
call fcn.0045f177
add esp, 4
mov dl, byte [esp + 0x16]
fld dword [esp + 0x28]
push ecx
movzx ecx, byte [esp + 0x19]
mov eax, esp
mov byte [eax + 1], cl
movzx ecx, byte [esp + 0x1b]
mov dword [esp + 0x24], esp
mov byte [eax + 2], dl
mov edx, dword [esp + 0x44]
mov byte [eax + 3], cl
mov ecx, dword [esp + 0x48]
sub esp, 0x10
mov byte [eax], bl
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x5c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x60]
mov dword [eax + 8], edx
sub esp, 0x14
mov dword [eax + 0xc], ecx
mov ecx, 0x5fcd5c
fstp dword [esp + 0x10]
mov eax, esp
fld dword [esp + 0x44]
lea edx, [esp + 0x78]
fstp dword [esp + 0xc]
mov dword [esp + 0x48], esp
call fcn.00403dd0
lea edx, [esp + 0x154]
push edx
call fcn.004c6ae0
add esp, 0x2c
test al, al
je 0x410d52
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
mov eax, 2
mov ecx, 0x576b80
call fcn.004036d0
push 1
mov ebx, 0x576b80
call fcn.0041b7e0
mov eax, 4
lea ecx, [esp + 0x12c]
call fcn.0041cd00
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov byte [esi + 0x61], 1
push 0
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x1f8], 0xffffffff
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
je 0x410d7e
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 4]
call eax
mov ecx, eax
call fcn.004037e0
mov ecx, dword [esp + 0x1e8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1d0]
xor ecx, esp
call fcn.0045f06e
mov esp, ebp
pop ebp
ret