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

Disassembly:
push 0xffffffffffffffff
push 0x4209c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push ebx
push ebp
push esi
xor esi, esi
push edi
mov edi, ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x60], 0x4256a8
mov dword [esp + 0x64], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x68], esi
lea ecx, [esp + 0x38]
mov dword [esp + 0x7c], esi
call sub.mfc42.dll_CDC::CDC
mov ebx, dword [esp + 0x84]
cmp ebx, esi
mov byte [esp + 0x7c], 1
jne 0x4161ad
xor eax, eax
jmp 0x4161b0
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.gdi32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x3c]
call sub.mfc42.dll_CDC::Attach
lea ecx, [esp + 0x20]
call fcn.004098d0
mov dword [esp + 0x20], 0x4240ac
mov esi, dword [esp + 0x9c]
mov ebp, dword [esp + 0x94]
mov eax, dword [ebx + 4]
push esi
push ebp
push eax
mov byte [esp + 0x88], 2
call dword [sym.imp.gdi32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x24]
call sub.mfc42.dll_CGdiObject::Attach
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 0x20]
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call sub.mfc42.dll_CDC::SelectGdiObject
mov edx, dword [edi + 0x60]
push edx
push esi
push ebp
push 0
push 0
lea ecx, [esp + 0x4c]
mov dword [esp + 0x30], eax
call sub.mfc42.dll_CDC::FillSolidRect_1
mov ebx, dword [esp + 0xa0]
mov eax, dword [ebx + 8]
test eax, eax
mov dword [esp + 0x10], 0
jle 0x416392
mov edi, dword [esp + 0x8c]
xor ebp, ebp
mov dword [esp + 0x18], ebp
jmp 0x416265
mov edi, dword [esp + 0x8c]
mov esi, dword [esp + 0x9c]
mov eax, dword [ebx + 4]
mov edx, dword [eax + ebp]
lea ecx, [eax + ebp]
mov dword [esp + 0x28], edx
mov eax, dword [ecx + 0x10]
test eax, eax
je 0x41629a
cmp eax, 1
jne 0x416293
mov eax, dword [ecx + 0xc]
cdq
sub eax, edx
mov ebx, eax
mov eax, esi
cdq
sub eax, edx
sar ebx, 1
sar eax, 1
sub eax, ebx
jmp 0x41629a
mov edx, dword [ecx + 0xc]
mov eax, esi
sub eax, edx
mov dword [esp + 0x2c], eax
mov edx, dword [ecx + 0xc]
add edx, eax
mov dword [esp + 0x34], edx
mov ebp, dword [ecx]
mov dword [esp + 0x28], ebp
mov esi, dword [ecx + 8]
mov dword [esp + 0x30], esi
mov ebx, dword [ecx + 4]
mov ecx, dword [ecx]
sub edx, eax
sub esi, ebp
test edi, edi
je 0x4162c4
mov edi, dword [edi + 4]
push 0xcc0020
push ebx
push ecx
push edi
push edx
push esi
push eax
mov eax, dword [esp + 0x58]
push ebp
push eax
call dword [sym.imp.gdi32.dll_BitBlt]
mov ebx, dword [esp + 0xa0]
mov ecx, dword [ebx + 4]
mov ebp, dword [esp + 0x18]
lea eax, [ecx + ebp + 0x14]
mov eax, dword [eax]
push 0x42c0ec
push eax
call dword [sym.imp.msvcrt.dll__mbscmp]
add esp, 8
test eax, eax
je 0x416365
lea ecx, [esp + 0x5c]
call sub.mfc42.dll_CString::CString_2
mov edx, dword [ebx + 4]
lea eax, [edx + ebp + 0x14]
push eax
lea ecx, [esp + 0x60]
mov byte [esp + 0x80], 3
call sub.mfc42.dll_CString::operator
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x4c], edx
lea edx, [esp + 0x48]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x68]
push edx
mov dword [esp + 0x58], ecx
push eax
lea ecx, [esp + 0x68]
call fcn.00417d90
lea ecx, [esp + 0x5c]
mov byte [esp + 0x7c], 2
call sub.mfc42.dll_CString::CString
mov eax, dword [esp + 0x10]
mov ecx, dword [ebx + 8]
inc eax
add ebp, 0x18
cmp eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], ebp
jl 0x416257
mov esi, dword [esp + 0x9c]
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x94]
mov eax, dword [esp + 0x98]
mov ecx, dword [esp + 0xa4]
lea edx, [eax + esi]
mov dword [esp + 0x2c], eax
mov eax, dword [ecx]
test eax, eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x34], edx
jne 0x4163b9
xor ecx, ecx
jmp 0x4163e0
cmp eax, 1
jne 0x4163db
mov eax, dword [ecx + 8]
cdq
sub eax, edx
mov ecx, eax
mov eax, ebp
cdq
sub eax, edx
mov edx, dword [esp + 0x34]
sar ecx, 1
sar eax, 1
sub ecx, eax
mov dword [esp + 0x28], ecx
jmp 0x4163e4
mov ecx, dword [ecx + 8]
sub ecx, ebp
mov dword [esp + 0x28], ecx
sub edx, dword [esp + 0x98]
lea eax, [ecx + ebp]
mov dword [esp + 0x30], eax
sub eax, ecx
xor ecx, ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x54], edx
lea ecx, [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x88]
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x58], eax
mov eax, dword [edi + 0x60]
push eax
push ecx
lea edx, [esp + 0x48]
push edx
mov ecx, edi
call fcn.004132e0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x416433
mov eax, dword [eax + 4]
push eax
mov eax, dword [esp + 0x40]
push eax
call sub.mfc42.dll_CDC::SelectGdiObject
mov eax, dword [esp + 0x68]
test eax, eax
mov dword [esp + 0x10], 0
jle 0x41651b
lea ebp, [edi + 0x64]
lea ebx, [edi + 0x78]
xor edi, edi
mov ecx, dword [esp + 0x64]
lea eax, [ecx + edi]
push eax
lea edx, [esp + 0x4c]
push edx
call dword [sym.imp.user32.dll_CopyRect]
mov eax, dword [esp + 0x98]
mov ecx, dword [esp + 0x28]
push eax
push ecx
lea edx, [esp + 0x50]
push edx
call dword [sym.imp.user32.dll_OffsetRect]
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
lea eax, [esi + 1]
push eax
mov ecx, ebp
call fcn.00417860
mov ecx, dword [ebp + 4]
shl esi, 4
add esi, ecx
mov ecx, dword [esp + 0x48]
mov dword [esi], ecx
mov edx, dword [esp + 0x4c]
mov dword [esi + 4], edx
mov eax, dword [esp + 0x50]
mov dword [esi + 8], eax
mov ecx, dword [esp + 0x54]
mov dword [esi + 0xc], ecx
mov esi, dword [ebx + 8]
mov edx, dword [esp + 0x64]
push 0xffffffffffffffff
lea ecx, [esi + 1]
lea eax, [edx + edi + 0x14]
push ecx
mov ecx, ebx
mov dword [esp + 0x94], eax
call fcn.00417990
mov edx, dword [esp + 0x8c]
mov eax, dword [ebx + 4]
push edx
lea ecx, [eax + esi*4]
call sub.mfc42.dll_CString::operator
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x68]
inc eax
add edi, 0x18
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x41645a
mov ebp, dword [esp + 0x94]
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0xa0]
mov esi, dword [esp + 0x9c]
mov dword [esp + 0x20], 0x423218
lea ecx, [esp + 0x20]
mov byte [esp + 0x7c], 4
call sub.mfc42.dll_CGdiObject::DeleteObject
lea ecx, [esp + 0x38]
mov dword [esp + 0x20], 0x422ce8
mov byte [esp + 0x7c], 0
call fcn.0041ed40
mov dword [esp + 0x60], 0x4256a8
mov eax, dword [esp + 0x64]
test eax, eax
mov dword [esp + 0x7c], 5
je 0x4165b2
mov ecx, dword [esp + 0x68]
test ecx, ecx
mov dword [esp + 0x8c], eax
je 0x4165a9
mov dword [esp + 0x84], ecx
mov ecx, dword [esp + 0x8c]
push 0
call fcn.00417f90
mov ecx, dword [esp + 0x8c]
mov eax, dword [esp + 0x84]
add ecx, 0x18
dec eax
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x84], eax
jne 0x416575
mov eax, dword [esp + 0x64]
push eax
call sub.mfc42.dll_operatordelete
add esp, 4
lea ecx, [esp + 0x38]
mov dword [esp + 0x7c], 0xffffffff
call sub.mfc42.dll_CDC::CDC
mov eax, dword [esp + 0x88]
test eax, eax
mov dword [esp + 0x7c], 6
je 0x4165d9
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.gdi32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x3c]
call sub.mfc42.dll_CDC::Attach
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0x4240ac
mov ecx, dword [esp + 0x88]
mov edx, dword [ecx + 4]
push esi
push ebp
push edx
mov byte [esp + 0x88], 7
call dword [sym.imp.gdi32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x24]
call sub.mfc42.dll_CGdiObject::Attach
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x20]
neg eax
sbb eax, eax
and eax, ecx
push eax
mov eax, dword [esp + 0x40]
push eax
call sub.mfc42.dll_CDC::SelectGdiObject
mov ecx, dword [edi + 0x60]
push ecx
push esi
push ebp
push 0
push 0
lea ecx, [esp + 0x4c]
mov dword [esp + 0x30], eax
call sub.mfc42.dll_CDC::FillSolidRect_1
mov eax, dword [ebx + 8]
xor ecx, ecx
cmp eax, ecx
mov dword [esp + 0x8c], ecx
jle 0x41672c
mov dword [esp + 0x84], ecx
jmp 0x416673
mov esi, dword [esp + 0x9c]
mov edx, dword [ebx + 4]
mov eax, dword [ecx + edx]
add ecx, edx
mov dword [esp + 0x28], eax
mov eax, dword [ecx + 0x10]
test eax, eax
je 0x4166a7
cmp eax, 1
jne 0x4166a0
mov eax, dword [ecx + 0xc]
cdq
sub eax, edx
mov edi, eax
mov eax, esi
cdq
sub eax, edx
sar edi, 1
sar eax, 1
sub eax, edi
jmp 0x4166a7
mov edx, dword [ecx + 0xc]
mov eax, esi
sub eax, edx
mov esi, dword [esp + 0x90]
mov dword [esp + 0x2c], eax
mov edx, dword [ecx + 0xc]
add edx, eax
mov dword [esp + 0x34], edx
mov ebx, dword [ecx]
mov dword [esp + 0x28], ebx
mov ebp, dword [ecx + 8]
mov dword [esp + 0x30], ebp
mov edi, dword [ecx + 4]
mov ecx, dword [ecx]
sub edx, eax
sub ebp, ebx
test esi, esi
je 0x4166d8
mov esi, dword [esi + 4]
push 0xcc0020
push edi
push ecx
mov ecx, dword [esp + 0x48]
push esi
push edx
push ebp
push eax
push ebx
push ecx
call dword [sym.imp.gdi32.dll_BitBlt]
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x84]
mov ebx, dword [esp + 0xa0]
mov edx, dword [ebx + 8]
inc eax
add ecx, 0x18
cmp eax, edx
mov dword [esp + 0x8c], eax
mov dword [esp + 0x84], ecx
jl 0x41666c
mov ebp, dword [esp + 0x94]
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0xa4]
mov eax, dword [ecx]
test eax, eax
mov ebx, dword [esp + 0x98]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], esi
jne 0x416750
xor ecx, ecx
jmp 0x41676f
cmp eax, 1
jne 0x41676a
mov eax, dword [ecx + 8]
cdq
sub eax, edx
mov ecx, eax
mov eax, ebp
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
sub ecx, eax
jmp 0x41676f
mov ecx, dword [ecx + 8]
sub ecx, ebp
lea eax, [ecx + ebp]
mov dword [esp + 0x30], eax
sub eax, ecx
mov dword [esp + 0x28], ecx
xor ecx, ecx
mov dword [esp + 0x50], eax
lea edx, [esp + 0x48]
push edx
mov edx, dword [esp + 0x8c]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov ecx, dword [edi + 0x60]
lea eax, [esp + 0x2c]
push eax
push ecx
push edx
lea eax, [esp + 0x48]
sub esi, ebx
push eax
mov ecx, edi
mov dword [esp + 0x68], esi
call fcn.004132e0
mov eax, dword [esp + 0x1c]
test eax, eax
pop edi
pop esi
pop ebp
pop ebx
je 0x4167c1
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
call sub.mfc42.dll_CDC::SelectGdiObject
mov dword [esp + 0x10], 0x423218
lea ecx, [esp + 0x10]
mov byte [esp + 0x6c], 8
call sub.mfc42.dll_CGdiObject::DeleteObject
lea ecx, [esp + 0x28]
mov dword [esp + 0x10], 0x422ce8
mov dword [esp + 0x6c], 0xffffffff
call fcn.0041ed40
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0x24