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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a0c0a
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x4d0620]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
lea ecx, [esp + 0x5c]
mov dword [esp + 0x20], 0x80004001
call fcn.0046140b
xor ebx, ebx
mov dword [esp + 0x78], ebx
mov esi, vtable.CFont.0
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x48], ebx
mov dword [esp + 0x44], esi
cmp dword [ebp + 0x14], ebx
mov byte [esp + 0x78], 2
je 0x413ac8
mov ecx, dword [ebp + 0x18]
cmp ecx, ebx
je 0x413ac8
mov edi, dword [ebp + 8]
cmp dword [edi + 0xf4], ebx
je 0x413ac8
mov eax, dword [ecx + 8]
sub eax, dword [ecx]
cmp eax, 0x20
mov dword [esp + 0x18], eax
jl 0x413ac8
push ebx
call dword [sym.imp.USER32.dll_GetDC]
cmp eax, ebx
mov dword [esp + 0x28], eax
je 0x413ac8
lea eax, [edi + 0x14]
push eax
lea ecx, [esp + 0x40]
call fcn.004140c5
cmp eax, ebx
je 0x413abd
lea eax, [edi + 0x7c]
push eax
lea ecx, [esp + 0x48]
call fcn.004140c5
cmp eax, ebx
je 0x413abd
push dword [esp + 0x28]
lea ecx, [esp + 0x60]
call fcn.00461919
cmp eax, ebx
je 0x413abd
push dword [edi + 0xf4]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x60]
call fcn.00461cb8
push dword [esp + 0x1c]
mov dword [esp + 0x28], eax
push dword [edi + 0xf4]
lea eax, [esp + 0x64]
push eax
lea esi, [esp + 0x58]
call fcn.00414098
mov ebx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x60]
call fcn.00461cb8
push dword [esp + 0x1c]
lea eax, [esp + 0x60]
push dword [edi + 0xf4]
lea esi, [esp + 0x54]
push eax
call fcn.00414098
mov esi, dword [eax]
cmp esi, ebx
mov eax, dword [eax + 4]
jge 0x413803
mov esi, ebx
mov ecx, dword [esp + 0x30]
cmp eax, ecx
jge 0x41381d
lea eax, [esp + 0x3c]
mov dword [esp + 0x38], ecx
push eax
lea ecx, [esp + 0x60]
call fcn.00461cb8
mov eax, esi
cdq
idiv dword [esp + 0x18]
xor esi, esi
mov ebx, eax
add ebx, 3
cmp ebx, dword [edi + 0x100]
mov dword [esp + 0x1c], ebx
jle 0x41387b
mov eax, dword [edi + 0x104]
cmp eax, esi
je 0x41384e
push eax
call fcn.0045d845
pop ecx
mov dword [edi + 0x104], esi
xor ecx, ecx
push 0x18
pop edx
mov eax, ebx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0045d840
cmp eax, esi
pop ecx
mov dword [edi + 0x104], eax
jne 0x413875
mov dword [esp + 0x1c], esi
mov ebx, esi
mov dword [edi + 0x100], ebx
mov eax, dword [edi + 0x104]
cmp eax, esi
mov dword [edi + 0x118], esi
mov dword [edi + 0x11c], esi
mov dword [edi + 0x120], esi
mov dword [edi + 0x124], esi
je 0x413a9a
mov ecx, dword [edi + 0x100]
imul ecx, ecx, 0x18
push ecx
push esi
push eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x2c], esi
call fcn.0047e7d0
mov eax, dword [edi + 0xf4]
mov ebx, dword [edi + 0x104]
add esp, 0xc
test eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], eax
je 0x413a85
jmp 0x4138df
mov eax, dword [esp + 0x18]
cmp word [eax], 0
je 0x413a85
mov eax, dword [esp + 0x1c]
imul eax, eax, 0x18
add eax, dword [edi + 0x104]
cmp ebx, eax
jae 0x413a85
mov esi, dword [ebp + 0x18]
mov ecx, dword [esi + 8]
sub ecx, dword [ebp + 0xc]
mov eax, dword [esi + 0xc]
sub eax, dword [ebp + 0x10]
xor edx, edx
mov dword [esp + 0x34], edx
mov dword [esp + 0x2c], edx
mov edx, dword [edi + 0x108]
add edx, dword [edi + 0x110]
mov dword [esp + 0x4c], ecx
cmp ecx, edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x30], eax
jl 0x4139b8
jmp 0x41393d
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x10]
push eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_CharNextW]
test eax, eax
mov dword [esp + 0x10], eax
je 0x4139db
sub eax, dword [esp + 0x18]
lea esi, [esp + 0x54]
sar eax, 1
push eax
push dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x64]
push eax
call fcn.00414098
mov edx, dword [eax + 4]
mov ecx, dword [eax]
mov esi, dword [ebp + 0x18]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x10]
cmp word [edx], 0
mov dword [esp + 0x34], ecx
je 0x4139ad
mov eax, dword [edi + 0x108]
add eax, dword [edi + 0x110]
add eax, ecx
cmp dword [esp + 0x4c], eax
jge 0x413939
jmp 0x4139b8
mov eax, dword [eax + 4]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4139db
cmp word [eax], 0
je 0x4139db
mov eax, dword [esp + 0x20]
dec dword [esp + 0x14]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
mov dword [ebx + 0x10], eax
jmp 0x4139df
or dword [ebx + 0x10], 0xffffffff
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [ebx + 0x14], eax
mov eax, dword [edi + 0x108]
add eax, ecx
mov ecx, dword [esp + 0x2c]
mov dword [ebx], eax
add eax, ecx
mov dword [ebx + 8], eax
lea ecx, [edi + 0x10c]
mov eax, dword [ecx]
add eax, edx
mov edx, dword [esp + 0x30]
mov dword [ebx + 4], eax
add eax, edx
mov dword [ebx + 0xc], eax
mov eax, dword [edi + 0x114]
add eax, dword [ecx]
add eax, dword [ebp + 0x10]
add eax, dword [esp + 0x38]
cmp eax, dword [esi + 0xc]
jle 0x413a2c
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 0x110]
mov eax, dword [edi + 0x108]
add eax, ecx
mov ecx, dword [esp + 0x34]
add ecx, eax
cmp dword [esp + 0x4c], ecx
jge 0x413a53
mov eax, dword [esi]
mov dword [ebp + 0xc], eax
mov eax, dword [esi + 0xc]
mov dword [ebp + 0x10], eax
jmp 0x413a5c
mov ecx, dword [esp + 0x2c]
add eax, ecx
add dword [ebp + 0xc], eax
cmp dword [esp + 0x14], 0
jle 0x413a75
push ebx
lea eax, [edi + 0x118]
push eax
push eax
call dword [sym.imp.USER32.dll_UnionRect]
add ebx, 0x18
mov eax, dword [esp + 0x10]
test eax, eax
mov dword [esp + 0x18], eax
jne 0x4138db
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
and dword [esp + 0x20], 0
mov dword [eax], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax + 4], ecx
xor esi, esi
cmp dword [esp + 0x24], esi
je 0x413aad
push dword [esp + 0x24]
lea ecx, [esp + 0x60]
call fcn.00461cb8
lea ecx, [esp + 0x5c]
call fcn.0046194c
mov esi, vtable.CFont.0
xor ebx, ebx
push dword [esp + 0x28]
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov byte [esp + 0x78], 1
lea ecx, [esp + 0x44]
mov dword [esp + 0x44], esi
call fcn.0040bb5e
mov byte [esp + 0x78], 0
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3c], esi
call fcn.0040bb5e
or dword [esp + 0x78], 0xffffffff
lea ecx, [esp + 0x5c]
call fcn.00461993
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14