Function at 0x4954c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x51dd80
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push ebp
push esi
mov eax, dword [0x589560]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x64]
mov edx, dword [edi + 0x38c]
mov eax, dword [ecx + 0xc]
sub eax, dword [edx + 8]
sub eax, dword [ecx + 4]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x58], eax
mov eax, dword [edi + 0x38c]
mov ebx, dword [eax + 8]
mov ebp, dword [eax + 4]
mov eax, dword [esp + 0x60]
push 0x20
push ebx
push ebp
lea esi, [esp + 0x3c]
call fcn.004431b0
add esp, 0xc
test al, al
je 0x495676
mov eax, dword [esp + 0x30]
xor esi, esi
push 1
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], esi
mov byte [esp + 0x20], 1
call dword [sym.imp.GDI32.dll_SetBkMode]
mov dword [esp + 0x2c], esi
mov esi, ebx
imul esi, ebp
mov byte [esp + 0x58], 1
mov eax, dword [edi + 0x340]
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 0x14]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x30]
add esi, esi
add esi, esi
call eax
test al, al
je 0x4955a4
mov ecx, dword [edi + 0x38c]
mov eax, dword [ecx]
jmp 0x4955ac
mov edx, dword [edi + 0x390]
mov eax, dword [edx]
push esi
push eax
mov eax, dword [esp + 0x48]
push esi
push eax
call fcn.004fe295
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x40]
add esp, 0x10
push ecx
mov ecx, dword [edi + 0x37c]
add ecx, dword [eax + 4]
push ebx
add ecx, dword [esp + 0x1c]
push ebp
push 0
push 0
push edx
mov edx, dword [edi + 0x378]
add edx, dword [eax]
mov eax, dword [esp + 0x78]
push ebx
push ebp
push ecx
push edx
push eax
call dword [sym.imp.MSIMG32.dll_AlphaBlend]
mov eax, dword [edi + 0x340]
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 0x14]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x34]
call eax
test al, al
je 0x495616
mov ecx, dword [edi + 0x394]
mov eax, dword [ecx]
jmp 0x49561e
mov edx, dword [edi + 0x398]
mov eax, dword [edx]
push esi
push eax
mov eax, dword [esp + 0x48]
push esi
push eax
call fcn.004fe295
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x74]
add esp, 0x10
push ecx
mov ecx, dword [edi + 0x384]
add ecx, dword [eax + 4]
mov eax, dword [eax]
add ecx, dword [esp + 0x18]
push ebx
push ebp
push 0
push 0
push edx
mov edx, dword [edi + 0x380]
push ebx
push ebp
push ecx
lea ecx, [edx + eax + 0xc]
mov edx, dword [esp + 0x84]
push ecx
push edx
call dword [sym.imp.MSIMG32.dll_AlphaBlend]
lea esi, [esp + 0x18]
call fcn.00442340
mov esi, dword [esp + 0x30]
test esi, esi
je 0x4956a0
mov eax, dword [esp + 0x38]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x34]
test eax, eax
je 0x495699
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret 8