Function at 0x4b2860
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 0x4b2894
mov ecx, dword [esp + 0x80]
add ebp, ecx
mov eax, dword [esp + 0x84]
test eax, eax
mov dword [esp + 0x90], ebp
jl 0x4b28b2
cmp eax, edi
mov dword [esp + 0x18], 1
jg 0x4b28ba
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 0x4b2978
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 0x4b2958
push eax
call esi
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4b2963
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 0x4b29cd
lea esp, [esp]
xor eax, eax
cmp byte [ecx], al
setne al
test ebp, ebp
je 0x4b29a6
cmp dword [esp + 0x94], eax
jne 0x4b29c5
jmp 0x4b29b2
mov ebp, 1
mov dword [esp + 0x94], eax
add ecx, 1
add edx, 2
add edi, 1
sub dword [esp + 0x84], 1
jne 0x4b2990
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 0x4b2a43
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 [0x598dc8]
test eax, eax
je 0x4b2a41
mov ebp, dword [esp + 0x40]
sub ebp, dword [esp + 0x38]
mov dword [esp + 0x1c], ebp
xor eax, eax
cmp dword [esp + 0x18], eax
je 0x4b2a60
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 0x4b2b53
push esi
call dword [sym.imp.GDI32.dll_GetTextAlign]
test eax, 0x100
je 0x4b2a75
sub dword [esp + 0x90], ebp
cmp dword [esp + 0x7c], 0
jne 0x4b2b27
mov eax, dword [esp + 0x94]
mov eax, dword [esp + eax*4 + 0x30]
test eax, eax
je 0x4b2ac9
test ebp, ebp
jle 0x4b2ac9
mov ecx, dword [esp + 0x74]
test ecx, ecx
jle 0x4b2ac9
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 0x4b2acd
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 0x4b2af9
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 [0x598dc8]
mov ebp, dword [esp + 0x1c]
push esi
call dword [sym.imp.GDI32.dll_GetTextAlign]
test eax, 0x100
jne 0x4b2b3c
add dword [esp + 0x90], ebp
add dword [esp + 0x6c], ebp
cmp dword [esp + 0x84], 0
jne 0x4b2970
jmp 0x4b292b
sub eax, dword [ebx + 0x2c]
xor edx, edx
sub eax, ecx
test eax, eax
mov dword [esp + 0x84], edx
jle 0x4b2b8d
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 [0x598cbc]
mov edx, dword [esp + 0x84]
jmp 0x4b2b94
mov edi, dword [esp + 0x80]
cmp edi, dword [esp + 0x8c]
mov dword [esp + 0x88], edx
jne 0x4b2bb3
test edx, edx
jne 0x4b2bb3
mov dword [esp + 0x88], 1
mov eax, dword [esp + 0x88]
push eax
push edi
push esi
call fcn.004a97e0
push esi
mov ebp, eax
call dword [sym.imp.GDI32.dll_GetTextAlign]
test eax, 0x100
mov edi, dword [esp + 0x90]
je 0x4b2bdb
sub edi, ebp
cmp dword [esp + 0x7c], 0
jne 0x4b2c26
mov ecx, dword [esp + 0x94]
mov eax, dword [esp + ecx*4 + 0x30]
test eax, eax
je 0x4b2c04
mov edx, dword [esp + 0x74]
push eax
mov eax, dword [esp + 0x74]
push edx
push ebp
push eax
push edi
push esi
call fcn.004aae80
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.004b0260
push esi
call dword [sym.imp.GDI32.dll_GetTextAlign]
test eax, 0x100
jne 0x4b2c36
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 0x4b2c62
sub edi, dword [ebx + 0x2c]
cmp dword [esp + 0x7c], 0
jne 0x4b2cba
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4b2c87
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.004aae80
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 0x56f4c4
push esi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x74], edi
call dword [0x598dc8]
push esi
call ebp
mov edi, dword [esp + 0x6c]
add edi, dword [ebx + 0x2c]
jmp 0x4b292f