Function at 0x4b2620
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 0x4b2654
mov ecx, dword [esp + 0x80]
add ebp, ecx
mov eax, dword [esp + 0x84]
test eax, eax
mov dword [esp + 0x90], ebp
jl 0x4b2672
cmp eax, edi
mov dword [esp + 0x18], 1
jg 0x4b267a
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 0x4b2738
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 0x4b2718
push eax
call esi
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4b2723
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 0x4b278d
lea esp, [esp]
xor eax, eax
cmp byte [ecx], al
setne al
test ebp, ebp
je 0x4b2766
cmp dword [esp + 0x94], eax
jne 0x4b2785
jmp 0x4b2772
mov ebp, 1
mov dword [esp + 0x94], eax
add ecx, 1
add edx, 2
add edi, 1
sub dword [esp + 0x84], 1
jne 0x4b2750
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 0x4b2803
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 [0x597dc8]
test eax, eax
je 0x4b2801
mov ebp, dword [esp + 0x40]
sub ebp, dword [esp + 0x38]
mov dword [esp + 0x1c], ebp
xor eax, eax
cmp dword [esp + 0x18], eax
je 0x4b2820
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 0x4b2913
push esi
call dword [sym.imp.GDI32.dll_GetTextAlign]
test eax, 0x100
je 0x4b2835
sub dword [esp + 0x90], ebp
cmp dword [esp + 0x7c], 0
jne 0x4b28e7
mov eax, dword [esp + 0x94]
mov eax, dword [esp + eax*4 + 0x30]
test eax, eax
je 0x4b2889
test ebp, ebp
jle 0x4b2889
mov ecx, dword [esp + 0x74]
test ecx, ecx
jle 0x4b2889
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 0x4b288d
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 0x4b28b9
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 [0x597dc8]
mov ebp, dword [esp + 0x1c]
push esi
call dword [sym.imp.GDI32.dll_GetTextAlign]
test eax, 0x100
jne 0x4b28fc
add dword [esp + 0x90], ebp
add dword [esp + 0x6c], ebp
cmp dword [esp + 0x84], 0
jne 0x4b2730
jmp 0x4b26eb
sub eax, dword [ebx + 0x2c]
xor edx, edx
sub eax, ecx
test eax, eax
mov dword [esp + 0x84], edx
jle 0x4b294d
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 [0x597cbc]
mov edx, dword [esp + 0x84]
jmp 0x4b2954
mov edi, dword [esp + 0x80]
cmp edi, dword [esp + 0x8c]
mov dword [esp + 0x88], edx
jne 0x4b2973
test edx, edx
jne 0x4b2973
mov dword [esp + 0x88], 1
mov eax, dword [esp + 0x88]
push eax
push edi
push esi
call fcn.004a9530
push esi
mov ebp, eax
call dword [sym.imp.GDI32.dll_GetTextAlign]
test eax, 0x100
mov edi, dword [esp + 0x90]
je 0x4b299b
sub edi, ebp
cmp dword [esp + 0x7c], 0
jne 0x4b29e6
mov ecx, dword [esp + 0x94]
mov eax, dword [esp + ecx*4 + 0x30]
test eax, eax
je 0x4b29c4
mov edx, dword [esp + 0x74]
push eax
mov eax, dword [esp + 0x74]
push edx
push ebp
push eax
push edi
push esi
call fcn.004aabc0
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.004affb0
push esi
call dword [sym.imp.GDI32.dll_GetTextAlign]
test eax, 0x100
jne 0x4b29f6
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 0x4b2a22
sub edi, dword [ebx + 0x2c]
cmp dword [esp + 0x7c], 0
jne 0x4b2a7a
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4b2a47
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.004aabc0
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 0x56e49c
push esi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x74], edi
call dword [0x597dc8]
push esi
call ebp
mov edi, dword [esp + 0x6c]
add edi, dword [ebx + 0x2c]
jmp 0x4b26ef