Function at 0x4a1d10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x527988
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.00467200
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 0x4a1d9a
cmp dword [edi + 4], ebx
je 0x4a1d9a
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 0x4a1d93
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x3c]
sub eax, edx
cmp ecx, eax
je 0x4a1d9a
mov ecx, edi
call fcn.00505db3
cmp dword [esi + 0x18], ebx
jne 0x4a1e35
cmp dword [esi + 0x14], ebx
jne 0x4a1e35
mov ecx, dword [esi]
call fcn.0044ea60
cmp dword [eax + 0x80], ebx
jne 0x4a1e35
mov ecx, edi
call fcn.00505db3
push ebp
lea ecx, [esp + 0x3c]
call fcn.00467330
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.004a1c70
lea ecx, [esp + 0x38]
mov dword [esp + 0x84], 0xffffffff
call fcn.00467460
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 0x4a1e91
cmp edi, ebx
je 0x4a1e91
cmp dword [edi + 4], ebx
je 0x4a1e91
push edi
push ebp
lea ecx, [esp + 0x70]
call fcn.00467810
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.00467900
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.00505577
cmp ebp, ebx
mov dword [esp + 0x84], 1
jne 0x4a1ead
xor eax, eax
jmp 0x4a1eb0
mov eax, dword [ebp + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x3c]
call fcn.00505a5f
cmp edi, ebx
je 0x4a1eca
cmp dword [edi + 4], ebx
jne 0x4a1f12
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.00505d5c
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 0x4a1f1a
xor edi, edi
jmp 0x4a1f1d
mov edi, dword [edi + 4]
mov ecx, dword [esp + 0x3c]
push edi
push ecx
call fcn.00505de5
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.00505d5c
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x3c]
call fcn.005057b7
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.005057b7
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 0x4a1fd6
mov ebp, dword [ebp + 4]
mov eax, dword [esp + 0x3c]
push ebp
push eax
call fcn.00505de5
mov ecx, esi
call fcn.004a1c70
lea ecx, [esp + 0x10]
mov byte [esp + 0x84], 1
mov dword [esp + 0x10], vtable.CGdiObject.0
call fcn.00505db3
lea ecx, [esp + 0x38]
mov dword [esp + 0x84], 0xffffffff
call fcn.00505add
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