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

Disassembly:
push 0xffffffffffffffff
push 0x420803
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa0
push ebx
push ebp
push esi
mov esi, dword [esp + 0xbc]
push edi
xor edi, edi
cmp esi, edi
mov dword [esp + 0x1c], edi
je 0x4163c1
cmp dword [esi + 4], edi
je 0x4163c1
lea ecx, [esp + 0x2c]
call fcn.0041e89a
push edi
mov dword [esp + 0xbc], edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CDC::Attach
test eax, eax
je 0x4163ad
mov ecx, dword [esi + 4]
lea eax, [esp + 0x54]
push eax
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x5c]
push edi
lea ecx, [esp + 0xb0]
mov dword [esp + 0x74], edx
push edi
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x38]
push ecx
lea edx, [esp + 0x78]
push edi
push edx
push eax
mov dword [esp + 0x84], 0x28
mov word [esp + 0x90], 1
mov word [esp + 0x92], 0x20
mov dword [esp + 0x94], edi
mov dword [esp + 0x98], edi
mov dword [esp + 0x9c], edi
mov dword [esp + 0xa0], edi
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa8], edi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ebp, eax
push ebp
call sub.MFC42.DLL_CGdiObject::FromHandle
cmp ebp, edi
mov ebx, eax
je 0x4163ad
cmp ebx, edi
jne 0x416361
xor eax, eax
jmp 0x416364
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x30]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
lea ecx, [esp + 0x44]
mov dword [esp + 0x3c], eax
call fcn.0041e89a
mov edx, dword [esp + 0x30]
mov byte [esp + 0xb8], 1
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CDC::Attach
test eax, eax
jne 0x4163dc
lea ecx, [esp + 0x44]
mov byte [esp + 0xb8], al
call sub.MFC42.DLL_CDC::CDC
lea ecx, [esp + 0x2c]
mov dword [esp + 0xb8], 0xffffffff
call sub.MFC42.DLL_CDC::CDC
xor eax, eax
mov ecx, dword [esp + 0xb0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xac
ret
mov ecx, dword [ebx + 4]
lea eax, [esp + 0x94]
push eax
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [esp + 0xa0]
mov edx, eax
and edx, 0x80000003
jns 0x416406
dec edx
or edx, 0xfffffffc
inc edx
je 0x416421
inc eax
mov ecx, eax
and ecx, 0x80000003
jns 0x416418
dec ecx
or ecx, 0xfffffffc
inc ecx
jne 0x416408
mov dword [esp + 0xa0], eax
mov eax, dword [esi + 4]
mov edx, dword [esp + 0x48]
push eax
push edx
call sub.MFC42.DLL_CDC::SelectGdiObject
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x48]
push 0xcc0020
push edi
push edi
push eax
mov eax, dword [esp + 0x40]
push ecx
push edx
push edi
push edi
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
push 0x660
push 2
mov dword [esp + 0x20], 0x64
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
push ebp
mov dword [esp + 0x24], ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
push edi
push edi
push 0x7fffffff
lea ecx, [esi + 0x10]
push 0x7fffffff
push ecx
mov dword [esi], 0x20
mov dword [esi + 4], 1
mov dword [esi + 0xc], edi
mov dword [esi + 8], edi
call dword [sym.imp.USER32.dll_SetRect]
mov edx, dword [esp + 0x9c]
mov ecx, dword [esp + 0xa8]
mov dword [esp + 0x14], edi
lea ebx, [edx - 1]
imul ebx, dword [esp + 0xa0]
mov al, byte [ebx + ecx]
mov dl, byte [ebx + ecx + 2]
add ebx, ecx
mov byte [esp + 0x13], al
mov eax, dword [esp + 0x5c]
mov byte [esp + 0x11], dl
mov cl, byte [ebx + 1]
cmp eax, edi
mov byte [esp + 0x12], cl
jle 0x416659
mov ecx, dword [esp + 0x58]
test ecx, ecx
jle 0x416639
mov eax, dword [esp + 0x18]
add eax, 2
shl eax, 4
mov dword [esp + 0x24], eax
cmp edi, ecx
mov dword [esp + 0x28], edi
lea eax, [ebx + edi*4]
jge 0x416630
mov dl, byte [esp + 0x13]
cmp byte [eax], dl
jne 0x416527
mov dl, byte [esp + 0x12]
cmp byte [eax + 1], dl
jne 0x416527
mov dl, byte [esp + 0x11]
cmp byte [eax + 2], dl
je 0x41652f
add eax, 4
inc edi
cmp edi, ecx
jl 0x41650d
cmp edi, dword [esp + 0x28]
jle 0x416630
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 8]
cmp ecx, eax
jb 0x41657a
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x18]
add eax, 0x640
push 2
add esi, 0x64
push eax
push ebp
mov dword [esp + 0x24], esi
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
push eax
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
mov ecx, dword [esp + 0x14]
lea eax, [esi + 0x20]
mov edx, ecx
lea ebp, [ecx + 1]
mov ecx, dword [esp + 0x28]
push ebp
push edi
push edx
mov edx, dword [esi + 8]
shl edx, 4
add edx, eax
push ecx
push edx
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esp + 0x28]
mov ecx, dword [esi + 0x10]
cmp eax, ecx
jge 0x4165ab
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x14]
cmp eax, ecx
jge 0x4165b9
mov dword [esi + 0x14], eax
cmp edi, dword [esi + 0x18]
jle 0x4165c1
mov dword [esi + 0x18], edi
cmp ebp, dword [esi + 0x1c]
jle 0x4165c9
mov dword [esi + 0x1c], ebp
mov ecx, dword [esi + 8]
inc ecx
mov eax, ecx
mov dword [esi + 8], ecx
cmp eax, 0x7d0
jne 0x416628
mov eax, dword [esp + 0x24]
push esi
push eax
push 0
call dword [sym.imp.GDI32.dll_ExtCreateRegion]
mov ebp, eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x416605
push 2
push ebp
push eax
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
push ebp
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x416609
mov dword [esp + 0x1c], ebp
push 0
push 0
push 0x7fffffff
lea eax, [esi + 0x10]
push 0x7fffffff
push eax
mov dword [esi + 8], 0
call dword [sym.imp.USER32.dll_SetRect]
mov ecx, dword [esp + 0x58]
mov ebp, dword [esp + 0x20]
inc edi
cmp edi, ecx
jl 0x4164fe
mov eax, dword [esp + 0xa0]
mov edx, dword [esp + 0x5c]
sub ebx, eax
mov eax, dword [esp + 0x14]
inc eax
xor edi, edi
cmp eax, edx
mov dword [esp + 0x14], eax
jl 0x4164e8
mov ecx, dword [esp + 0x18]
push esi
add ecx, 2
shl ecx, 4
push ecx
push edi
call dword [sym.imp.GDI32.dll_ExtCreateRegion]
mov ebx, dword [esp + 0x1c]
mov esi, eax
cmp ebx, edi
je 0x41668a
push 2
push esi
push ebx
push ebx
call dword [sym.imp.GDI32.dll_CombineRgn]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x416690
mov dword [esp + 0x1c], esi
mov ebx, esi
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x40]
cmp eax, edi
jne 0x4166a3
xor eax, eax
jmp 0x4166a6
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x48]
push eax
push edx
call sub.MFC42.DLL_CDC::SelectGdiObject
mov eax, dword [esp + 0x3c]
cmp eax, edi
je 0x4166bc
mov edi, dword [eax + 4]
mov eax, dword [esp + 0x30]
push edi
push eax
call sub.MFC42.DLL_CDC::SelectGdiObject
lea ecx, [esp + 0x44]
mov byte [esp + 0xb8], 0
call sub.MFC42.DLL_CDC::CDC
lea ecx, [esp + 0x2c]
mov dword [esp + 0xb8], 0xffffffff
call sub.MFC42.DLL_CDC::CDC
mov eax, ebx
jmp 0x4163c3