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

Disassembly:
sub esp, 0x6c
mov eax, dword [0x425ed0]
xor eax, esp
mov dword [esp + 0x68], eax
fldz
push ebx
xor ebx, ebx
mov dword [esp + 4], ebx
fst dword [esp + 4]
fst dword [esp + 8]
push ebp
xor eax, eax
push esi
mov word [esp + 0x14], ax
fstp dword [esp + 0xc]
fld qword [0x41f798]
push edi
mov byte [esp + 0x77], bl
xor ecx, ecx
movsx eax, byte [ecx + 0x424228]
fld dword [esp + 0x14]
cdq
fsubr st(1)
mov esi, 0x1a
idiv esi
fadd dword [0x423318]
inc ecx
add dl, 0x61
mov byte [esp + ecx + 0x6f], dl
fstp dword [0x423318]
cmp ecx, 7
jne 0x406e89
push 0xbb6
fstp st(0)
push 0x424228
call fcn.00401cd0
add esp, 8
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
movzx ecx, word [0x423188]
mov edx, dword [0x425300]
mov dword [0x4276d8], eax
movsx eax, cx
sub eax, edx
mov dword [esp + 0x10], eax
push 1
push esi
fild dword [esp + 0x18]
fmul dword [esp + 0x1c]
mov dword [esp + 0x24], 0x30
mov dword [esp + 0x28], 3
mov dword [esp + 0x2c], 0x406550
fstp dword [esp + 0x1c]
movzx eax, word [esp + 0x20]
mov ecx, dword [0x4276d8]
sub eax, 0x700630f6
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov word [esp + 0x20], ax
mov dword [esp + 0x38], ecx
call fcn.00401910
add esp, 8
push 0x7f00
push ebx
mov dword [esp + 0x3c], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [esp + 0x38], eax
inc word [0x424ef8]
or ebp, 0xffffffff
add word [0x4230f0], bp
movzx edx, word [0x4230f0]
movzx ecx, word [0x424ef8]
movsx eax, dx
movsx edx, cx
sub edx, eax
mov dword [esp + 0x10], edx
lea ecx, [esp + 0x70]
push 1
fild dword [esp + 0x14]
fmul qword [0x423330]
mov dword [esp + 0x40], 6
fstp qword [0x423330]
movzx eax, word [0x425944]
sub eax, 0x25c4752c
mov word [0x425944], ax
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x14], 0xf970fd89
call dword [sym.imp.GDI32.dll_GetStockObject]
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x40], eax
call dword [sym.imp.USER32.dll_RegisterClassExA]
fld dword [esp + 0x14]
push 0xbb6
fadd qword [0x41f790]
push ebx
push esi
fadd dword [0x4236b8]
fstp dword [0x4236b8]
fldz
fstp dword [esp + 0x1c]
fldz
fstp qword [esp + 0x58]
call fcn.0040b0e0
push esi
call fcn.0040b194
fld dword [esp + 0x20]
fld dword [esp + 0x20]
fsub qword [0x41f3d0]
fsubp st(1)
push 0x15
fstp dword [esp + 0x24]
push 0x423150
call fcn.00401cd0
add esp, 0x18
push ebx
mov esi, eax
mov eax, dword [0x4276d8]
push eax
push ebx
push ebx
push ebx
push connect
push ebx
push connect
push 0xc80000
push esi
lea ecx, [esp + 0x98]
push ecx
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExA]
inc word [0x4252ec]
add word [0x423378], bp
movzx edx, word [esp + 0x18]
movzx ecx, word [esp + 0x18]
mov edi, eax
movsx eax, dx
movsx edx, cx
movzx ecx, word [0x423378]
sub eax, edx
movsx edx, cx
movzx ecx, word [0x4252ec]
sub eax, edx
mov edx, dword [0x425330]
movsx ecx, cx
add edx, ecx
cmp edx, eax
jne 0x4070ac
fld dword [esp + 0x14]
fsub qword [0x41f788]
fstp dword [esp + 0x14]
fldz
xor eax, eax
mov dword [esi], eax
fstp dword [esp + 0x10]
fldz
mov dword [esi + 4], eax
mov dword [esi + 8], eax
fstp qword [esp + 0x4c]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
push esi
mov byte [esi + 0x14], al
call fcn.0040b194
fld dword [esp + 0x14]
fld dword [esp + 0x14]
add esp, 4
fsub qword [0x41f3d0]
fsubp st(1)
fstp dword [esp + 0x10]
cmp edi, ebx
je 0x407181
push 1
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [0x4250dc]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
sub eax, 0xf07565a
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
push ebx
push ebx
push ebx
fmul dword [esp + 0x20]
lea ecx, [esp + 0x60]
push ecx
fstp dword [esp + 0x24]
add dword [0x4250dc], ebp
call esi
test eax, eax
je 0x40716a
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebp, dword [sym.imp.USER32.dll_DispatchMessageA]
fld dword [esp + 0x14]
lea edx, [esp + 0x54]
fmul qword [0x41f780]
push edx
fstp dword [esp + 0x18]
call edi
lea eax, [esp + 0x54]
push eax
call ebp
push ebx
push ebx
push ebx
lea ecx, [esp + 0x60]
push ecx
call esi
test eax, eax
jne 0x407140
mov eax, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0040b6a5
add esp, 0x6c
ret
mov ecx, dword [esp + 0x78]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0040b6a5
add esp, 0x6c
ret