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

Disassembly:
sub esp, 0x74
mov eax, dword [0x425fa0]
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 + 0x10], ax
fst qword [esp + 0x1c]
xor ecx, ecx
push esi
mov word [esp + 0xc], cx
fstp qword [esp + 0x18]
push edi
mov byte [esp + 0x7f], bl
lea ebp, [ebx + 1]
jmp 0x4075c0
movsx eax, byte [ecx + 0x4249b8]
cdq
mov esi, 0x1a
idiv esi
add dl, 0x61
mov byte [esp + ecx + 0x78], dl
add ecx, ebp
cmp ecx, 7
jne 0x4075c0
push 0xbb6
push 0x4249b8
call fcn.00402750
movzx edx, word [0x424870]
mov esi, eax
movzx eax, word [0x4247d0]
cwde
movsx ecx, dx
sub eax, ecx
mov ecx, dword [str.R_nI_]
sub eax, ecx
add esp, 8
add eax, 0x67216439
mov word [0x4247d0], ax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x427798], eax
dec dword [0x42489c]
movzx edx, word [esp + 0x10]
movsx ecx, dx
mov edx, dword [0x42489c]
mov eax, 0x9f67e3a9
sub eax, ecx
sub eax, edx
add dword [esp + 0x14], eax
mov eax, dword [0x427798]
fld qword [esp + 0x1c]
mov dword [esp + 0x2c], 0x30
fsub dword [0x423abc]
mov dword [esp + 0x30], 3
mov dword [esp + 0x34], 0x406110
mov dword [esp + 0x38], ebx
fadd dword [0x423b18]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], eax
push ebp
fstp dword [0x423b18]
push esi
fld dword [0x423abc]
fadd qword [0x41f358]
fstp dword [0x423abc]
call fcn.00402520
add esp, 8
push 0x7f00
push ebx
mov dword [esp + 0x4c], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
fld qword [esp + 0x24]
movzx ecx, word [esp + 0x10]
movsx edx, cx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x48], eax
lea eax, [esp + 0x78]
fild dword [esp + 0x1c]
mov dword [esp + 0x4c], 6
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], eax
fsubp st(1)
mov dword [esp + 0x58], ebx
push ebp
fstp qword [esp + 0x28]
add dword [esp + 0x14], ebp
movzx ecx, word [esp + 0x14]
movsx edx, cx
add edx, 0x7aad27bd
mov dword [esp + 0x20], edx
fild dword [esp + 0x20]
fsub qword [esp + 0x28]
fadd qword [esp + 0x28]
fstp qword [esp + 0x28]
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [esp + 0x4c], eax
movzx eax, word [esp + 0x10]
mov ecx, dword [esp + 0x14]
sub ecx, eax
lea edx, [esp + 0x2c]
mov word [esp + 0x18], cx
add dword [esp + 0x10], ebp
push edx
call dword [sym.imp.USER32.dll_RegisterClassExA]
xor eax, eax
push 0xbb6
xor ecx, ecx
push ebx
mov word [esp + 0x1c], ax
mov word [esp + 0x18], cx
push esi
call fcn.0040b5e0
movzx edx, word [esp + 0x1c]
movzx eax, word [esp + 0x20]
add edx, eax
mov word [esp + 0x20], dx
push esi
call fcn.0040af8b
push 0x15
push 0x425614
call fcn.00402750
mov ecx, dword [0x427798]
add esp, 0x18
push ebx
push ecx
push ebx
push ebx
push ebx
push connect
push ebx
push connect
push 0xc80000
mov esi, eax
push esi
lea edx, [esp + 0xa0]
push edx
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExA]
add dword [esp + 0x18], ebp
mov edi, eax
movzx eax, word [esp + 0x18]
movzx edx, word [esp + 0x18]
movsx ecx, ax
movsx eax, dx
sub ecx, eax
xor eax, eax
add ecx, 0x2fca9747
mov dword [esp + 0x14], ecx
dec dword [esp + 0x18]
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
xor ecx, ecx
mov word [esp + 0x14], cx
mov dword [esi + 0x10], eax
xor edx, edx
mov word [esp + 0x10], dx
mov byte [esi + 0x14], al
movzx eax, word [esp + 0x10]
movzx ecx, word [esp + 0x14]
add eax, ecx
push esi
mov word [esp + 0x18], ax
call fcn.0040af8b
add esp, 4
cmp edi, ebx
je 0x407890
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 edx, [esp + 0x68]
push edx
call esi
test eax, eax
je 0x407855
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x5c]
push eax
call edi
lea ecx, [esp + 0x5c]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
push ebx
lea edx, [esp + 0x68]
push edx
call esi
test eax, eax
jne 0x407835
mov ax, word [0x4255d8]
movsx ecx, ax
mov dword [esp + 0x1c], ecx
pop edi
pop esi
fild dword [esp + 0x14]
fmul qword [0x4249b0]
fstp qword [0x4249b0]
add word [0x4255d8], bp
mov eax, dword [esp + 0x5c]
pop ebp
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0040b65a
add esp, 0x74
ret
mov ecx, dword [esp + 0x80]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0040b65a
add esp, 0x74
ret