Function at 0x10b8a04
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x10c671c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xa0], ecx
test eax, eax
jne 0x10b8a36
mov eax, 0x8876086c
jmp 0x10b91bd
test ecx, ecx
je 0x10b8a2c
push esi
push edi
mov dword [ebx + 8], eax
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
push dword [ebx + 8]
call fcn.010b80e9
cmp dword [0x10d2760], 0
mov dword [ebx + 0xc], eax
jne 0x10b8c92
mov dword [0x10d2760], 1
call fcn.010a414c
cmp dword [0x10d271c], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
je 0x10b8af0
mov edi, 0x103ba88
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x9c], eax
test eax, eax
jne 0x10b8aa2
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x9c], eax
test eax, eax
je 0x10b8af0
push 0x103ba74
push dword [ebp - 0x9c]
call esi
mov dword [0x10d2764], eax
test eax, eax
je 0x10b9106
push 0x103ba64
push dword [ebp - 0x9c]
call esi
mov dword [0x10d2768], eax
test eax, eax
je 0x10b9106
push 0x103ba4c
push dword [ebp - 0x9c]
call esi
mov dword [0x10d276c], eax
test eax, eax
je 0x10b9106
push 0x103ba40
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
jne 0x10b8b16
push 0x103ba40
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10b8c92
push 0x103ba30
push edi
mov dword [0x10d2770], 1
call esi
mov dword [0x10d2774], eax
test eax, eax
je 0x10b9106
push 0x103ba24
push edi
call esi
mov dword [0x10d2778], eax
test eax, eax
je 0x10b9106
push 0x103ba18
push edi
call esi
mov dword [0x10d277c], eax
test eax, eax
je 0x10b9106
push 0x103ba0c
push edi
call esi
mov dword [0x10d2780], eax
test eax, eax
je 0x10b9106
push 0x103b9fc
push edi
call esi
mov dword [0x10d2784], eax
test eax, eax
je 0x10b9106
push 0x103b9ec
push edi
call esi
mov dword [0x10d2788], eax
test eax, eax
je 0x10b9106
push 0x103b9d8
push edi
call esi
mov dword [0x10d278c], eax
test eax, eax
je 0x10b9106
push 0x103b9c8
push edi
call esi
mov dword [0x10d2790], eax
test eax, eax
je 0x10b9106
push 0x103b9a8
push edi
call esi
mov dword [0x10d2794], eax
test eax, eax
je 0x10b9106
push 0x103b988
push edi
call esi
mov dword [0x10d2798], eax
test eax, eax
je 0x10b9106
push 0x103b970
push edi
call esi
mov dword [0x10d279c], eax
test eax, eax
je 0x10b9106
push 0x103b95c
push edi
call esi
mov dword [0x10d27a0], eax
test eax, eax
je 0x10b9106
push 0x103b94c
push edi
call esi
mov dword [0x10d27a4], eax
test eax, eax
je 0x10b9106
push 0x103b938
push edi
call esi
mov dword [0x10d27a8], eax
test eax, eax
je 0x10b9106
push 0x103b924
push edi
call esi
mov dword [0x10d27ac], eax
test eax, eax
je 0x10b9106
push 0x103b910
push edi
call esi
mov dword [0x10d27b0], eax
test eax, eax
je 0x10b9106
lea eax, [ebp - 0x9c]
push eax
push 0x10d27c0
call dword [0x10d278c]
push 0x10d27b4
push 0x400
call dword [0x10d2794]
xor esi, esi
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebx + 0x14], eax
cmp eax, esi
je 0x10b9106
push 1
push eax
call dword [sym.imp.GDI32.dll_SetMapMode]
cmp dword [0x10d271c], esi
jne 0x10b8cc2
push 1
push dword [ebx + 0x14]
call dword [sym.imp.GDI32.dll_SetTextAlign]
cmp dword [ebp + 0x10], esi
je 0x10b8d8b
cmp dword [0x10d271c], esi
jne 0x10b8d14
mov eax, dword [ebp - 0xa0]
push 6
pop ecx
mov esi, eax
lea edi, [ebp - 0x98]
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
push ecx
push ecx
push 0x20
lea edx, [ebp - 0x80]
push edx
push 0xffffffffffffffff
add eax, 0x18
push eax
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
and dword [ebp + 0x10], 0
lea eax, [ebp - 0x98]
mov byte [ebp - 0x61], 0
mov dword [ebp - 0xa0], eax
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x10b8d8b
push 0x5c
lea eax, [ebp - 0x60]
push 0
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 0xa0]
mov ecx, dword [eax]
mov dword [ebp - 0x60], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x5c], ecx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x50], ecx
mov cl, byte [eax + 0x10]
mov byte [ebp - 0x4c], cl
mov cl, byte [eax + 0x14]
mov byte [ebp - 0x49], cl
mov cl, byte [eax + 0x15]
mov byte [ebp - 0x48], cl
mov cl, byte [eax + 0x16]
mov byte [ebp - 0x46], cl
mov cl, byte [eax + 0x17]
add esp, 0xc
mov byte [ebp - 0x45], cl
push 0x10
lea esi, [eax + 0x18]
pop ecx
lea edi, [ebp - 0x44]
rep movsd dword es:[edi], dword [esi]
test byte [ebp - 0x46], 7
jne 0x10b8d73
or byte [ebp - 0x46], 4
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
xor edi, edi
mov dword [ebx + 0x18], eax
cmp eax, edi
jne 0x10b8dfc
jmp 0x10b9106
push 0x3c
lea eax, [ebp - 0x40]
push 0
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 0xa0]
mov ecx, dword [eax]
mov dword [ebp - 0x40], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x3c], ecx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x30], ecx
mov cl, byte [eax + 0x10]
mov byte [ebp - 0x2c], cl
mov cl, byte [eax + 0x14]
mov byte [ebp - 0x29], cl
mov cl, byte [eax + 0x15]
mov byte [ebp - 0x28], cl
mov cl, byte [eax + 0x16]
mov byte [ebp - 0x26], cl
mov cl, byte [eax + 0x17]
add esp, 0xc
mov byte [ebp - 0x25], cl
push 8
lea esi, [eax + 0x18]
pop ecx
lea edi, [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
test byte [ebp - 0x26], 7
jne 0x10b8de5
or byte [ebp - 0x26], 4
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov dword [ebx + 0x18], eax
test eax, eax
je 0x10b9106
xor edi, edi
push dword [ebx + 0x18]
mov eax, dword [ebp - 0xa0]
mov eax, dword [eax + 0xc]
push dword [ebx + 0x14]
mov dword [ebx + 0x500], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebx + 0x14]
mov dword [ebx + 0x1c], eax
call dword [sym.imp.GDI32.dll_GetFontLanguageInfo]
mov dword [ebx + 0x70], eax
cmp dword [0x10d271c], edi
je 0x10b8e3d
lea eax, [ebx + 0x34]
push eax
push dword [ebx + 0x14]
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
jmp 0x10b8e83
lea eax, [ebp - 0x3c]
push eax
push dword [ebx + 0x14]
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
movzx ax, byte [ebp - 0x10]
mov word [ebx + 0x60], ax
movzx ax, byte [ebp - 0xf]
push 0xb
lea edi, [ebx + 0x34]
pop ecx
lea esi, [ebp - 0x3c]
rep movsd dword es:[edi], dword [esi]
mov word [ebx + 0x62], ax
movzx ax, byte [ebp - 0xe]
lea edi, [ebx + 0x68]
lea esi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
mov word [ebx + 0x64], ax
movzx ax, byte [ebp - 0xd]
movsb byte es:[edi], byte [esi]
mov word [ebx + 0x66], ax
xor edi, edi
mov ecx, dword [ebx + 0x4c]
lea eax, [ebx + 0x28]
mov dword [eax], ecx
mov ecx, dword [ebx + 0x34]
mov dword [ebx + 0x2c], ecx
lea ecx, [ebx + 0x30]
push ecx
push eax
mov ecx, ebx
call fcn.010b8431
mov dword [ebx + 0x20], eax
cmp eax, edi
je 0x10b9106
push 2
push dword [ebx + 0x14]
call dword [sym.imp.GDI32.dll_SetBkMode]
push edi
push dword [ebx + 0x14]
call dword [sym.imp.GDI32.dll_SetBkColor]
push 0xffffff
push dword [ebx + 0x14]
call dword [sym.imp.GDI32.dll_SetTextColor]
push dword [ebx + 0x20]
push dword [ebx + 0x14]
call dword [sym.imp.GDI32.dll_SelectObject]
push 0x400
mov dword [ebx + 0x24], eax
lea eax, [ebx + 0x94]
push edi
push eax
mov dword [ebx + 0x90], edi
call sub.msvcrt.dll_memset
xor eax, eax
inc eax
add esp, 0xc
lea edx, [ebx + 0x4b8]
mov dword [ebx + 0x498], 0x15
mov dword [ebx + 0x49c], edi
mov dword [ebx + 0x4a8], edi
mov dword [ebx + 0x4c4], edi
mov dword [ebx + 0x4b0], eax
mov dword [edx], eax
cmp dword [ebx + 0x34], eax
jbe 0x10b8f3a
shl dword [ebx + 0x4b0], 1
inc dword [edx]
mov eax, dword [ebx + 0x4b0]
cmp eax, dword [ebx + 0x34]
jb 0x10b8f27
mov eax, dword [ebx + 0x4b0]
mov ecx, dword [edx]
mov dword [ebx + 0x4cc], eax
mov dword [ebx + 0x4d4], ecx
jmp 0x10b8f5e
shl dword [ebx + 0x4b0], 1
inc dword [edx]
mov eax, dword [ebx + 0x4b0]
cmp eax, dword [ebx + 0x48]
jb 0x10b8f50
jmp 0x10b8f71
shl dword [ebx + 0x4cc], 1
inc dword [ebx + 0x4d4]
mov eax, dword [ebx + 0x4cc]
cmp eax, dword [ebx + 0x4c]
jb 0x10b8f65
mov ecx, dword [ebx + 0x4cc]
mov eax, dword [ebx + 0x4b0]
mov esi, ecx
imul eax, eax
imul esi, ecx
mov dword [ebx + 0x4d0], esi
mov esi, dword [ebx + 0x500]
mov dword [ebp - 0xa0], eax
mov dword [ebx + 0x4b4], eax
cmp esi, edi
je 0x10b8fbe
cmp dword [edx], esi
jbe 0x10b8fb2
mov dword [edx], esi
lea edi, [ebx + 0x4d4]
cmp dword [edi], esi
jbe 0x10b8fbe
mov dword [edi], esi
movzx edi, word [ebx + 0x60]
movzx esi, word [ebx + 0x62]
sub esi, edi
inc esi
mov edi, 0x80
mov dword [ebp - 0x9c], esi
cmp esi, edi
jbe 0x10b8fde
mov dword [ebp - 0x9c], edi
imul eax, dword [ebp - 0x9c]
mov esi, dword [ebx + 0x4b0]
lea edi, [ebx + 0x4bc]
mov dword [edi], esi
lea esi, [ebx + 0x4d8]
mov dword [esi], ecx
cmp eax, dword [ebp - 0xa0]
jbe 0x10b9026
mov eax, dword [edi]
cmp eax, 0x100
jae 0x10b9026
add eax, eax
mov ecx, eax
imul ecx, eax
mov dword [edi], eax
mov eax, dword [ebx + 0x4b4]
imul eax, dword [ebp - 0x9c]
cmp eax, ecx
ja 0x10b9003
mov ecx, dword [edi]
cmp dword [ebx + 0x4cc], ecx
jae 0x10b9032
mov dword [esi], ecx
mov eax, dword [esi]
imul ecx, ecx
push dword [ebx + 0xc]
imul eax, eax
mov dword [ebx + 0x4dc], eax
mov dword [ebx + 0x4c8], eax
lea eax, [ebx + 0x498]
push eax
push 0
push edx
push edi
push edi
push dword [ebx + 8]
mov dword [ebx + 0x4c0], ecx
mov dword [ebx + 0x4ac], ecx
call fcn.010a40d4
test eax, eax
jl 0x10b91bb
push dword [ebx + 0xc]
lea eax, [ebx + 0x498]
push eax
push 0
lea eax, [ebx + 0x4d4]
push eax
push esi
push esi
push dword [ebx + 8]
call fcn.010a40d4
test eax, eax
jl 0x10b91bb
cmp dword [ebx + 0x498], 0x15
jne 0x10b91b6
mov eax, dword [edi]
cmp eax, dword [ebx + 0x4b0]
jb 0x10b91b6
mov eax, dword [esi]
cmp eax, dword [ebx + 0x4cc]
jb 0x10b91b6
cmp dword [ebx + 0x4d4], 1
push 7
lea edi, [ebx + 0x4e0]
pop ecx
lea esi, [ebx + 0x4a8]
rep movsd dword es:[edi], dword [esi]
jbe 0x10b9110
mov eax, dword [ebx + 0x4d0]
push 0x1037760
xor ecx, ecx
push 8
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.010a4206
xor esi, esi
pop ecx
pop ecx
mov dword [ebx + 0x4fc], eax
cmp eax, esi
jne 0x10b9112
mov eax, 0x8007000e
jmp 0x10b91bb
xor esi, esi
xor eax, eax
cmp dword [0x10d2770], esi
je 0x10b913f
lea ecx, [ebx + 0x78]
mov edi, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push ecx
lea eax, [ebx + 0x74]
push eax
push dword [ebx + 0x14]
mov dword [ecx], 0x10
call dword [0x10d279c]
cmp eax, esi
jge 0x10b91b2
jmp 0x10b91bb
push 9
pop ecx
lea edi, [ebp - 0x28]
rep stosd dword es:[edi], eax
lea eax, [ebx + 0x7e]
push esi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x28]
push eax
xor edi, edi
inc edi
push esi
push edi
lea eax, [ebx + 0x64]
push eax
push dword [ebx + 0x14]
mov dword [ebp - 0x28], 0x24
mov dword [ebp - 0xc], edi
cmp dword [0x10d271c], esi
je 0x10b9178
call dword [sym.imp.GDI32.dll_GetCharacterPlacementW]
jmp 0x10b917e
call dword [sym.imp.GDI32.dll_GetCharacterPlacementA]
lea eax, [ebx + 0x7c]
push esi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x28]
push eax
push esi
push edi
lea eax, [ebx + 0x66]
push eax
push dword [ebx + 0x14]
mov dword [ebp - 0x28], 0x24
mov dword [ebp - 0xc], edi
cmp dword [0x10d271c], esi
je 0x10b91ac
call dword [sym.imp.GDI32.dll_GetCharacterPlacementW]
jmp 0x10b91b2
call dword [sym.imp.GDI32.dll_GetCharacterPlacementA]
xor eax, eax
jmp 0x10b91bb
mov eax, 0x88760b59
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0107591b
leave
ret 0xc