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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x425e20]
xor eax, esp
mov dword [esp + 0x78], eax
fldz
push ebx
fst qword [esp + 0x20]
xor ebx, ebx
fldz
mov dword [esp + 4], ebx
mov dword [esp + 0x14], ebx
fstp dword [esp + 0x14]
push esi
push edi
mov byte [esp + 0x83], bl
fstp qword [esp + 0x20]
xor ecx, ecx
fld qword [0x41f6b8]
fld1
fld qword [esp + 0x20]
mov esi, 0x1a
fadd st(2)
inc ecx
fstp qword [0x425a50]
fld qword [esp + 0x20]
movsx eax, byte [ecx + 0x4235ef]
cdq
fadd st(1)
idiv esi
fstp qword [esp + 0x20]
add dl, 0x61
mov byte [esp + ecx + 0x7b], dl
inc dword [esp + 0xc]
mov eax, dword [esp + 0xc]
add eax, 0x5dee23a9
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fadd qword [esp + 0x28]
fstp qword [esp + 0x28]
cmp ecx, 7
jne 0x405ba2
mov ecx, dword [0x423144]
fstp st(1)
sub ecx, 0x42ee790
fstp st(0)
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
push 0xbb6
push 0x4235f0
fadd dword [0x425abc]
fstp dword [0x425abc]
call fcn.004022b0
add esp, 8
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x427618], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x30], 0x30
mov dword [esp + 0x34], 3
mov dword [esp + 0x38], 0x4051d0
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
movzx ecx, byte [esi + 0x16]
xor edx, edx
push ebx
mov word [esp + 0x14], dx
movzx edx, byte [esi + 0x17]
push edx
push ecx
mov ecx, dword [esi + 0x1e]
xor eax, eax
push 0x30000
mov word [esp + 0x20], ax
mov eax, dword [esi + 0x22]
push 1
add eax, esi
push ecx
push eax
call dword [sym.imp.USER32.dll_CreateIconFromResourceEx]
push 0x7f00
push ebx
mov dword [esp + 0x50], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
lea edx, [esp + 0x7c]
push 1
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], 6
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], ebx
call dword [sym.imp.GDI32.dll_GetStockObject]
fld qword [esp + 0x28]
fsub qword [0x41f6b0]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x30]
push eax
fstp qword [esp + 0x2c]
call dword [sym.imp.USER32.dll_RegisterClassExA]
fldz
push 0xbb6
xor ecx, ecx
fstp qword [esp + 0x14]
push ebx
mov word [esp + 0x18], cx
push esi
call fcn.0040b000
push esi
call fcn.0040ae3b
fld dword [0x4230d0]
call fcn.0040af50
mov word [esp + 0x20], ax
fld dword [0x4230d0]
fsub qword [0x41f340]
push 0x15
push 0x4252b4
fstp dword [0x4230d0]
call fcn.004022b0
mov edx, dword [0x427618]
add esp, 0x18
mov esi, eax
push ebx
push edx
push ebx
push ebx
push ebx
push connect
push ebx
push connect
push 0xc80000
push esi
lea eax, [esp + 0xa4]
push eax
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExA]
fldz
mov edi, eax
fstp qword [esp + 0x10]
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
xor ecx, ecx
mov dword [esi + 0x10], eax
mov word [esp + 0x10], cx
push esi
mov byte [esi + 0x14], al
call fcn.0040ae3b
fld dword [0x4230d0]
add esp, 4
call fcn.0040af50
mov word [esp + 0x10], ax
fld dword [0x4230d0]
fld1
fsub st(1), st(0)
fxch st(1)
fstp dword [0x4230d0]
cmp edi, ebx
je 0x405ea0
push 1
fstp st(0)
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esp + 0xc]
add edx, 0x56f88551
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
push edi
fmul qword [esp + 0x24]
fstp qword [esp + 0x24]
inc dword [esp + 0x10]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
push ebx
push ebx
push ebx
lea eax, [esp + 0x6c]
push eax
call edi
test eax, eax
je 0x405e8a
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
lea ebx, [ebx]
lea ecx, [esp + 0x60]
push ecx
call esi
lea edx, [esp + 0x60]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
mov eax, dword [esp + 0xc]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fld dword [esp + 0x1c]
fcompp
fnstsw ax
test ah, 0x41
jp 0x405e78
mov ecx, dword [esp + 0xc]
add ecx, 0x17b78ae0
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
fld qword [esp + 0x28]
inc dword [esp + 0xc]
fcompp
fnstsw ax
test ah, 0x41
jp 0x405e78
fld qword [0x423190]
fsub qword [0x41f340]
fstp qword [0x423190]
fld qword [0x423190]
fsubr qword [0x41f6a8]
fmul dword [0x4241f0]
fstp dword [0x4241f0]
push ebx
push ebx
push ebx
lea edx, [esp + 0x6c]
push edx
call edi
test eax, eax
jne 0x405e00
mov eax, dword [esp + 0x68]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.0040b544
mov esp, ebp
pop ebp
ret
fld dword [esp + 0x1c]
fcomp qword [0x41f6a0]
fnstsw ax
fadd dword [esp + 0x1c]
fstp dword [esp + 0x1c]
test ah, 0x41
jp 0x405ec4
mov eax, 0x1835
mov word [0x4253d4], ax
mov ecx, dword [esp + 0x84]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0040b544
mov esp, ebp
pop ebp
ret