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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x4260f0]
xor eax, esp
mov dword [esp + 0x78], eax
fldz
push ebx
fst qword [esp + 8]
xor ebx, ebx
fldz
push esi
fst dword [esp + 0x18]
push edi
fxch st(1)
mov byte [esp + 0x83], bl
fstp qword [esp + 0x20]
xor ecx, ecx
fst dword [esp + 0xc]
fstp dword [esp + 0x1c]
lea esp, [esp]
movsx eax, byte [ecx + 0x425280]
cdq
mov esi, 0x1a
idiv esi
inc ecx
add dl, 0x61
mov byte [esp + ecx + 0x7b], dl
cmp ecx, 7
jne 0x407360
push 0xbb6
push 0x425280
call fcn.004026c0
fld dword [esp + 0x14]
fsubr qword [0x41f888]
add esp, 8
mov esi, eax
call fcn.0040b420
mov dword [0x4241b0], eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
fld dword [esp + 0x1c]
fadd qword [esp + 0x10]
mov dword [0x4278d8], eax
mov dword [esp + 0x30], 0x30
push 1
fstp qword [esp + 0x14]
push esi
fld qword [esp + 0x28]
mov dword [esp + 0x3c], 3
fmul qword [0x41f880]
mov dword [esp + 0x40], 0x406830
mov dword [esp + 0x44], ebx
fstp qword [esp + 0x28]
fld dword [0x423d30]
fadd dword [esp + 0x14]
fadd dword [0x424190]
fstp dword [0x424190]
fld dword [esp + 0x14]
mov eax, dword [0x4278d8]
fsub qword [0x41f358]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], eax
fstp dword [esp + 0x14]
call fcn.00402840
fld dword [0x41f878]
add esp, 8
push 0x7f00
mov dword [esp + 0x4c], eax
fstp dword [0x42435c]
push ebx
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], 6
mov dword [esp + 0x54], ebx
dec word [0x425e8c]
movzx ecx, word [0x425e8c]
movzx edx, word [0x423d40]
movsx eax, cx
sub edx, eax
sub edx, 0x164dd4f9
mov word [0x423d40], dx
lea eax, [esp + 0x7c]
fld qword [esp + 0x10]
mov dword [esp + 0x58], eax
fld1
mov dword [esp + 0x5c], ebx
fadd st(1), st(0)
push 1
fxch st(1)
fstp qword [esp + 0x14]
fld qword [esp + 0x14]
fsubr qword [0x41f870]
fsub qword [esp + 0x14]
fadd qword [esp + 0x24]
fstp qword [esp + 0x24]
fsubr qword [esp + 0x14]
fstp qword [esp + 0x14]
call dword [sym.imp.GDI32.dll_GetStockObject]
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x54], eax
call dword [sym.imp.USER32.dll_RegisterClassExA]
fldz
push 0xbb6
fstp qword [esp + 0x2c]
xor edx, edx
push ebx
push esi
mov word [esp + 0x34], dx
call fcn.0040af10
push esi
call fcn.0040ae7f
push 0x15
push 0x425f10
call fcn.004026c0
add esp, 0x18
push ebx
mov esi, eax
mov eax, dword [0x4278d8]
push eax
push ebx
push ebx
push ebx
push connect
push ebx
push connect
push 0xc80000
push esi
lea ecx, [esp + 0xa4]
push ecx
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExA]
movzx edx, word [0x425e44]
movzx ecx, word [0x4251a8]
mov edi, eax
movsx eax, dx
movsx edx, cx
lea eax, [edx + eax - 0xd7ab853]
mov dword [esp + 0x28], eax
xor eax, eax
xor ecx, ecx
fild dword [esp + 0x28]
push esi
fmul qword [esp + 0x14]
fstp qword [esp + 0x14]
inc word [0x4251a8]
fldz
mov dword [esi], eax
mov dword [esi + 4], eax
fstp qword [esp + 0x14]
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov word [esp + 0x2c], cx
mov byte [esi + 0x14], al
call fcn.0040ae7f
fld qword [esp + 0x24]
fsub dword [esp + 0x10]
add esp, 4
fcomp qword [0x41f868]
fnstsw ax
fld qword [esp + 0x20]
fsub qword [0x41f358]
fstp qword [esp + 0x20]
test ah, 5
jp 0x4075ae
fld dword [esp + 0xc]
fmul qword [0x425fb8]
fstp dword [esp + 0xc]
jmp 0x4075bc
fld dword [esp + 0x1c]
fsub qword [0x41f860]
fstp dword [esp + 0x1c]
cmp edi, ebx
je 0x407626
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 edx, [esp + 0x6c]
push edx
call esi
test eax, eax
je 0x407610
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
lea ebx, [ebx]
lea eax, [esp + 0x60]
push eax
call edi
lea ecx, [esp + 0x60]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
push ebx
lea edx, [esp + 0x6c]
push edx
call esi
test eax, eax
jne 0x4075f0
mov eax, dword [esp + 0x68]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.0040b504
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x84]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0040b504
mov esp, ebp
pop ebp
ret