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

Disassembly:
sub esp, 0xa8
push ebx
push ebp
push esi
push edi
push 0x7f02
push 0
mov dword [esp + 0x40], 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov ebp, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [0x435744], eax
mov eax, dword [esp + 0xbc]
push eax
call ebp
mov esi, eax
mov eax, dword [0x435724]
imul eax, dword [0x43554c]
mov edx, dword [0x4359ec]
mov dword [esp + 0x58], eax
mov eax, dword [0x435720]
lea ecx, [esp + 0x88]
push ecx
push 0x18
shl eax, 0xa
push edx
mov dword [esp + 0x5c], eax
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [esp + 0x8c]
mov edx, dword [0x435a04]
mov dword [esp + 0x24], eax
lea ecx, [eax + eax*2 + 3]
mov eax, dword [esp + 0x90]
and ecx, 0xfffc
mov dword [esp + 0x28], eax
imul eax, ecx
lea edx, [edx + edx*2 + 3]
push eax
and edx, 0xfffc
push 0x40
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, dword [0x435568]
mov ebx, dword [0x43556c]
mov edx, dword [0x435564]
mov dword [esp + 0x48], eax
mov eax, dword [0x435560]
sub ebx, edx
sub edi, eax
push 0
inc edi
inc ebx
push 1
push 1
push ebx
push edi
call dword [sym.imp.GDI32.dll_CreateBitmap]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0xbc]
push eax
call ebp
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x54], eax
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ebp, dword [sym.imp.GDI32.dll_GetStockObject]
push 0
call ebp
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push 6
mov dword [esp + 0x14], eax
call ebp
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x14], eax
push ebx
push edi
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_Rectangle]
mov edx, dword [esp + 0x14]
push edx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x10]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push 4
call ebp
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push 7
mov dword [esp + 0x14], eax
call ebp
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push esi
call ebp
mov ecx, dword [0x435b48]
mov dword [esp + 0x14], eax
lea eax, [ecx - 1]
cmp eax, 4
ja case.default.0x40f5a0
jmp dword [eax*4 + 0x40fa84]
push ebx
push edi
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_Ellipse]
jmp case.default.0x40f5a0
push ebx
push edi
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_Rectangle]
jmp case.default.0x40f5a0
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, edi
cdq
sub eax, edx
sar eax, 1
jmp 0x40f5f3
mov eax, ebx
cdq
and edx, 3
add eax, edx
sar eax, 2
push eax
mov eax, edi
cdq
and edx, 3
add eax, edx
sar eax, 2
dec ebx
push eax
dec edi
push ebx
push edi
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_RoundRect]
jmp case.default.0x40f5a0
mov edx, dword [esp + 0xbc]
push 0x435400
push edx
call fcn.00403970
mov ebx, dword [esp + 0x5c]
add esp, 8
mov edi, eax
push edi
push ebx
call ebp
mov dword [esp + 0x20], eax
lea eax, [esp + 0xa0]
push eax
push 0x18
push edi
call dword [sym.imp.GDI32.dll_GetObjectA]
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0xa4]
push 0xcc0020
push 0
push 0
push ebx
push ecx
push edx
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x20]
push eax
push ebx
call ebp
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0x14]
push ecx
push esi
call ebp
mov edx, dword [esp + 0x10]
push edx
push esi
call ebp
mov eax, dword [esp + 0x48]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
call edi
mov ecx, dword [0x430820]
mov ebp, eax
push ecx
mov dword [esp + 0x60], ebp
call edi
mov ebx, eax
mov eax, dword [0x43553c]
test eax, eax
je 0x40f6ad
push eax
call edi
mov dword [esp + 0x38], eax
jmp 0x40f6b1
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x10], 0
test ecx, ecx
jle 0x40f7f4
mov edx, dword [esp + 0x40]
mov edi, edx
neg edi
dec ecx
mov dword [esp + 0x30], edi
imul ecx, edx
mov edx, ebp
add ecx, ebx
sub edx, ebx
mov ebx, dword [0x435a08]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x2c], edx
jmp 0x40f6ef
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x10]
mov ebp, dword [0x435564]
sub edx, ebp
mov ebp, ebx
test eax, eax
mov dword [esp + 0x34], edx
je 0x40f711
sub ebp, edx
dec ebp
imul ebp, dword [esp + 0x44]
add ebp, eax
jmp 0x40f719
sub ebp, edx
dec ebp
imul ebp, dword [esp + 0x44]
mov edx, dword [esp + 0x24]
xor eax, eax
test edx, edx
mov dword [esp + 0x14], eax
jle 0x40f7d9
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x18], ecx
add edx, ecx
sub ecx, edx
lea edi, [edx + 1]
mov dword [esp + 0x3c], ecx
jmp 0x40f744
mov eax, dword [esp + 0x14]
mov ecx, dword [0x435560]
mov ebx, eax
sub ebx, ecx
mov ecx, dword [esp + 0x10]
push ecx
push eax
push 0x435560
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x40f790
test ebp, ebp
je 0x40f790
mov edx, dword [esp + 0x34]
push edx
push ebx
push esi
call dword [sym.imp.GDI32.dll_GetPixel]
test eax, eax
jne 0x40f790
lea eax, [ebp + ebx*2]
add ebx, eax
mov cl, byte [ebx]
mov byte [edi - 1], cl
mov dl, byte [ebx + 1]
mov byte [edi], dl
mov al, byte [ebx + 2]
mov byte [edi + 1], al
jmp 0x40f7a8
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x3c]
mov cl, byte [eax]
mov byte [edi - 1], cl
mov cl, byte [edx + edi]
mov byte [edi], cl
mov dl, byte [eax + 2]
mov byte [edi + 1], dl
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
inc eax
add ebx, 3
add edi, 3
cmp eax, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
jl 0x40f740
mov ebx, dword [0x435a08]
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
inc eax
add ecx, edi
cmp eax, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], ecx
jl 0x40f6eb
mov eax, dword [0x421454]
mov edi, 0x1388
cmp eax, edi
mov dword [esp + 0x24], edi
jle 0x40f9c4
mov dword [esp + 0x18], 0x435b60
mov eax, dword [0x430840]
push edi
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebp, eax
test ebp, ebp
je 0x40f9a7
mov ecx, dword [esp + 0x18]
push 0
mov ebx, dword [ecx]
cmp ebx, 0xffffff
jne 0x40f83d
push 1
jmp 0x40f83f
push 0
push ebp
call fcn.00408c50
add esp, 0xc
lea edx, [esp + 0x70]
mov edi, eax
push edx
push 0x18
push edi
call dword [sym.imp.GDI32.dll_GetObjectA]
push edi
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x60]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x78]
add ecx, eax
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0x64]
add edx, ecx
mov ebp, dword [esp + 0x58]
mov dword [esp + 0x6c], edx
mov edx, dword [0x435a20]
sub eax, edx
mov byte [esp + 0x1d], bl
imul eax, dword [esp + 0x50]
cdq
idiv ebp
mov edi, eax
mov eax, ecx
mov ecx, dword [0x435a24]
sub eax, ecx
xor ecx, ecx
imul eax, dword [esp + 0x50]
cdq
idiv ebp
mov edx, ebx
mov cl, bh
shr edx, 0x10
cmp ebx, 0xffffff
mov byte [esp + 0x1e], cl
mov byte [esp + 0x1f], dl
mov dword [esp + 0x34], eax
jne 0x40f8d7
xor ebx, ebx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x10], eax
lea edx, [eax + ecx]
cmp eax, edx
jge 0x40f997
mov ebp, dword [esp + 0x40]
mov edx, dword [esp + 0x28]
mov ecx, ebp
sub edx, eax
neg ecx
dec edx
mov dword [esp + 0x3c], ecx
imul edx, ebp
add edx, dword [esp + 0x5c]
mov dword [esp + 0x20], edx
mov ebp, dword [esp + 0x74]
mov dword [esp + 0x14], edi
add ebp, edi
cmp edi, ebp
jge 0x40f978
mov ecx, dword [esp + 0x10]
sub ecx, eax
lea eax, [edx + edi*2]
mov dword [esp + 0x30], ecx
lea ebp, [edi + eax + 2]
jmp 0x40f92d
mov ecx, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x18]
sub ecx, edi
push ecx
push esi
call dword [sym.imp.GDI32.dll_GetPixel]
cmp eax, ebx
jne 0x40f955
mov dl, byte [esp + 0x1f]
mov al, byte [esp + 0x1e]
mov cl, byte [esp + 0x1d]
mov byte [ebp - 2], dl
mov byte [ebp - 1], al
mov byte [ebp], cl
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x14]
inc eax
add ebp, 3
lea ecx, [edi + edx]
mov dword [esp + 0x14], eax
cmp eax, ecx
jl 0x40f929
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x34]
mov ebp, dword [esp + 0x10]
add edx, ecx
inc ebp
mov dword [esp + 0x20], edx
mov dword [esp + 0x10], ebp
mov ebp, dword [esp + 0x78]
add ebp, eax
cmp dword [esp + 0x10], ebp
jl 0x40f908
mov edx, dword [esp + 0x2c]
push edx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
mov eax, dword [0x421454]
inc edi
add ecx, 4
cmp edi, eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x18], ecx
jl 0x40f812
mov eax, dword [esp + 0x4c]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
call esi
mov ecx, dword [esp + 0x54]
push ecx
call esi
mov edi, dword [esp + 0x48]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call esi
mov edx, dword [0x430820]
push edx
call esi
mov eax, dword [0x43553c]
xor ebx, ebx
cmp eax, ebx
je 0x40fa03
push eax
call esi
lea eax, [esp + 0x88]
push eax
push edi
call fcn.0040f2b0
mov ecx, dword [esp + 0x94]
mov esi, eax
mov eax, dword [esp + 0xc8]
add esp, 8
lea edx, [ecx + ecx*2 + 3]
mov edi, edx
mov edx, dword [esp + 0x90]
and edi, 0xfffc
mov dword [eax + 4], ecx
imul edi, edx
mov ecx, 0xf61
mov word [eax + 0xc], 1
mov word [eax + 0xe], 0x18
mov dword [eax + 0x14], edi
mov dword [eax + 8], edx
mov dword [eax], 0x28
mov dword [eax + 0x10], ebx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ebx
mov dword [eax + 0x24], ebx
mov eax, dword [0x435744]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa8
ret