Function at 0x4a1cb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x527928
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi]
push edi
push eax
lea ecx, [esp + 0x2c]
call fcn.004671a0
mov ebp, dword [esp + 0x8c]
lea ecx, [ebp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.USER32.dll_CopyRect]
lea edi, [esi + 4]
xor ebx, ebx
cmp edi, ebx
je 0x4a1d3a
cmp dword [edi + 4], ebx
je 0x4a1d3a
mov ecx, dword [esi + 8]
lea eax, [esp + 0x38]
push eax
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectW]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x40]
sub edx, ecx
cmp eax, edx
jne 0x4a1d33
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x3c]
sub eax, edx
cmp ecx, eax
je 0x4a1d3a
mov ecx, edi
call fcn.00505d53
cmp dword [esi + 0x18], ebx
jne 0x4a1dd5
cmp dword [esi + 0x14], ebx
jne 0x4a1dd5
mov ecx, dword [esi]
call fcn.0044ea00
cmp dword [eax + 0x80], ebx
jne 0x4a1dd5
mov ecx, edi
call fcn.00505d53
push ebp
lea ecx, [esp + 0x3c]
call fcn.004672d0
mov edi, dword [esp + 0x18]
mov ecx, dword [esi]
mov edx, dword [ecx]
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov edi, dword [esp + 0x2c]
mov dword [eax + 4], edi
mov edi, dword [esp + 0x30]
mov dword [eax + 8], edi
mov edi, dword [esp + 0x34]
mov dword [eax + 0xc], edi
lea eax, [esp + 0x48]
push eax
mov dword [esp + 0x98], ebx
call dword [edx + 0x194]
mov ecx, esi
call fcn.004a1c10
lea ecx, [esp + 0x38]
mov dword [esp + 0x84], 0xffffffff
call fcn.00467400
mov dword [esi + 0xc], ebx
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret 4
cmp dword [esi + 0xc], ebx
jne 0x4a1e31
cmp edi, ebx
je 0x4a1e31
cmp dword [edi + 4], ebx
je 0x4a1e31
push edi
push ebp
lea ecx, [esp + 0x70]
call fcn.004677b0
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
push 0xcc0020
push ebx
push ebx
push ecx
mov ecx, dword [ebp + 4]
push edx
push eax
push ebx
push ebx
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
lea ecx, [esp + 0x68]
call fcn.004678a0
mov dword [esi + 0xc], ebx
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret 4
lea ecx, [esp + 0x38]
call fcn.00505517
cmp ebp, ebx
mov dword [esp + 0x84], 1
jne 0x4a1e4d
xor eax, eax
jmp 0x4a1e50
mov eax, dword [ebp + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x3c]
call fcn.005059ff
cmp edi, ebx
je 0x4a1e6a
cmp dword [edi + 4], ebx
jne 0x4a1eb2
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x28]
sub eax, ecx
mov ecx, dword [esp + 0x30]
sub ecx, edx
mov edx, dword [ebp + 4]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, edi
call fcn.00505cfc
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
cmp edi, ebx
jne 0x4a1eba
xor edi, edi
jmp 0x4a1ebd
mov edi, dword [edi + 4]
mov ecx, dword [esp + 0x3c]
push edi
push ecx
call fcn.00505d85
mov ebp, eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], vtable.CRgn.0
lea edx, [esp + 0x18]
push edx
mov byte [esp + 0x88], 2
call dword [sym.imp.GDI32.dll_CreateRectRgnIndirect]
push eax
lea ecx, [esp + 0x14]
call fcn.00505cfc
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x3c]
call fcn.00505757
mov edi, dword [esp + 0x18]
mov ecx, dword [esi]
mov edx, dword [ecx]
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov edi, dword [esp + 0x2c]
mov dword [eax + 4], edi
mov edi, dword [esp + 0x30]
mov dword [eax + 8], edi
mov edi, dword [esp + 0x34]
mov dword [eax + 0xc], edi
lea eax, [esp + 0x48]
push eax
call dword [edx + 0x194]
push ebx
lea ecx, [esp + 0x3c]
call fcn.00505757
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x20]
push 0xcc0020
push edx
push edi
push ebx
sub eax, edx
push eax
sub ecx, edi
push ecx
mov ecx, dword [esp + 0xa4]
push edx
mov edx, dword [ecx + 4]
push edi
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
test ebp, ebp
je 0x4a1f76
mov ebp, dword [ebp + 4]
mov eax, dword [esp + 0x3c]
push ebp
push eax
call fcn.00505d85
mov ecx, esi
call fcn.004a1c10
lea ecx, [esp + 0x10]
mov byte [esp + 0x84], 1
mov dword [esp + 0x10], vtable.CGdiObject.0
call fcn.00505d53
lea ecx, [esp + 0x38]
mov dword [esp + 0x84], 0xffffffff
call fcn.00505a7d
mov ecx, dword [esp + 0x7c]
pop edi
mov dword [esi + 0xc], 0
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x78
ret 4