Function at 0x5e40b6
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov edi, dword [ebp + 0xc]
mov eax, dword [0x7a8498]
xor eax, ebp
mov dword [esp + 0x78], eax
test edi, edi
je 0x5e4302
mov ebx, dword [ebp + 0x20]
mov esi, dword [ebp + 8]
mov ecx, edi
call fcn.0051f9e4
test al, al
je 0x5e427d
mov eax, ebx
and eax, 0x400
jne 0x5e427d
cmp dword [ebp + 0x14], 0
je 0x5e4302
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, eax
mov ecx, dword [ebp + 0x1c]
push edi
call fcn.005dd930
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov edi, dword [ebp + 0x10]
mov eax, dword [edi + 8]
mov edx, dword [edi]
mov ecx, eax
sub ecx, edx
mov dword [esp + 0x70], ecx
mov ecx, dword [edi + 0xc]
sub ecx, dword [edi + 4]
mov dword [esp + 0x74], ecx
sub eax, edx
jle 0x5e42e7
test ecx, ecx
mov edi, 0
jle 0x5e42e9
mov dword [esp + 0x14], esi
xor esi, esi
lea edx, [esp + 0x40]
mov dword [edx + 0x24], esi
pxor xmm0, xmm0
movdqu xmmword [edx + 0x14], xmm0
lea edi, [esp + 0x3c]
mov dword [edi], esi
mov dword [edx], 0x28
mov dword [edx + 4], eax
mov dword [edx + 8], ecx
mov dword [edx + 0xc], 0x200001
mov dword [edx + 0x10], esi
push esi
push esi
push edi
push esi
mov esi, dword [esp + 0x24]
push edx
push esi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov edi, eax
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
test eax, eax
je 0x5e42e9
mov dword [esp + 0x10], edi
mov edi, dword [ebp + 0x18]
mov ecx, edi
shr ecx, 0x18
mov dword [esp + 8], ecx
push 0xffffff
push esi
mov dword [esp + 0x14], eax
call dword [sym.imp.GDI32.dll_SetTextColor]
xor eax, eax
push eax
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
push 2
push esi
call dword [sym.imp.GDI32.dll_SetBkMode]
or ebx, 0x800
lea eax, [esp + 0x68]
xor ecx, ecx
dec ecx
push ebx
push eax
push ecx
push dword [ebp + 0x14]
push esi
call dword [sym.imp.USER32.dll_DrawTextW]
push edi
mov edi, dword [esp + 0x14]
push dword [esp + 0x4c]
push dword [esp + 0x4c]
push dword [esp + 0x48]
call fcn.005e064e
add esp, 0x10
lea ebx, [esp + 0x20]
xor eax, eax
dec eax
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x10], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [ebx], xmm0
push ebx
push 0x18
push edi
call dword [sym.imp.GDI32.dll_GetObjectW]
mov word [esp + 0x1c], 0
mov eax, dword [esp + 8]
mov byte [esp + 0x1e], al
mov byte [esp + 0x1f], 1
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 8]
mov edx, dword [esp + 0x1c]
push edx
push ecx
push eax
xor edx, edx
push edx
push edx
push esi
push ecx
push eax
mov eax, dword [ebp + 0x10]
push dword [eax + 4]
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.MSIMG32.dll_AlphaBlend]
push dword [esp + 0xc]
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
jmp 0x5e42e9
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x5e4302
push 1
push esi
call dword [sym.imp.GDI32.dll_SetBkMode]
mov edx, dword [ebp + 0x18]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov ecx, edx
and ecx, 0xff00
or ecx, eax
movzx eax, dl
shl eax, 0x10
or eax, ecx
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [ebp + 0x1c]
push edi
call fcn.005dd930
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edi, esi
mov esi, eax
or ebx, 0x800
push ebx
push dword [ebp + 0x10]
push 0xffffffffffffffff
push dword [ebp + 0x14]
push edi
call dword [sym.imp.USER32.dll_DrawTextW]
push esi
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
jmp 0x5e4302
xor edi, edi
push dword [esp + 0x18]
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.006c9121
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret