Function at 0x4029a0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b3f90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
push edi
cmp eax, esi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x48], ecx
je 0x402c9d
mov ebx, dword [ebp + 0xc]
cmp ebx, esi
je 0x402c9d
mov ecx, 0x1f
xor eax, eax
lea edi, [ebp - 0xd4]
mov byte [ebp - 0x11], 0
rep stosd dword es:[edi], eax
mov eax, dword [ebx]
lea ecx, [ebp - 0xd4]
push ecx
push ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0xd4], 0x7c
call dword [eax + 0x58]
cmp eax, esi
jge 0x402a30
lea edx, [ebp - 0x3c]
push 0x4b84b8
push edx
mov dword [ebp - 0x3c], esi
call fcn.004a7677
mov eax, dword [ebp - 0xcc]
mov ecx, dword [ebx]
mov edi, dword [ebp - 0xc8]
lea edx, [ebp - 0x18]
push edx
push ebx
mov dword [ebp - 0x20], eax
call dword [ecx + 0x44]
cmp eax, esi
jge 0x402a62
lea eax, [ebp - 0x4c]
push 0x4b84b8
push eax
mov dword [ebp - 0x4c], 1
call fcn.004a7677
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x18]
push ecx
push edi
push edx
call dword [sym.imp.gdi32.dll_CreateCompatibleBitmap]
cmp eax, esi
mov dword [ebp - 0x1c], eax
jne 0x402a8d
lea eax, [ebp - 0x30]
push 0x4b84b8
push eax
mov dword [ebp - 0x30], 2
call fcn.004a7677
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.gdi32.dll_CreateCompatibleDC]
mov esi, eax
test esi, esi
mov dword [ebp - 0x28], esi
jne 0x402ab5
lea edx, [ebp - 0x54]
push 0x4b84b8
push edx
mov dword [ebp - 0x54], 3
call fcn.004a7677
mov eax, dword [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.gdi32.dll_SelectObject]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
push 0xcc0020
push 0
push 0
push ecx
push edx
push edi
push 0
push 0
push esi
mov dword [ebp - 0x50], eax
call dword [sym.imp.gdi32.dll_BitBlt]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebx]
push ecx
push ebx
call dword [eax + 0x68]
push 0x428
mov dword [ebp - 0x18], 0
call fcn.004a71d4
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [ebp - 0x24], ebx
jne 0x402b1c
lea edx, [ebp - 0x44]
push 0x4b84b8
push edx
mov dword [ebp - 0x44], 4
call fcn.004a7677
mov ecx, 0xa
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x50]
mov dword [ebx], 0x28
push eax
push esi
call dword [sym.imp.gdi32.dll_SelectObject]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov edi, dword [sym.imp.gdi32.dll_GetDIBits]
push 0
push ebx
push 0
push ecx
push 0
push edx
push esi
call edi
test eax, eax
jne 0x402b69
lea eax, [ebp - 0x34]
push 0x4b84b8
push eax
mov dword [ebp - 0x34], 5
call fcn.004a7677
mov ecx, dword [ebx + 0x14]
push ecx
call fcn.004a71d4
add esp, 4
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x402b91
lea edx, [ebp - 0x38]
push 0x4b84b8
push edx
mov dword [ebp - 0x38], 6
call fcn.004a7677
mov ecx, dword [ebp - 0x1c]
push 0
push ebx
push eax
mov eax, dword [ebp - 0x20]
push eax
push 0
push ecx
push esi
call edi
test eax, eax
jne 0x402bbb
lea edx, [ebp - 0x40]
push 0x4b84b8
push edx
mov dword [ebp - 0x40], 7
call fcn.004a7677
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x1c]
push ecx
lea edi, [eax + 0x3004c]
mov ecx, edi
call sub.cximage.dll_public:_void___thiscall_CxImage::CreateFromHBITMAP_struct_HBITMAP____
mov edx, dword [ebp + 8]
push 3
push edx
mov ecx, edi
call sub.cximage.dll_public:_bool___thiscall_CxImage::Save_char_const___unsigned_long_int_
mov ecx, edi
call sub.cximage.dll_public:_void___thiscall_CxImage::Destroy_void_
push 0x4bc430
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov byte [ebp - 0x11], 1
jmp 0x402c39
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x402c51
mov eax, dword [ebp + 0xc]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x68]
test esi, esi
je 0x402c5c
push esi
call dword [sym.imp.gdi32.dll_DeleteDC]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x402c6a
push eax
call dword [sym.imp.gdi32.dll_DeleteObject]
test ebx, ebx
je 0x402c77
push ebx
call fcn.004a71c9
add esp, 4
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x402c87
push eax
call fcn.004a71c9
add esp, 4
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor al, al
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8