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

Disassembly:
sub esp, 0x74
mov eax, dword [0x425160]
xor eax, esp
mov dword [esp + 0x70], eax
fldz
push ebx
xor ebx, ebx
mov dword [esp + 8], ebx
push ebp
xor eax, eax
mov word [esp + 8], ax
xor ecx, ecx
mov word [esp + 0x10], cx
xor edx, edx
push esi
mov word [esp + 0x20], dx
fstp qword [esp + 0x18]
push edi
mov byte [esp + 0x7f], bl
lea ebp, [ebx + 1]
lea ebx, [ebx]
movsx eax, byte [ecx + str.gk_t]
cdq
mov esi, 0x1a
idiv esi
add dl, 0x61
mov byte [esp + ecx + 0x78], dl
add ecx, ebp
cmp ecx, 7
jne 0x4067b0
push 0xbb6
push str.gk_t
call fcn.00401140
mov esi, eax
mov ax, word [0x42496c]
movsx ecx, ax
or edi, 0xffffffff
add word [0x42496c], di
sub ecx, 0x33af0f06
add esp, 8
cmp ecx, 0x54d1c47
je 0x40681c
movzx edx, word [esp + 0x24]
movzx eax, word [esp + 0x10]
lea ecx, [edx + eax + 0x40149f89]
mov word [esp + 0x24], cx
add dword [esp + 0x10], ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
fldz
mov dx, word [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [0x426978], eax
movsx eax, dx
add eax, 0x7c83619e
imul eax, ecx
mov dword [esp + 0x2c], 0x30
mov dword [esp + 0x30], 3
mov dword [esp + 0x14], eax
add dword [esp + 0x10], edi
mov edx, dword [0x426978]
mov dword [esp + 0x34], 0x404fe0
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], edx
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 ebp
add eax, esi
push ecx
mov dword [esp + 0x3c], ebx
push eax
fstp qword [esp + 0x40]
call dword [sym.imp.USER32.dll_CreateIconFromResourceEx]
push 0x7f00
push ebx
mov dword [esp + 0x4c], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
fld qword [0x424ea0]
mov dword [esp + 0x48], eax
fsub qword [0x41e7e8]
lea edx, [esp + 0x78]
push ebp
fadd qword [0x41e7e0]
fmul qword [esp + 0x20]
fstp qword [esp + 0x20]
fld qword [0x424ea0]
mov dword [esp + 0x50], 6
fsub qword [0x41e350]
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], ebx
fstp qword [0x424ea0]
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExA]
fldz
push 0xbb6
fst dword [esp + 0x28]
push ebx
fstp dword [esp + 0x2c]
push esi
call fcn.0040aab0
push esi
call fcn.0040b065
fld qword [0x4249c8]
fmul qword [0x41e7d8]
push 0x15
push 0x424bcc
fstp qword [0x4249c8]
call fcn.00401140
mov ecx, dword [0x426978]
add esp, 0x18
push ebx
push ecx
push ebx
push ebx
push ebx
mov esi, eax
push connect
push ebx
push connect
push 0xc80000
push esi
lea edx, [esp + 0xa0]
push edx
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExA]
fldz
add dword [esp + 0x10], ebp
mov edi, eax
movzx eax, word [esp + 0x18]
movzx ecx, word [esp + 0x10]
lea edx, [eax + ecx - 0x68da46df]
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov word [esp + 0x18], dx
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
fst dword [esp + 0x18]
push esi
fstp dword [esp + 0x1c]
mov byte [esi + 0x14], al
call fcn.0040b065
add esp, 4
cmp edi, ebx
je 0x406a18
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 + 0x68]
push eax
call esi
test eax, eax
je 0x406a02
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebp, dword [sym.imp.USER32.dll_DispatchMessageA]
lea ecx, [esp + 0x5c]
push ecx
call edi
lea edx, [esp + 0x5c]
push edx
call ebp
push ebx
push ebx
push ebx
lea eax, [esp + 0x68]
push eax
call esi
test eax, eax
jne 0x4069e6
fld qword [esp + 0x1c]
mov ecx, dword [0x424cd4]
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
fsubp st(1)
jmp 0x406a47
movzx edx, word [esp + 0x10]
imul edx, edx, 0xc3c1535c
mov word [esp + 0x10], dx
mov eax, dword [esp + 0x14]
add eax, 0x61c6434c
mov dword [esp + 0x14], eax
mov dword [esp + 0x64], ebx
fild dword [esp + 0x14]
fsub qword [0x424d30]
fadd qword [esp + 0x1c]
mov eax, dword [esp + 0x64]
fstp qword [esp + 0x1c]
mov ecx, dword [esp + 0x80]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040b0f3
add esp, 0x74
ret