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

Disassembly:
sub esp, 0x6c
mov eax, dword [0x426070]
xor eax, esp
mov dword [esp + 0x68], eax
fld1
push ebx
xor ebx, ebx
xor eax, eax
mov word [esp + 8], ax
push ebp
mov dword [esp + 8], ebx
xor ecx, ecx
push esi
mov dword [esp + 0x14], ebx
mov word [esp + 0x18], cx
push edi
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x77], bl
xor esi, esi
lea ebp, [eax + 1]
fld qword [0x425098]
fsub st(1)
fstp qword [0x425098]
fld qword [0x425098]
mov dx, word [esp + 0x14]
movsx eax, dx
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
faddp st(1)
call fcn.0040b620
mov dword [esp + 0x10], eax
add dword [esp + 0x14], ebp
movsx eax, byte [esi + 0x423288]
cdq
mov ecx, 0x1a
idiv ecx
add dl, 0x61
mov byte [esp + esi + 0x70], dl
add esi, ebp
cmp esi, 7
jne 0x406d29
push 0xbb6
fstp st(0)
push 0x423288
call fcn.00402470
add esp, 8
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
movzx edx, word [0x42507c]
mov dword [0x427878], eax
movsx ecx, dx
mov edx, dword [esp + 0x1c]
mov eax, 0xfdf8871c
sub eax, ecx
imul edx, eax
mov eax, dword [0x427878]
mov dword [esp + 0x20], 0x30
mov dword [esp + 0x24], 3
mov dword [esp + 0x28], 0x405450
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x22]
mov dword [esp + 0x1c], edx
movzx edx, byte [esi + 0x17]
push ebx
xor ecx, ecx
mov word [esp + 0x20], cx
movzx ecx, byte [esi + 0x16]
push edx
push ecx
push 0x30000
mov dword [esp + 0x60], ebx
movzx edi, word [esp + 0x2c]
mov edx, dword [esi + 0x1e]
push ebp
add eax, esi
push edx
sub edi, 0x235c2658
mov word [esp + 0x34], di
push eax
call dword [sym.imp.USER32.dll_CreateIconFromResourceEx]
push 0x7f00
push ebx
mov dword [esp + 0x40], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [esp + 0x3c], eax
mov ax, word [0x4230e4]
movzx ecx, word [esp + 0x14]
mov edx, dword [esp + 0x10]
cwde
sub ecx, eax
sub ecx, edx
mov dword [esp + 0x40], 6
mov dword [esp + 0x44], ebx
mov word [esp + 0x14], cx
movzx ecx, word [esp + 0x14]
lea eax, [esp + 0x70]
sub ecx, 0x3a191d9f
mov dword [esp + 0x48], eax
mov word [esp + 0x14], cx
push ebp
mov dword [esp + 0x50], ebx
call dword [sym.imp.GDI32.dll_GetStockObject]
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x44], eax
call dword [sym.imp.USER32.dll_RegisterClassExA]
fldz
push 0xbb6
push ebx
mov dword [esp + 0x18], ebx
fstp dword [esp + 0x1c]
push esi
call fcn.0040b890
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fadd dword [0x423104]
fadd dword [esp + 0x20]
mov ecx, dword [0x425980]
mov dword [esp + 0x1c], ecx
fild dword [esp + 0x1c]
fmulp st(1)
call fcn.0040b620
mov dword [0x425980], eax
push esi
call fcn.0040b6cb
push 0x15
push 0x424190
call fcn.00402470
movzx edx, word [0x425f08]
add esp, 0x18
push ebx
mov esi, eax
movsx ecx, dx
mov eax, 0x8fbbec31
sub eax, ecx
add dword [esp + 0x1c], eax
mov edx, dword [0x427878]
push edx
push ebx
push ebx
push ebx
push connect
push ebx
push connect
push 0xc80000
push esi
lea eax, [esp + 0x98]
push eax
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [esp + 0x18], ebx
fldz
mov edi, eax
fstp dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esp + 0x18], ecx
mov dword [esi + 0xc], eax
fild dword [esp + 0x18]
mov dword [esi + 0x10], eax
mov byte [esi + 0x14], al
fadd dword [0x423104]
fadd dword [esp + 0x10]
mov edx, dword [0x425980]
mov dword [esp + 0x18], edx
fild dword [esp + 0x18]
fmulp st(1)
call fcn.0040b620
push esi
mov dword [0x425980], eax
call fcn.0040b6cb
add esp, 4
cmp edi, ebx
je 0x406ff5
push ebp
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 ebx
push ebx
push ebx
lea eax, [esp + 0x60]
push eax
call esi
test eax, eax
je 0x406fde
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebp, dword [sym.imp.USER32.dll_DispatchMessageA]
nop
fld qword [0x4231a8]
lea ecx, [esp + 0x54]
fmul qword [0x41f788]
push ecx
fstp qword [0x4231a8]
call edi
lea edx, [esp + 0x54]
push edx
call ebp
push ebx
push ebx
push ebx
lea eax, [esp + 0x60]
push eax
call esi
test eax, eax
jne 0x406fb0
mov eax, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0040b872
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.0040b872
add esp, 0x6c
ret