Function at 0x412140
Capabilities:
Hide graphical window

Disassembly:
push 0xffffffffffffffff
push 0x59e528
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push ebp
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0x74]
mov dword fs:[0], eax
cmp dword [0x5fe594], 0
fld dword [0x5fe598]
fstp dword [esp + 0x14]
je 0x4123c1
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push 1
push 0x566
push esi
call ebx
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call edi
push 1
push 0x565
push esi
call ebx
push eax
call edi
lea eax, [esp + 0x34]
push eax
push 0x566
push esi
call ebx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x1c]
push eax
push esi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov edx, dword [esp + 0x3c]
sub edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x18], edx
fild dword [esp + 0x18]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ebp
fmul dword [esp + 0x14]
fiadd dword [esp + 0x1c]
call fcn.005999a0
mov edi, dword [esp + 0x40]
sub edi, dword [esp + 0x38]
mov dword [esp + 0x2c], eax
add edi, ebp
cmp dword [0x5fe70c], 0
jne 0x41222d
mov eax, dword [0x5fccb4]
push 0xf2
push eax
call dword [sym.imp.USER32.dll_LoadBitmapW]
mov dword [0x5fe70c], eax
mov ecx, dword [esp + 0x84]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edx, dword [0x5fe70c]
mov ebp, eax
push edx
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
sub edi, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x24]
push 0xcc0020
push 0
push 0
push ebp
push edi
push eax
push 0
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0xa0]
push 0
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
push ebp
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push 0
push edi
push ecx
push edx
push eax
push 0x565
push esi
call ebx
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
mov edx, dword [0x5fcd20]
mov eax, dword [edx + 0xc]
mov ecx, 0x5fcd20
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
fld dword [esp + 0x14]
mov dword [esp + 0x7c], 0
fsubr qword [0x5ca998]
fmul qword [0x5d1470]
fld qword [0x5d1498]
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x4122e3
fstp st(0)
jmp 0x4122e5
fstp st(1)
sub esp, 8
fstp qword [esp]
push 0x5bdd18
lea edi, [esp + 0x24]
call fcn.004126f0
xor eax, eax
add esp, 0xc
push 0x565
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
push esi
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x4c], 0x2c
mov dword [esp + 0x50], 0x11
mov dword [esp + 0x54], esi
call ebx
mov edx, dword [0x5fe710]
mov edi, dword [esp + 0x18]
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [esp + 0x44]
push ecx
push 0
push 0x436
push edx
mov dword [esp + 0x60], eax
mov dword [esp + 0x78], edi
call ebp
push 0x566
push esi
call ebx
mov ecx, dword [0x5fe714]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x44]
push eax
push 0
push 0x436
push ecx
call ebp
lea eax, [edi - 0x10]
mov dword [esp + 0x7c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4123e7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x70
ret
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0x566
push esi
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call ebx
push 0
push 0x565
push esi
call edi
push eax
call ebx
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x70
ret