Function at 0x108123c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x108e1f8]
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 0x108126e
mov eax, 0x8876086c
jmp 0x10819f5
test ecx, ecx
je 0x1081264
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.01080921
cmp dword [0x109935c], 0
mov dword [ebx + 0xc], eax
jne 0x10814ca
mov dword [0x109935c], 1
call fcn.0106c97e
cmp dword [0x1099318], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
je 0x1081328
mov edi, 0x101f280
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x9c], eax
test eax, eax
jne 0x10812da
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x9c], eax
test eax, eax
je 0x1081328
push 0x101f26c
push dword [ebp - 0x9c]
call esi
mov dword [0x1099360], eax
test eax, eax
je 0x108193e
push 0x101f25c
push dword [ebp - 0x9c]
call esi
mov dword [0x1099364], eax
test eax, eax
je 0x108193e
push 0x101f244
push dword [ebp - 0x9c]
call esi
mov dword [0x1099368], eax
test eax, eax
je 0x108193e
push 0x101f238
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
jne 0x108134e
push 0x101f238
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10814ca
push 0x101f228
push edi
mov dword [0x109936c], 1
call esi
mov dword [0x1099370], eax
test eax, eax
je 0x108193e
push 0x101f21c
push edi
call esi
mov dword [0x1099374], eax
test eax, eax
je 0x108193e
push 0x101f210
push edi
call esi
mov dword [0x1099378], eax
test eax, eax
je 0x108193e
push 0x101f204
push edi
call esi
mov dword [0x109937c], eax
test eax, eax
je 0x108193e
push 0x101f1f4
push edi
call esi
mov dword [0x1099380], eax
test eax, eax
je 0x108193e
push 0x101f1e4
push edi
call esi
mov dword [0x1099384], eax
test eax, eax
je 0x108193e
push 0x101f1d0
push edi
call esi
mov dword [0x1099388], eax
test eax, eax
je 0x108193e
push 0x101f1c0
push edi
call esi
mov dword [0x109938c], eax
test eax, eax
je 0x108193e
push 0x101f1a0
push edi
call esi
mov dword [0x1099390], eax
test eax, eax
je 0x108193e
push 0x101f180
push edi
call esi
mov dword [0x1099394], eax
test eax, eax
je 0x108193e
push 0x101f168
push edi
call esi
mov dword [0x1099398], eax
test eax, eax
je 0x108193e
push 0x101f154
push edi
call esi
mov dword [0x109939c], eax
test eax, eax
je 0x108193e
push 0x101f144
push edi
call esi
mov dword [0x10993a0], eax
test eax, eax
je 0x108193e
push 0x101f130
push edi
call esi
mov dword [0x10993a4], eax
test eax, eax
je 0x108193e
push 0x101f11c
push edi
call esi
mov dword [0x10993a8], eax
test eax, eax
je 0x108193e
push 0x101f108
push edi
call esi
mov dword [0x10993ac], eax
test eax, eax
je 0x108193e
lea eax, [ebp - 0x9c]
push eax
push 0x10993bc
call dword [0x1099388]
push 0x10993b0
push 0x400
call dword [0x1099390]
xor esi, esi
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebx + 0x14], eax
cmp eax, esi
je 0x108193e
push 1
push eax
call dword [sym.imp.GDI32.dll_SetMapMode]
cmp dword [0x1099318], esi
jne 0x10814fa
push 1
push dword [ebx + 0x14]
call dword [sym.imp.GDI32.dll_SetTextAlign]
cmp dword [ebp + 0x10], esi
je 0x10815c3
cmp dword [0x1099318], esi
jne 0x108154c
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 0x10815c3
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 0x10815ab
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 0x1081634
jmp 0x108193e
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 0x108161d
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 0x108193e
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 [0x1099318], edi
je 0x1081675
lea eax, [ebx + 0x34]
push eax
push dword [ebx + 0x14]
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
jmp 0x10816bb
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.01080c69
mov dword [ebx + 0x20], eax
cmp eax, edi
je 0x108193e
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 0x1081772
shl dword [ebx + 0x4b0], 1
inc dword [edx]
mov eax, dword [ebx + 0x4b0]
cmp eax, dword [ebx + 0x34]
jb 0x108175f
mov eax, dword [ebx + 0x4b0]
mov ecx, dword [edx]
mov dword [ebx + 0x4cc], eax
mov dword [ebx + 0x4d4], ecx
jmp 0x1081796
shl dword [ebx + 0x4b0], 1
inc dword [edx]
mov eax, dword [ebx + 0x4b0]
cmp eax, dword [ebx + 0x48]
jb 0x1081788
jmp 0x10817a9
shl dword [ebx + 0x4cc], 1
inc dword [ebx + 0x4d4]
mov eax, dword [ebx + 0x4cc]
cmp eax, dword [ebx + 0x4c]
jb 0x108179d
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 0x10817f6
cmp dword [edx], esi
jbe 0x10817ea
mov dword [edx], esi
lea edi, [ebx + 0x4d4]
cmp dword [edi], esi
jbe 0x10817f6
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 0x1081816
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 0x108185e
mov eax, dword [edi]
cmp eax, 0x100
jae 0x108185e
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 0x108183b
mov ecx, dword [edi]
cmp dword [ebx + 0x4cc], ecx
jae 0x108186a
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.010679b3
test eax, eax
jl 0x10819f3
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.010679b3
test eax, eax
jl 0x10819f3
cmp dword [ebx + 0x498], 0x15
jne 0x10819ee
mov eax, dword [edi]
cmp eax, dword [ebx + 0x4b0]
jb 0x10819ee
mov eax, dword [esi]
cmp eax, dword [ebx + 0x4cc]
jb 0x10819ee
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 0x1081948
mov eax, dword [ebx + 0x4d0]
push 0x101af58
xor ecx, ecx
push 8
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0106ca38
xor esi, esi
pop ecx
pop ecx
mov dword [ebx + 0x4fc], eax
cmp eax, esi
jne 0x108194a
mov eax, 0x8007000e
jmp 0x10819f3
xor esi, esi
xor eax, eax
cmp dword [0x109936c], esi
je 0x1081977
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 [0x1099398]
cmp eax, esi
jge 0x10819ea
jmp 0x10819f3
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 [0x1099318], esi
je 0x10819b0
call dword [sym.imp.GDI32.dll_GetCharacterPlacementW]
jmp 0x10819b6
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 [0x1099318], esi
je 0x10819e4
call dword [sym.imp.GDI32.dll_GetCharacterPlacementW]
jmp 0x10819ea
call dword [sym.imp.GDI32.dll_GetCharacterPlacementA]
xor eax, eax
jmp 0x10819f3
mov eax, 0x88760b59
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.01034b69
leave
ret 0xc