Function at 0x4067e0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
mov eax, dword [0x426190]
xor eax, esp
mov dword [esp + 0x80], eax
fldz
push ebx
push esi
push edi
xor edi, edi
mov dword [esp + 0x14], edi
fstp dword [esp + 0x34]
fldz
mov byte [esp + 0x8b], 0
fst qword [esp + 0x28]
xor ecx, ecx
fst qword [esp + 0x20]
mov ebx, 1
fstp qword [esp + 0x18]
fld qword [0x41f7c8]
add dword [0x4250d4], ebx
mov eax, dword [0x4250d4]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fld qword [esp + 0x18]
fsubr st(2)
fld dword [0x42445c]
faddp st(2)
fcompp
fnstsw ax
test ah, 5
jp 0x40687d
movzx edx, word [0x4243ac]
mov ax, word [0x42469c]
movsx edx, dx
cwde
sub eax, edx
movzx edx, word [0x42472c]
lea eax, [edx + eax + 0x2a28be05]
mov word [0x42469c], ax
movsx eax, byte [ecx + 0x423178]
cdq
mov esi, 0x1a
idiv esi
add dl, 0x61
mov byte [esp + ecx + 0x84], dl
add ecx, ebx
cmp ecx, 7
jne 0x40682c
push 0xbb6
fstp st(0)
push 0x423178
call fcn.00402550
add esp, 8
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov cx, word [0x423dac]
movsx edx, cx
mov dword [esp + 0x10], edx
mov dword [0x427998], eax
fild dword [esp + 0x10]
fadd qword [esp + 0x28]
fld qword [esp + 0x28]
fsub qword [0x41f7c0]
fsub qword [0x41f7b8]
fucompp
fnstsw ax
fld1
test ah, 0x44
jnp 0x406939
fld qword [esp + 0x20]
fadd qword [esp + 0x20]
fsub dword [0x424b98]
mov eax, dword [0x423d64]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
faddp st(1)
call fcn.0040aef0
mov dword [0x423d64], eax
fld dword [0x424b98]
fsub st(1)
fstp dword [0x424b98]
fld qword [esp + 0x20]
fadd st(1)
fstp qword [esp + 0x20]
fld qword [esp + 0x20]
fsub st(1)
fstp qword [esp + 0x20]
fld qword [esp + 0x18]
mov dword [esp + 0x38], 0x30
fsub qword [0x41f7b0]
fcomp qword [0x41f7a8]
fnstsw ax
test ah, 1
jne 0x4069ab
add word [0x42603c], bx
fld dword [esp + 0x34]
fadd dword [esp + 0x34]
mov cx, word [0x42603c]
movsx edx, cx
add edx, 0x61fc8daa
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
fcompp
fnstsw ax
test ah, 5
jp 0x4069ab
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fadd qword [esp + 0x28]
call fcn.0040aef0
mov dword [esp + 0x14], eax
fadd qword [esp + 0x28]
fstp qword [esp + 0x28]
jmp 0x4069ad
fstp st(0)
mov ecx, dword [0x427998]
push ebx
push esi
mov dword [esp + 0x44], 3
mov dword [esp + 0x48], 0x404f30
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], ecx
call fcn.004013e0
add esp, 8
push 0x7f00
push edi
mov dword [esp + 0x58], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
fld qword [esp + 0x18]
fsub qword [0x41f7a0]
mov edx, dword [0x4243e8]
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], 6
mov dword [esp + 0x5c], edi
faddp st(1)
fld qword [0x424298]
fsub qword [0x41f798]
fucompp
fnstsw ax
fld qword [0x424298]
fld1
fsub st(1), st(0)
fxch st(1)
fstp qword [0x424298]
fld qword [esp + 0x18]
fadd st(1)
fstp qword [esp + 0x18]
test ah, 0x44
jnp 0x406a81
fld qword [esp + 0x18]
fcomp qword [0x41f790]
fnstsw ax
test ah, 5
jp 0x406a81
fld dword [0x4243a8]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], eax
fisub dword [esp + 0x10]
fadd dword [esp + 0x34]
fstp qword [esp + 0x28]
dec dword [esp + 0x14]
fsubr dword [0x4243a8]
fstp dword [0x4243a8]
jmp 0x406a83
fstp st(0)
lea ecx, [esp + 0x84]
push ebx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], edi
call dword [sym.imp.GDI32.dll_GetStockObject]
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x5c], eax
call dword [sym.imp.USER32.dll_RegisterClassExA]
fldz
push 0xbb6
fst qword [esp + 0x1c]
push edi
fstp qword [esp + 0x28]
push esi
call fcn.0040ae70
movzx eax, word [0x425db4]
movsx ecx, ax
mov dword [esp + 0x1c], ecx
push esi
fild dword [esp + 0x20]
fadd qword [esp + 0x28]
fsub qword [0x41f410]
fadd dword [0x424328]
fstp dword [0x424328]
add word [0x425db4], bx
call fcn.0040ad5b
push 0x15
push 0x42606c
call fcn.00402550
mov edx, dword [0x427998]
add esp, 0x18
push edi
push edx
push edi
push edi
push edi
push connect
push edi
push connect
push 0xc80000
mov esi, eax
push esi
lea eax, [esp + 0xac]
push eax
push edi
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov cx, word [0x426068]
movsx edx, cx
mov dword [esp + 0x10], edx
mov edi, eax
fild dword [esp + 0x10]
fmul qword [0x425da0]
call fcn.0040aef0
fldz
mov word [0x426068], ax
fst qword [esp + 0x18]
xor eax, eax
fstp qword [esp + 0x20]
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov byte [esi + 0x14], al
movzx eax, word [0x425db4]
movsx ecx, ax
mov dword [esp + 0x10], ecx
push esi
fild dword [esp + 0x14]
fadd qword [esp + 0x1c]
fsub qword [0x41f410]
fadd dword [0x424328]
fstp dword [0x424328]
add word [0x425db4], bx
call fcn.0040ad5b
add esp, 4
test edi, edi
je 0x406c25
push ebx
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
push 0
lea edx, [esp + 0x74]
push edx
call esi
test eax, eax
je 0x406c0c
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
fld qword [esp + 0x28]
lea eax, [esp + 0x68]
fsub qword [0x41f788]
push eax
fstp qword [esp + 0x2c]
call edi
lea ecx, [esp + 0x68]
push ecx
call ebx
push 0
push 0
push 0
lea edx, [esp + 0x74]
push edx
call esi
test eax, eax
jne 0x406bdf
mov eax, dword [esp + 0x70]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.0040b0b4
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0040b0b4
mov esp, ebp
pop ebp
ret