Function at 0x496860
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5966fb
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x61e69c]
xor eax, esp
mov dword [esp + 0xd8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x61e69c]
xor eax, esp
push eax
lea eax, [esp + 0xf0]
mov dword fs:[0], eax
mov eax, dword [esp + 0x100]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x104]
mov edi, dword [eax + 8]
mov ebp, dword [eax + 0xc]
sub edi, dword [eax]
sub ebp, dword [eax + 4]
mov esi, edx
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x78], edi
mov dword [esp + 0x60], ebp
xor ebx, ebx
xor eax, eax
push ebx
push ebx
mov dword [esp + 0x48], eax
lea ecx, [esp + 0x34]
push ecx
mov edx, 1
mov word [esp + 0x4c], dx
push ebx
lea edx, [esp + 0x44]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
push edx
mov eax, 0x20
push esi
mov dword [esp + 0x4c], 0x28
mov dword [esp + 0x54], ebp
mov dword [esp + 0x50], edi
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov byte [esp + 0x74], bl
mov word [esp + 0x5a], ax
mov dword [esp + 0x44], ebx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [esp + 0x30], eax
cmp eax, ebx
je 0x496bcb
cmp dword [esp + 0x2c], ebx
je 0x496bcb
push ebx
push ebx
push eax
call dword [sym.imp.GDI32.dll_GetBitmapBits]
cmp eax, 3
jbe 0x496994
mov ecx, dword [esp + 0x2c]
lea edx, [ebx + 3]
inc ecx
mov byte [ecx - 1], bl
mov byte [ecx], bl
mov byte [ecx + 1], bl
mov byte [ecx + 2], 1
add edx, 4
add ecx, 4
cmp edx, eax
jb 0x49697e
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, eax
mov eax, dword [esp + 0x30]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push 0x11
mov dword [esp + 0x68], eax
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], edi
mov dword [esp + 0x8c], ebp
call dword [sym.imp.GDI32.dll_GetStockObject]
lea ecx, [esp + 0x8c]
push ecx
push 0x5c
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
push 0x5d83d8
mov eax, bind
mov ecx, 0x20
lea edx, [esp + 0xac]
call fcn.00407d20
mov dword [esp + 0x8c], 0xfffffff4
lea edx, [esp + 0x8c]
push edx
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x68], eax
cmp ecx, ebx
jne 0x496a25
push eax
jmp 0x496a28
mov ecx, dword [ecx]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edi, dword [sym.imp.GDI32.dll_SetBkMode]
push 1
push esi
mov dword [esp + 0x2c], eax
call edi
mov ebp, eax
mov eax, dword [esp + 0x10c]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0xffffff
push esi
mov dword [esp + 0x30], eax
call dword [sym.imp.GDI32.dll_SetBkColor]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x108]
push edx
mov dword [esp + 0x20], eax
mov eax, dword [ecx]
mov edx, dword [eax - 0xc]
lea ecx, [esp + 0x80]
push ecx
push edx
push eax
push esi
call dword [sym.imp.USER32.dll_DrawTextW]
push ebp
push esi
call edi
mov eax, dword [esp + 0x28]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [esp + 0x1c]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
movzx eax, word [esp + 0x42]
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x74], eax
imul eax, ebp
add eax, 0x1f
cdq
and edx, 0x1f
add eax, edx
mov edi, eax
sar edi, 5
add edi, edi
add edi, edi
cmp dword [esp + 0x3c], ebx
mov dword [esp + 0x20], ebx
jle 0x496b3a
mov dword [esp + 0x1c], ebx
cmp ebp, ebx
mov dword [esp + 0x28], ebx
jle 0x496b27
xor ecx, ecx
jmp 0x496ae0
mov eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
add eax, dword [esp + 0x1c]
add eax, dword [esp + 0x2c]
cmp byte [eax], bl
jne 0x496b0e
cmp byte [eax + 1], bl
jne 0x496b0e
cmp byte [eax + 2], bl
jne 0x496b0e
mov byte [eax], bl
mov byte [eax + 1], bl
mov byte [eax + 2], bl
mov byte [eax + 3], bl
jmp 0x496b12
mov byte [eax + 3], 0xff
mov eax, dword [esp + 0x28]
mov ebp, dword [esp + 0x38]
add ecx, dword [esp + 0x74]
inc eax
cmp eax, ebp
mov dword [esp + 0x28], eax
jl 0x496ae0
mov eax, dword [esp + 0x20]
add dword [esp + 0x1c], edi
inc eax
cmp eax, dword [esp + 0x3c]
mov dword [esp + 0x20], eax
jl 0x496ad1
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x78]
mov byte [esp + 0x1c], bl
mov byte [esp + 0x1d], bl
mov byte [esp + 0x1e], 0xff
mov byte [esp + 0x1f], 1
mov edx, dword [esp + 0x1c]
push edx
push ecx
push eax
push ebx
push ebx
push esi
push ecx
push eax
mov eax, dword [esp + 0x8c]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov eax, dword [esp + 0x90]
push ecx
push edx
push eax
call dword [sym.imp.MSIMG32.dll_AlphaBlend]
mov ecx, dword [esp + 0x24]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push ecx
push esi
call edi
mov edx, dword [esp + 0x64]
push edx
push esi
call edi
mov eax, dword [esp + 0x30]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
push eax
call edi
mov ebp, dword [sym.imp.GDI32.dll_DeleteDC]
cmp esi, ebx
je 0x496bb2
push esi
call ebp
test eax, eax
je 0x496bb2
xor esi, esi
mov eax, dword [esp + 0x68]
cmp eax, ebx
je 0x496bbd
push eax
call edi
cmp esi, ebx
je 0x496bc4
push esi
call ebp
mov eax, 1
jmp 0x496bcd
xor eax, eax
mov ecx, dword [esp + 0xf0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xd8]
xor ecx, esp
call fcn.004f673f
add esp, 0xe8
ret