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

Disassembly:
sub esp, 0x58
push ebx
mov ebx, dword [esp + 0x84]
push ebp
mov ebp, dword [esp + 0x64]
push esi
push edi
mov edi, eax
mov esi, ecx
lea eax, [edi + ebp]
push esi
mov dword [esp + 0x24], eax
call dword [sym.imp.GDI32.dll_GetTextAlign]
test eax, 0x100
je 0x4b28e4
mov ecx, dword [esp + 0x80]
add ebp, ecx
mov eax, dword [esp + 0x84]
test eax, eax
mov dword [esp + 0x90], ebp
jl 0x4b2902
cmp eax, edi
mov dword [esp + 0x18], 1
jg 0x4b290a
mov dword [esp + 0x18], 0
mov edx, dword [esp + 0x88]
mov eax, dword [edx + 8]
mov edi, dword [sym.imp.GDI32.dll_GetNearestColor]
push eax
push esi
call edi
mov ebp, dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
call ebp
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x88]
mov eax, dword [eax + 0x1c]
push eax
push esi
call edi
push eax
call ebp
push 1
push esi
mov dword [esp + 0x3c], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
push 6
push esi
mov dword [esp + 0x34], eax
call dword [sym.imp.GDI32.dll_GetCurrentObject]
test ebx, ebx
mov edx, dword [esp + 0x8c]
mov ecx, dword [esp + 0x94]
mov dword [esp + 0x28], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x84], ebx
jne 0x4b29c8
mov edi, dword [esp + 0x6c]
mov ecx, dword [esp + 0x28]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x2c]
push edx
push esi
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esp + 0x30]
test eax, eax
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
je 0x4b29a8
push eax
call esi
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4b29b3
push eax
call esi
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 0x2c
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
xor edi, edi
xor ebp, ebp
cmp dword [esp + 0x84], edi
mov dword [esp + 0x80], edx
je 0x4b2a1d
lea esp, [esp]
xor eax, eax
cmp byte [ecx], al
setne al
test ebp, ebp
je 0x4b29f6
cmp dword [esp + 0x94], eax
jne 0x4b2a15
jmp 0x4b2a02
mov ebp, 1
mov dword [esp + 0x94], eax
add ecx, 1
add edx, 2
add edi, 1
sub dword [esp + 0x84], 1
jne 0x4b29e0
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x94]
mov ebx, dword [esp + 0x88]
lea ecx, [eax + eax*4]
mov edx, dword [ebx + ecx*4]
lea ebp, [ebx + ecx*4]
push edx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [ebp + 4]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
xor ebp, ebp
xor eax, eax
cmp edi, 0x7fffffff
mov dword [esp + 0x1c], ebp
ja 0x4b2a93
mov edx, dword [esp + 0x80]
push 0xd00
lea ecx, [esp + 0x3c]
push ecx
push edi
push edx
push esi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x58], eax
call dword [0x598da8]
test eax, eax
je 0x4b2a91
mov ebp, dword [esp + 0x40]
sub ebp, dword [esp + 0x38]
mov dword [esp + 0x1c], ebp
xor eax, eax
cmp dword [esp + 0x18], eax
je 0x4b2ab0
mov edx, dword [ebx + 0x2c]
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x20]
add edx, ebp
add edx, ecx
cmp edx, eax
jg 0x4b2ba3
push esi
call dword [sym.imp.GDI32.dll_GetTextAlign]
test eax, 0x100
je 0x4b2ac5
sub dword [esp + 0x90], ebp
cmp dword [esp + 0x7c], 0
jne 0x4b2b77
mov eax, dword [esp + 0x94]
mov eax, dword [esp + eax*4 + 0x30]
test eax, eax
je 0x4b2b19
test ebp, ebp
jle 0x4b2b19
mov ecx, dword [esp + 0x74]
test ecx, ecx
jle 0x4b2b19
mov edx, dword [esp + 0x90]
mov ebx, dword [esp + 0x70]
add ebp, edx
mov dword [esp + 0x48], edx
push eax
lea edx, [esp + 0x4c]
push edx
add ecx, ebx
push esi
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], ecx
call dword [sym.imp.USER32.dll_FillRect]
jmp 0x4b2b1d
mov ebx, dword [esp + 0x70]
mov eax, dword [esp + 0x78]
push esi
lea ebp, [ebx + eax]
call dword [sym.imp.GDI32.dll_GetTextAlign]
mov ecx, eax
mov eax, dword [esp + 0x90]
shr ecx, 8
and ecx, 1
sub eax, ecx
cmp edi, 0xfff
jbe 0x4b2b49
mov edi, 0xfff
push 0x900
lea edx, [esp + 0x5c]
push edx
mov dword [esp + 0x60], eax
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x88]
push edi
push eax
push esi
mov dword [esp + 0x70], ebp
mov dword [esp + 0x78], ebp
call dword [0x598da8]
mov ebp, dword [esp + 0x1c]
push esi
call dword [sym.imp.GDI32.dll_GetTextAlign]
test eax, 0x100
jne 0x4b2b8c
add dword [esp + 0x90], ebp
add dword [esp + 0x6c], ebp
cmp dword [esp + 0x84], 0
jne 0x4b29c0
jmp 0x4b297b
sub eax, dword [ebx + 0x2c]
xor edx, edx
sub eax, ecx
test eax, eax
mov dword [esp + 0x84], edx
jle 0x4b2bdd
lea ecx, [esp + 0x20]
push ecx
push edx
lea edx, [esp + 0x8c]
push edx
push eax
push edi
mov edi, dword [esp + 0x94]
push edi
push esi
call dword [0x598c9c]
mov edx, dword [esp + 0x84]
jmp 0x4b2be4
mov edi, dword [esp + 0x80]
cmp edi, dword [esp + 0x8c]
mov dword [esp + 0x88], edx
jne 0x4b2c03
test edx, edx
jne 0x4b2c03
mov dword [esp + 0x88], 1
mov eax, dword [esp + 0x88]
push eax
push edi
push esi
call fcn.004a9800
push esi
mov ebp, eax
call dword [sym.imp.GDI32.dll_GetTextAlign]
test eax, 0x100
mov edi, dword [esp + 0x90]
je 0x4b2c2b
sub edi, ebp
cmp dword [esp + 0x7c], 0
jne 0x4b2c76
mov ecx, dword [esp + 0x94]
mov eax, dword [esp + ecx*4 + 0x30]
test eax, eax
je 0x4b2c54
mov edx, dword [esp + 0x74]
push eax
mov eax, dword [esp + 0x74]
push edx
push ebp
push eax
push edi
push esi
call fcn.004aaea0
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x70]
push ecx
mov ecx, dword [esp + 0x7c]
push edx
add eax, ecx
push eax
push edi
push esi
call fcn.004b02a0
push esi
call dword [sym.imp.GDI32.dll_GetTextAlign]
test eax, 0x100
jne 0x4b2c86
add edi, ebp
mov edx, dword [ebx]
add dword [esp + 0x6c], ebp
push edx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [ebx + 4]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ebp, dword [sym.imp.GDI32.dll_GetTextAlign]
push esi
call ebp
test eax, 0x100
je 0x4b2cb2
sub edi, dword [ebx + 0x2c]
cmp dword [esp + 0x7c], 0
jne 0x4b2d0a
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4b2cd7
mov ecx, dword [esp + 0x74]
mov edx, dword [ebx + 0x2c]
push eax
mov eax, dword [esp + 0x74]
push ecx
push edx
push eax
push edi
push esi
call fcn.004aaea0
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x70]
lea eax, [edx + ecx]
push 0x900
mov dword [esp + 0x60], eax
mov dword [esp + 0x68], eax
lea eax, [esp + 0x5c]
push eax
push 3
push 0x56f38c
push esi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x74], edi
call dword [0x598da8]
push esi
call ebp
mov edi, dword [esp + 0x6c]
add edi, dword [ebx + 0x2c]
jmp 0x4b297f