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

Disassembly:
push 0xffffffffffffffff
push 0x465ef6
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x485300]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xa0]
xor edi, edi
cmp dword [ebp + 0xd0], edi
je 0x410140
mov ecx, dword [ebp + 4]
xor eax, eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x50]
push eax
push ecx
mov dword [esp + 0x58], edi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [ebp + 0xd0]
mov eax, dword [edx + 0x668]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x5c]
mov ebx, dword [esp + 0x58]
sub edx, ecx
push edx
mov edx, dword [esp + 0x54]
sub ebx, edx
push ebx
push ecx
lea esi, [ebp + 0xac]
push edx
mov ecx, esi
call fcn.00401ca0
push 0x80
push edi
call fcn.00401dc0
mov ecx, dword [ebp + 4]
xor eax, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x30]
push eax
push ecx
mov dword [esp + 0x38], edi
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0xb0]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0xb0]
push 1
push eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0xb0]
push 0xffffff
push eax
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x3c]
add eax, 0x44
mov dword [esp + 0x48], edx
mov edx, dword [0x4874f4]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x40], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x4874f4
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x98], edi
mov eax, dword [ebx - 8]
mov ecx, 1
sub ecx, dword [ebx - 4]
sub eax, 0x3f
or eax, ecx
jge 0x40fc32
lea ecx, [edi + 0x3f]
lea eax, [esp + 0x18]
call fcn.004057d0
mov ebx, dword [esp + 0x18]
mov ecx, dword [0x4883b0]
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x3f
push ebx
push 0x81
push ecx
call esi
cmp ebx, edi
jne 0x40fc51
xor eax, eax
jmp 0x40fc6b
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40fc56
sub eax, edx
sar eax, 1
js 0x41015c
cmp eax, dword [ebx - 8]
jg 0x41015c
mov dword [ebx - 0xc], eax
mov word [ebx + eax*2], di
mov edx, dword [0x4874f4]
mov eax, dword [edx + 0xc]
mov ecx, 0x4874f4
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x98], 1
movzx ecx, byte [ebp + 0xca]
movzx edx, byte [ebp + 0xc9]
movzx eax, byte [ebp + 0xc8]
push ecx
push edx
push eax
push ebx
lea edi, [esp + 0x24]
call fcn.0040ea60
mov eax, dword [esp + 0x24]
add dword [esp + 0x50], 8
add dword [esp + 0x54], 6
mov ecx, dword [eax - 0xc]
mov edx, dword [ebp + 0xb0]
add esp, 0x10
push 0x20
lea edi, [esp + 0x44]
push edi
push ecx
push eax
push edx
call dword [sym.imp.USER32.dll_DrawTextW]
mov edx, dword [ebp + 8]
add dword [esp + 0x44], 0x12
xor eax, eax
push eax
lea ecx, [esp + 0x64]
push ecx
push 0x501
push edx
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebx - 8]
mov ecx, 1
sub ecx, dword [ebx - 4]
sub eax, 0x3f
or eax, ecx
jge 0x40fd3a
mov ecx, 0x3f
lea eax, [esp + 0x18]
call fcn.004057d0
mov ebx, dword [esp + 0x18]
mov eax, dword [0x4883b0]
push 0x3f
push ebx
push 0x82
push eax
call esi
test ebx, ebx
jne 0x40fd52
xor eax, eax
jmp 0x40fd6c
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40fd57
sub eax, edx
sar eax, 1
js 0x41015c
cmp eax, dword [ebx - 8]
jg 0x41015c
mov dword [ebx - 0xc], eax
mov word [ebx + eax*2], 0
mov ecx, dword [esp + 0x6c]
sub ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x68]
sub edx, dword [esp + 0x60]
push ecx
push edx
push ebx
lea edi, [esp + 0x20]
call fcn.0040ea60
mov esi, dword [esp + 0x20]
mov eax, dword [esi - 0xc]
mov ecx, dword [ebp + 0xb0]
mov edi, dword [sym.imp.USER32.dll_DrawTextW]
add esp, 0xc
push 0x20
lea edx, [esp + 0x44]
push edx
push eax
push esi
push ecx
call edi
add dword [esp + 0x44], 0x1c
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x3f
or eax, ecx
jge 0x40fde5
mov ecx, 0x3f
lea eax, [esp + 0x14]
call fcn.004057d0
mov esi, dword [esp + 0x14]
mov eax, dword [0x4883b0]
push 0x3f
push esi
push 0x84
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
test esi, esi
jne 0x40fe01
xor eax, eax
jmp 0x40fe1b
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40fe06
sub eax, edx
sar eax, 1
js 0x41015c
cmp eax, dword [esi - 8]
jg 0x41015c
push 0x20
mov dword [esi - 0xc], eax
mov word [esi + eax*2], 0
mov eax, dword [esi - 0xc]
mov ecx, dword [ebp + 0xb0]
lea edx, [esp + 0x44]
push edx
push eax
push esi
push ecx
call edi
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebp + 0xb0]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push ecx
push eax
call edi
mov edx, dword [esp + 0x20]
mov eax, dword [ebp + 0xb0]
push edx
push eax
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [esp + 0x24]
mov eax, dword [ebp + 0xb0]
push ecx
push eax
call dword [sym.imp.GDI32.dll_SetBkMode]
xor eax, eax
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
xor eax, eax
lea edx, [esp + 0x80]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov eax, dword [ebp + 8]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x70], eax
add eax, 2
mov dword [esp + 0x70], eax
mov eax, dword [ebp + 0xb0]
mov dword [esp + 0x78], edx
mov edx, dword [esp + 0x3c]
push 3
add ecx, 2
push eax
mov dword [esp + 0x84], edx
mov dword [esp + 0x7c], ecx
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
cmp dword [ebp + 0x98], 0
lea ecx, [ebp + 0x94]
mov dword [esp + 0x1c], eax
je 0x40ff31
cmp dword [ecx + 8], 0
jne 0x40ff53
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push 0x21
push 0x21
add eax, 0xfffffff0
push eax
mov eax, dword [esp + 0x20]
add edx, 0xfffffff0
push edx
call fcn.00401ca0
jmp 0x410070
mov eax, dword [ebp + 0x98]
push 4
mov dword [esp + 0x28], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov ecx, dword [esp + 0x24]
push eax
push ecx
call edi
mov edx, dword [ebp + 0x98]
push 7
mov dword [esp + 0x28], edx
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
mov eax, dword [esp + 0x28]
push eax
call edi
mov eax, dword [ebp + 0x98]
push 0x21
push 0x21
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_Rectangle]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov eax, dword [ebp + 0x98]
push 0x40cc0020
add ecx, 0xfffffff0
push ecx
mov ecx, dword [esp + 0x1c]
add edx, 0xfffffff0
push edx
push ecx
push 0x21
push 0x21
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [ebp + 0xc4]
mov eax, dword [ebp + 0x98]
push edx
push eax
call edi
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x98]
push 0xa
push eax
call dword [sym.imp.GDI32.dll_SetROP2]
push 0
push 0x10
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x98]
push 0
push eax
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [ebp + 0x98]
push 0x10
push 0x21
push eax
call dword [sym.imp.GDI32.dll_LineTo]
mov eax, dword [ebp + 0x98]
push 0
push 0
push 0x10
push eax
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [ebp + 0x98]
push 0x21
push 0x10
push eax
call dword [sym.imp.GDI32.dll_LineTo]
mov ecx, dword [esp + 0x24]
mov eax, dword [ebp + 0x98]
push ecx
push eax
call edi
mov edx, dword [esp + 0x20]
mov eax, dword [ebp + 0x98]
push edx
push eax
call dword [sym.imp.GDI32.dll_SetROP2]
mov eax, dword [ebp + 0x98]
push 0xffffff
push 0x10
push 0x10
push eax
call dword [sym.imp.GDI32.dll_SetPixelV]
mov eax, dword [ebp + 0x98]
mov edx, dword [esp + 0x70]
mov ecx, dword [ebp + 0xb0]
push 0x40cc0020
push 0x21
push 0x21
push 0
push 0
push eax
mov eax, dword [esp + 0x8c]
push 0x42
push 0x42
push eax
push edx
push ecx
call dword [sym.imp.GDI32.dll_StretchBlt]
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebp + 0xb0]
push ecx
push eax
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
mov eax, dword [ebp + 0xb0]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x34]
push 0x40cc0020
push 0
push 0
push eax
mov eax, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0xbc]
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp + 8]
push ecx
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
add esi, 0xfffffff0
mov byte [esp + 0x98], 0
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x410119
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea eax, [ebx - 0x10]
mov dword [esp + 0x98], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410140
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret 8
push 0x80070057
call fcn.00404c70
int3