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

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0xac
cmp eax, 6
push ebx
push ebp
push esi
push edi
jge 0x4bc847
mov edx, dword [esp + 0xc8]
mov ecx, dword [esp + 0xc4]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ecx
add edx, 0xea60
add ecx, 0xea60
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], ecx
cdq
mov ecx, 6
idiv ecx
xor ebx, ebx
mov word [esp + 0x80], bx
mov dword [esp + 0xa6], ebx
mov word [esp + 0x48], bx
mov edx, dword [edx*4 + 0x507188]
mov dword [0x65d594], edx
mov dword [0x65cd50], edx
mov dword [esp + 0x6e], edx
jmp 0x4bcb81
cmp eax, 0xba
jge 0x4bcb2f
mov edx, dword [esp + 0xc4]
mov esi, dword [esp + 0xc8]
xor ecx, ecx
cmp eax, 0x24
setge cl
inc ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], esi
add edx, 0xea60
add esi, 0xea60
cmp ecx, 1
mov dword [0x65d598], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], esi
jne 0x4bc8ab
lea ecx, [eax - 6]
mov eax, 0x66666667
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov ecx, edx
mov dword [esp + 0x10], ecx
jmp 0x4bc8cb
cmp ecx, 2
jne 0x4bc8c7
lea ecx, [eax - 0x24]
mov eax, 0x66666667
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x10], edx
mov ecx, dword [esp + 0x10]
cmp ecx, 6
jl 0x4bc8ec
mov eax, 0xaaaaaaab
mul ecx
shr edx, 2
lea eax, [edx*4]
sub eax, edx
neg eax
lea ecx, [ecx + eax*2]
mov dword [esp + 0x10], ecx
mov ecx, dword [ecx*4 + 0x507188]
xor ebx, ebx
push ebx
push ebx
push ebx
mov dword [0x65d594], ecx
sub esp, 0x30
mov dword [esp + 0xaa], ecx
mov ecx, 0xb
lea esi, [esp + 0xbc]
mov edi, esp
mov word [esp + 0xbc], bx
mov dword [esp + 0xe2], ebx
mov ebp, dword [esp + 0xfc]
rep movsd dword es:[edi], dword [esi]
push 1
lea edx, [esp + 0x54]
push 1
push edx
mov ecx, ebp
mov word [esp + 0x90], bx
movsw word es:[edi], word [esi]
call fcn.0041ba50
push ebx
mov ecx, 0xb
sub esp, 0x30
lea esi, [esp + 0xb4]
mov edi, esp
sub esp, 0x30
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, 0xb
lea esi, [esp + 0xac]
mov edi, esp
lea eax, [esp + 0x78]
rep movsd dword es:[edi], dword [esi]
push eax
mov ecx, ebp
movsw word es:[edi], word [esi]
call fcn.004cfcc0
mov esi, dword [0x65d598]
cmp esi, 1
jne 0x4bc9af
mov ecx, dword [esp + 0xcc]
lea eax, [ecx - 6]
mov ecx, 5
cdq
idiv ecx
mov eax, dword [esp + 0x10]
cmp edx, eax
mov dword [esp + 0x24], edx
jl 0x4bca12
inc edx
mov dword [esp + 0x24], edx
jmp 0x4bca12
cmp esi, 2
jne 0x4bca12
mov esi, dword [esp + 0xcc]
mov ecx, 5
lea eax, [esi - 6]
add esi, 0xffffffdc
cdq
idiv ecx
mov eax, 0x88888889
mov ecx, edx
imul esi
add edx, esi
mov dword [esp + 0x24], ecx
sar edx, 4
mov eax, edx
mov edi, ecx
shr eax, 0x1f
add edx, eax
mov eax, dword [esp + 0x10]
cmp ecx, eax
jl 0x4bc9f1
inc ecx
mov dword [esp + 0x24], ecx
add edi, edx
cmp edi, ecx
mov dword [esp + 0x28], edi
jl 0x4bca00
inc edi
mov dword [esp + 0x28], edi
cmp edi, 6
jl 0x4bca0c
sub edi, 6
mov dword [esp + 0x28], edi
mov esi, dword [0x65d598]
mov eax, 0xea60
lea ecx, [esi*4 + 1]
cdq
idiv ecx
xor ecx, ecx
cmp esi, ebx
mov dword [esp + 0x10], ecx
jle 0x4bcbed
neg eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], eax
jmp 0x4bca43
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x14]
lea esi, [ecx*4 + 0x65cd50]
mov ecx, dword [esp + ecx*4 + 0x24]
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x18]
push eax
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x24]
push eax
mov dword [esp + 0x48], edx
mov edx, dword [ecx*4 + 0x507188]
lea eax, [esp + 0x3c]
push eax
mov dword [esi], edx
call fcn.0041cf90
mov ecx, dword [esi]
add esp, 0xc
mov dword [esp + 0x6e], ecx
mov ecx, 0xb
push ebx
push ebx
push ebx
lea esi, [esp + 0x8c]
sub esp, 0x30
mov word [esp + 0xbc], bx
mov edi, esp
mov dword [esp + 0xe2], ebx
rep movsd dword es:[edi], dword [esi]
push 1
lea edx, [esp + 0x74]
push 1
push edx
mov ecx, ebp
mov word [esp + 0x90], bx
movsw word es:[edi], word [esi]
call fcn.0041ba50
push ebx
mov ecx, 0xb
sub esp, 0x30
lea esi, [esp + 0xb4]
mov edi, esp
sub esp, 0x30
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, 0xb
lea esi, [esp + 0xac]
mov edi, esp
lea eax, [esp + 0x98]
rep movsd dword es:[edi], dword [esi]
push eax
mov ecx, ebp
movsw word es:[edi], word [esi]
call fcn.004cfcc0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
add edx, ecx
mov ecx, dword [0x65d598]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x2c], edx
jl 0x4bca3b
jmp 0x4bcbed
mov eax, dword [esp + 0xc4]
mov ecx, dword [esp + 0xc8]
mov dword [esp + 0x14], eax
add eax, 0xea60
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
add ecx, 0xea60
mov eax, 0x808080
xor ebx, ebx
mov dword [esp + 0x20], ecx
mov dword [0x65d594], eax
mov dword [0x65cd50], eax
mov word [esp + 0x80], bx
mov dword [esp + 0xa6], ebx
mov word [esp + 0x48], bx
mov dword [esp + 0x6e], eax
push ebx
push ebx
push ebx
mov ecx, 0xb
sub esp, 0x30
lea esi, [esp + 0xbc]
mov edi, esp
mov ebp, dword [esp + 0xfc]
rep movsd dword es:[edi], dword [esi]
push 1
lea edx, [esp + 0x54]
push 1
push edx
mov ecx, ebp
movsw word es:[edi], word [esi]
call fcn.0041ba50
push ebx
mov ecx, 0xb
sub esp, 0x30
lea esi, [esp + 0xb4]
mov edi, esp
sub esp, 0x30
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, 0xb
lea esi, [esp + 0xac]
mov edi, esp
lea eax, [esp + 0x78]
rep movsd dword es:[edi], dword [esi]
push eax
mov ecx, ebp
movsw word es:[edi], word [esi]
call fcn.004cfcc0
mov dword [0x65d598], ebx
mov eax, dword [esp + 0xd0]
cmp eax, 0xffffffff
jne 0x4bcc88
push 1
mov ecx, 0xb
sub esp, 0x30
lea esi, [esp + 0x7c]
mov edi, esp
mov word [esp + 0x7c], bx
mov dword [esp + 0xa2], ebx
mov edx, dword [esp + 0x4c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x48]
push 0x7d0
push ecx
mov ecx, dword [esp + 0x58]
push ecx
push edx
push eax
mov ecx, ebp
movsw word es:[edi], word [esi]
call fcn.004cf800
push 1
mov edx, dword [esp + 0x1c]
sub esp, 0x30
mov eax, dword [esp + 0x50]
mov ecx, 0xb
lea esi, [esp + 0x7c]
mov edi, esp
mov word [esp + 0x7c], bx
mov dword [esp + 0xa2], ebx
push 0x7d0
rep movsd dword es:[edi], dword [esi]
push edx
push eax
mov eax, dword [esp + 0x60]
mov ecx, ebp
push eax
mov eax, dword [esp + 0x58]
push eax
movsw word es:[edi], word [esi]
call fcn.004cf800
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xac
ret
push eax
lea ecx, [esp + 0x38]
push 0x4e6a10
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov dx, word [ebp + 0xc]
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x8c]
push edx
push 0x7530
rep stosd dword es:[edi], eax
call fcn.004021e0
cdq
idiv dword [ebp + 0x264]
mov ecx, dword [ebp + 0x240]
mov edi, str.Arial
add esp, 0x14
mov byte [esp + 0x97], bl
neg eax
mov dword [esp + 0x80], eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
or ecx, 0xffffffff
shr eax, 0x1f
add edx, eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x88], edx
lea edx, [esp + 0x9c]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x80]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov edx, dword [ebp + 0x10]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
mov esi, eax
push esi
push edx
call ebx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
add eax, edx
mov cx, word [ebp + 0xc]
cdq
sub eax, edx
mov edx, dword [esp + 0x50]
imul edx, dword [ebp + 0x264]
sar eax, 1
push ecx
push edx
mov dword [esp + 0x2c], eax
call fcn.004017f0
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
lea edi, [ecx + edx]
mov ecx, dword [esp + 0x54]
imul ecx, dword [ebp + 0x264]
sub edi, eax
mov ax, word [ebp + 0xc]
push eax
push ecx
call fcn.004017f0
add esp, 0x10
add eax, edi
mov ecx, ebp
cdq
sub eax, edx
lea edx, [esp + 0x24]
sar eax, 1
push edx
mov dword [esp + 0x2c], eax
call fcn.004023a0
mov eax, dword [ebp + 0x10]
push 0x1e
push eax
call dword [sym.imp.GDI32.dll_SetTextAlign]
mov ecx, dword [ebp + 0x10]
push 1
push ecx
mov dword [esp + 0x18], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov dword [esp + 0x2c], eax
lea edi, [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x34]
not ecx
dec ecx
push ecx
push edx
push eax
mov ecx, ebp
call fcn.004bce70
cdq
idiv dword [ebp + 0x264]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
mov ecx, ebp
call fcn.004bce50
cdq
idiv dword [ebp + 0x260]
mov edx, dword [ebp + 0x10]
push eax
push edx
call dword [sym.imp.GDI32.dll_TextOutA]
mov eax, dword [esp + 0x30]
mov ecx, dword [ebp + 0x10]
push eax
push ecx
call ebx
mov edx, dword [esp + 0x2c]
mov eax, dword [ebp + 0x10]
push edx
push eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov ecx, dword [esp + 0x10]
mov edx, dword [ebp + 0x10]
push ecx
push edx
call dword [sym.imp.GDI32.dll_SetTextAlign]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xac
ret