Function at 0x40136e
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41f848
push 0x41140c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ecx
mov eax, 0x1048
call fcn.004118d0
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x30], esi
cmp dword [ebp + 0xc], 0x3e8
jne 0x401607
wait
xor edi, edi
mov dword [ebp - 4], edi
lea eax, [esi + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x48], edi
je 0x4013c6
cmp dword [esi + 0x4c], edi
jne 0x4013d2
cmp dword [esi + 0x80], edi
je 0x4015fd
push 0x3ee
push dword [esi + 4]
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
call ebx
mov edi, eax
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x3c], edi
push 0x3f0
push dword [esi + 4]
call ebx
mov ebx, eax
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x50], ebx
cmp dword [esi + 0x80], 0
je 0x401437
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x800
lea eax, [ebp - 0x1060]
push eax
push dword [esi + 0x88]
push dword [0x427df4]
call dword [sym.imp.USER32.dll_LoadStringA]
jmp 0x4015be
lea eax, [ebp - 0x38]
push eax
call fcn.0041183d
push dword [esi + 0x44]
push dword [ebp - 0x38]
call fcn.0041182c
add esp, 0xc
fstp qword [ebp - 0x58]
mov eax, dword [esi + 0x48]
mov ecx, dword [esi + 0x4c]
mov dword [ebp - 0x40], eax
fild dword [ebp - 0x40]
test eax, eax
jge 0x401467
fadd qword [0x41f8d8]
fdivr qword [ebp - 0x58]
mov edx, ecx
sub edx, eax
mov dword [ebp - 0x44], edx
fild dword [ebp - 0x44]
test edx, edx
jge 0x40147e
fadd qword [0x41f8d8]
fmulp st(1)
fstp qword [ebp - 0x28]
push 0
imul eax, eax, 0x64
xor edx, edx
div ecx
push eax
push 0x402
push edi
call dword [sym.imp.USER32.dll_PostMessageA]
xor edi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
fld qword [ebp - 0x28]
fcom qword [0x41f8d0]
fnstsw ax
test ah, 0x41
jne 0x4014d4
fld qword [0x41f8c8]
fmul st(1)
call fcn.00411a00
mov dword [ebp - 0x20], eax
imul eax, eax, 0xe10
mov dword [ebp - 0x2c], eax
fild dword [ebp - 0x2c]
fsubr st(1)
fst qword [ebp - 0x28]
fstp st(1)
fcom qword [0x41f8c0]
fnstsw ax
test ah, 0x41
jne 0x4014ff
fld qword [0x41f8b8]
fmul st(1)
call fcn.00411a00
mov dword [ebp - 0x1c], eax
imul eax, eax, 0x3c
mov dword [ebp - 0x34], eax
fild dword [ebp - 0x34]
fsubr st(1)
fstp qword [ebp - 0x28]
fstp st(0)
push 0x800
lea eax, [ebp - 0x860]
push eax
cmp dword [ebp - 0x20], edi
jle 0x401556
cmp dword [ebp - 0x20], 1
jle 0x40151f
push 0x7d7
jmp 0x401524
push 0x7d8
push dword [0x427df4]
call dword [sym.imp.USER32.dll_LoadStringA]
fld qword [ebp - 0x28]
push ecx
push ecx
fstp qword [esp]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
lea eax, [ebp - 0x860]
push eax
lea eax, [ebp - 0x1060]
push eax
call fcn.004117d4
add esp, 0x18
jmp 0x4015be
cmp dword [ebp - 0x1c], edi
jle 0x40158f
push 0x7d9
push dword [0x427df4]
call dword [sym.imp.USER32.dll_LoadStringA]
fld qword [ebp - 0x28]
push ecx
push ecx
fstp qword [esp]
push dword [ebp - 0x1c]
lea eax, [ebp - 0x860]
push eax
lea eax, [ebp - 0x1060]
push eax
call fcn.004117d4
add esp, 0x14
jmp 0x4015be
push 0x7da
push dword [0x427df4]
call dword [sym.imp.USER32.dll_LoadStringA]
fld qword [ebp - 0x28]
push ecx
push ecx
fstp qword [esp]
lea eax, [ebp - 0x860]
push eax
lea eax, [ebp - 0x1060]
push eax
call fcn.004117d4
add esp, 0x10
lea eax, [ebp - 0x1060]
push eax
push ebx
mov edi, dword [sym.imp.USER32.dll_SetWindowTextA]
call edi
mov eax, dword [esi + 0x84]
test eax, eax
je 0x4015fd
push 0x800
lea ecx, [ebp - 0x1060]
push ecx
push eax
push dword [0x427df4]
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp - 0x1060]
push eax
push dword [esi + 4]
call edi
wait
or dword [ebp - 4], 0xffffffff
call fcn.0040161d
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0x10