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

Disassembly:
sub esp, 0x58
push ebx
push ebp
push esi
mov esi, dword [esp + 0x68]
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x10], ebx
mov edi, ecx
cmp edi, ebx
mov dword [esp + 0x14], edi
jg 0x100053e1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 0xc
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebp, eax
cmp ebp, ebx
mov dword [esp + 0x24], ebp
jne 0x100053fe
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x58
ret 0xc
mov eax, dword [esp + 0x70]
push eax
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
cmp eax, ebx
mov dword [esp + 0x2c], eax
jne 0x1000541e
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x58
ret 0xc
lea ecx, [esp + 0x30]
push 0x500
push ecx
push edi
push esi
push ebp
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
call dword [sym.imp.USER32.dll_DrawTextA]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
cmp edx, eax
jle 0x100055c2
mov esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x34]
cmp esi, eax
jle 0x100055c2
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x40]
push ebx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x38]
sub edx, eax
push ebx
mov dword [esp + 0x4c], edx
lea edx, [esp + 0x78]
push edx
lea eax, [esp + 0x4c]
push ebx
sub esi, edi
push eax
push ebp
mov dword [esp + 0x88], ebx
mov dword [esp + 0x58], 0x28
mov dword [esp + 0x60], esi
mov word [esp + 0x64], 1
mov word [esp + 0x66], 0x20
mov dword [esp + 0x68], ebx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
push eax
push ebp
mov dword [esp + 0x18], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x28], esi
je 0x100055c2
push 0xffffff
push ebp
call dword [sym.imp.GDI32.dll_SetTextColor]
push ebx
push ebp
call dword [sym.imp.GDI32.dll_SetBkColor]
push 2
push ebp
call dword [sym.imp.GDI32.dll_SetBkMode]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x6c]
lea ecx, [esp + 0x30]
push 0x100
push ecx
push edx
push eax
push ebp
call dword [sym.imp.USER32.dll_DrawTextA]
mov edx, dword [esp + 0x74]
xor ecx, ecx
mov cl, dh
mov eax, dword [esp + 0x70]
mov byte [esp + 0x18], cl
mov ecx, edx
shr ecx, 0x10
mov byte [esp + 0x14], cl
mov ecx, dword [esp + 0x48]
cmp ecx, ebx
mov dword [esp + 0x6c], ebx
jle 0x100055ba
mov ecx, dword [esp + 0x44]
xor esi, esi
cmp ecx, ebx
jle 0x100055a3
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
and edi, 0xff
and ebp, 0xff
and edx, 0xff
mov dword [esp + 0x20], edx
mov dl, byte [eax]
mov ebx, edi
mov byte [esp + 0x1c], dl
mov ecx, dword [esp + 0x1c]
and ecx, 0xff
imul ebx, ecx
sar ebx, 8
mov byte [eax], bl
mov ebx, ebp
imul ebx, ecx
inc eax
sar ebx, 8
mov byte [eax], bl
mov ebx, dword [esp + 0x20]
imul ebx, ecx
inc eax
sar ebx, 8
mov byte [eax], bl
inc eax
mov byte [eax], dl
mov ecx, dword [esp + 0x44]
inc eax
inc esi
cmp esi, ecx
jl 0x1000555a
mov edx, dword [esp + 0x74]
mov ebp, dword [esp + 0x24]
xor ebx, ebx
mov esi, dword [esp + 0x6c]
inc esi
mov dword [esp + 0x6c], esi
mov esi, dword [esp + 0x48]
cmp dword [esp + 0x6c], esi
jl 0x10005536
mov esi, dword [esp + 0x28]
push esi
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x2c]
push edx
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
push ebp
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 0xc