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

Disassembly:
sub esp, 0x78
mov eax, dword [0x425fe8]
xor eax, esp
mov dword [esp + 0x74], eax
fldz
xor eax, eax
mov word [esp + 0xc], ax
fstp qword [esp + 0x18]
fldz
push ebx
fst dword [esp + 0x14]
xor ebx, ebx
fstp dword [esp + 0xc]
push esi
mov byte [esp + 0x7b], bl
mov dword [esp + 0x1c], ebx
mov cx, word [0x42394c]
movzx edx, word [0x42342c]
movsx eax, cx
sub edx, eax
add edx, 0x398d3546
push edi
mov word [0x42342c], dx
xor ecx, ecx
mov esi, 0x96c43b48
lea esp, [esp]
add dword [0x425c5c], esi
movsx eax, byte [ecx + 0x423d28]
cdq
mov edi, 0x1a
idiv edi
inc ecx
add dl, 0x61
mov byte [esp + ecx + 0x77], dl
cmp ecx, 7
jne 0x406960
push 0xbb6
push 0x423d28
call fcn.004023a0
add esp, 8
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
fld dword [esp + 0x14]
fadd qword [esp + 0x24]
mov dword [0x4277d8], eax
mov eax, dword [0x423bb8]
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
or edi, 0xffffffff
mov dword [esp + 0x2c], 0x30
add dword [0x423bb8], edi
fsubp st(1)
fcomp qword [0x41f860]
fnstsw ax
test ah, 0x41
jne 0x4069e9
mov ecx, dword [0x425528]
imul ecx, ecx, 0xa67e6835
mov dword [0x425528], ecx
fld qword [0x41f858]
mov dword [esp + 0x30], 3
fstp qword [esp + 0x24]
mov edx, dword [0x4248e0]
mov dword [esp + 0xc], edx
fild dword [esp + 0xc]
mov dword [esp + 0x34], 0x405910
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
fsub dword [esp + 0x14]
call fcn.0040b450
fldz
mov word [0x425c28], ax
mov eax, dword [0x4277d8]
mov dword [esp + 0x40], eax
movzx edx, byte [esi + 0x17]
movzx ecx, byte [esi + 0x16]
mov eax, dword [esi + 0x22]
push ebx
push edx
push ecx
mov ecx, dword [esi + 0x1e]
push 0x30000
push 1
add eax, esi
push ecx
mov dword [esp + 0x24], ebx
push eax
fstp qword [esp + 0x28]
call dword [sym.imp.USER32.dll_CreateIconFromResourceEx]
mov dword [esp + 0x44], eax
fld dword [esp + 0x1c]
mov dx, word [esp + 0x18]
movsx eax, dx
mov dword [esp + 0xc], eax
push 0x7f00
push ebx
fild dword [esp + 0x14]
faddp st(1)
fmul qword [esp + 0x2c]
fstp qword [esp + 0x2c]
fld dword [esp + 0x24]
fsub qword [0x41f348]
fstp dword [esp + 0x24]
call dword [sym.imp.USER32.dll_LoadCursorA]
fld dword [esp + 0x14]
mov dword [esp + 0x48], eax
fsubr qword [0x41f850]
lea ecx, [esp + 0x78]
mov dword [esp + 0x4c], 6
mov dword [esp + 0x50], ebx
fadd qword [0x425c00]
mov dword [esp + 0x54], ecx
fld qword [0x423cf8]
mov dword [esp + 0x58], ebx
fsub qword [0x41f848]
fcompp
fnstsw ax
fld dword [esp + 0x14]
fld1
fsub st(1), st(0)
fxch st(1)
fstp dword [esp + 0x14]
test ah, 0x41
jne 0x406b5d
mov dx, word [str._SH]
movsx eax, dx
add eax, 0x30ce0d22
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
fld dword [0x425be0]
mov cx, word [esp + 0x18]
fsub qword [0x41f840]
inc dword [esp + 0x18]
movsx edx, cx
mov dword [esp + 0xc], edx
fild dword [esp + 0xc]
fsubp st(1)
fucompp
fnstsw ax
fadd dword [0x425be0]
fstp dword [0x425be0]
add word [str._SH], di
test ah, 0x44
jp 0x406b5f
fld qword [0x423a70]
fstp st(0)
fld qword [0x423400]
fstp st(0)
fld qword [esp + 0x24]
mov eax, dword [esp + 0x20]
add dword [esp + 0x20], edi
fstp st(0)
jmp 0x406b5f
fstp st(0)
push 1
call dword [sym.imp.GDI32.dll_GetStockObject]
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x50], eax
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0xbb6
xor edx, edx
push ebx
mov word [esp + 0x20], dx
mov dword [esp + 0x14], ebx
push esi
call fcn.0040b220
push esi
call fcn.0040b18b
fld dword [esp + 0x2c]
fadd qword [0x41f348]
fstp dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fld dword [esp + 0x2c]
fsub qword [0x41f838]
fadd dword [0x42398c]
fsubp st(1)
call fcn.0040b450
push 0x15
mov dword [esp + 0x34], eax
push 0x423ae8
call fcn.004023a0
fld dword [esp + 0x2c]
fsub qword [esp + 0x3c]
add esp, 0x18
push ebx
mov esi, eax
fstp dword [esp + 0x18]
lea edx, [esp + 0x7c]
fld qword [esp + 0x28]
mov ecx, dword [0x4277d8]
fadd qword [0x41f348]
push ecx
push ebx
push ebx
push ebx
fstp qword [esp + 0x38]
push connect
push ebx
push connect
push 0xc80000
push esi
push edx
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov edi, eax
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov word [esp + 0x18], ax
mov dword [esi + 0x10], eax
push esi
mov dword [esp + 0x10], ebx
mov byte [esi + 0x14], al
call fcn.0040b18b
add esp, 4
cmp edi, ebx
je 0x406caa
push 1
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 ecx, [esp + 0x68]
push ecx
call esi
test eax, eax
je 0x406c94
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebp
mov ebp, dword [sym.imp.USER32.dll_DispatchMessageA]
lea edx, [esp + 0x60]
push edx
call edi
lea eax, [esp + 0x60]
push eax
call ebp
push ebx
push ebx
push ebx
lea ecx, [esp + 0x6c]
push ecx
call esi
test eax, eax
jne 0x406c77
pop ebp
mov eax, dword [esp + 0x64]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.0040b436
add esp, 0x78
ret
mov ecx, dword [esp + 0x80]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0040b436
add esp, 0x78
ret