Function at 0x1001bc40
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x101d9590]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
mov dword [ebp - 0x9c], edi
test esi, esi
jne 0x1001bc74
mov eax, 0x8876086c
jmp 0x1001c4ab
test edi, edi
je 0x1001bc6a
mov dword [ebx + 8], esi
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov eax, dword [esi]
and dword [ebp - 0xa0], 0
lea ecx, [ebp - 0xa0]
push ecx
push 0x10001a88
push esi
call dword [eax]
test eax, eax
jns 0x1001bca3
and dword [ebx + 0x10], 0
jmp 0x1001bcbd
mov eax, dword [ebp - 0xa0]
mov dword [ebx + 0x10], 1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [ebp - 0xa0], 0
cmp dword [0x101d9930], 0
jne 0x1001bedf
mov dword [0x101d9930], 1
call fcn.10018843
cmp dword [0x101d9914], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
je 0x1001bd47
push 0x10001938
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
jne 0x1001bd0a
push 0x10001938
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x1001bd47
push 0x10001924
push esi
call edi
mov dword [0x101d9934], eax
test eax, eax
je 0x1001bd3d
push 0x10001914
push esi
call edi
mov dword [0x101d9938], eax
test eax, eax
je 0x1001bd3d
push 0x100018fc
push esi
call edi
mov dword [0x101d993c], eax
test eax, eax
jne 0x1001bd47
mov eax, 0x8007000e
jmp 0x1001c4ab
push 0x100018f0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
jne 0x1001bd6d
push 0x100018f0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x1001bed9
push 0x100018e0
push esi
mov dword [0x101d9940], 1
call edi
mov dword [0x101d9944], eax
test eax, eax
je 0x1001bd3d
push 0x100018d4
push esi
call edi
mov dword [0x101d9948], eax
test eax, eax
je 0x1001bd3d
push 0x100018c8
push esi
call edi
mov dword [0x101d994c], eax
test eax, eax
je 0x1001bd3d
push 0x100018bc
push esi
call edi
mov dword [0x101d9950], eax
test eax, eax
je 0x1001bd3d
push 0x100018ac
push esi
call edi
mov dword [0x101d9954], eax
test eax, eax
je 0x1001bd3d
push 0x1000189c
push esi
call edi
mov dword [0x101d9958], eax
test eax, eax
je 0x1001bd3d
push 0x10001888
push esi
call edi
mov dword [0x101d995c], eax
test eax, eax
je 0x1001bd3d
push 0x10001878
push esi
call edi
mov dword [0x101d9960], eax
test eax, eax
je 0x1001bd3d
push 0x10001858
push esi
call edi
mov dword [0x101d9964], eax
test eax, eax
je 0x1001bd3d
push 0x10001838
push esi
call edi
mov dword [0x101d9968], eax
test eax, eax
je 0x1001bd3d
push 0x10001820
push esi
call edi
mov dword [0x101d996c], eax
test eax, eax
je 0x1001bd3d
push 0x1000180c
push esi
call edi
mov dword [0x101d9970], eax
test eax, eax
je 0x1001bd3d
push 0x100017fc
push esi
call edi
mov dword [0x101d9974], eax
test eax, eax
je 0x1001bd3d
push 0x100017e8
push esi
call edi
mov dword [0x101d9978], eax
test eax, eax
je 0x1001bd3d
push 0x100017d4
push esi
call edi
mov dword [0x101d997c], eax
test eax, eax
je 0x1001bd3d
push 0x100017c0
push esi
call edi
mov dword [0x101d9980], eax
test eax, eax
je 0x1001bd3d
lea eax, [ebp - 0xa4]
push eax
push 0x101d9990
call dword [0x101d995c]
push 0x101d9984
push 0x400
call dword [0x101d9964]
mov edi, dword [ebp - 0x9c]
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebx + 0x14], eax
test eax, eax
je 0x1001bd3d
push 1
push eax
call dword [sym.imp.GDI32.dll_SetMapMode]
mov eax, dword [0x101d9914]
test eax, eax
jne 0x1001bf14
push 1
push dword [ebx + 0x14]
call dword [sym.imp.GDI32.dll_SetTextAlign]
mov eax, dword [0x101d9914]
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1001bfc6
test eax, eax
jne 0x1001bf60
push 6
pop ecx
mov esi, edi
lea edi, [ebp - 0x98]
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
push ecx
push ecx
push 0x20
lea eax, [ebp - 0x80]
push eax
mov eax, dword [ebp - 0x9c]
push 0xffffffffffffffff
add eax, 0x18
push eax
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea edi, [ebp - 0x98]
mov byte [ebp - 0x61], 0
mov dword [ebp - 0x9c], edi
xor ecx, ecx
test ecx, ecx
je 0x1001bfc6
push 0x5c
lea eax, [ebp - 0x60]
push 0
push eax
call sub.msvcrt.dll_memset
mov eax, dword [edi]
mov dword [ebp - 0x60], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x5c], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0x50], eax
mov al, byte [edi + 0x10]
mov byte [ebp - 0x4c], al
mov al, byte [edi + 0x14]
mov byte [ebp - 0x49], al
mov al, byte [edi + 0x15]
mov byte [ebp - 0x48], al
mov al, byte [edi + 0x16]
add esp, 0xc
mov byte [ebp - 0x46], al
mov al, byte [edi + 0x17]
lea esi, [edi + 0x18]
push 0x10
mov byte [ebp - 0x45], al
pop ecx
lea edi, [ebp - 0x44]
rep movsd dword es:[edi], dword [esi]
mov al, byte [ebp - 0x46]
test al, 7
jne 0x1001bfba
or al, 4
mov byte [ebp - 0x46], al
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
jmp 0x1001c026
push 0x3c
lea eax, [ebp - 0x40]
push 0
push eax
call sub.msvcrt.dll_memset
mov eax, dword [edi]
mov dword [ebp - 0x40], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x3c], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0x30], eax
mov al, byte [edi + 0x10]
mov byte [ebp - 0x2c], al
mov al, byte [edi + 0x14]
mov byte [ebp - 0x29], al
mov al, byte [edi + 0x15]
mov byte [ebp - 0x28], al
mov al, byte [edi + 0x16]
add esp, 0xc
mov byte [ebp - 0x26], al
mov al, byte [edi + 0x17]
lea esi, [edi + 0x18]
push 8
mov byte [ebp - 0x25], al
pop ecx
lea edi, [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
mov al, byte [ebp - 0x26]
test al, 7
jne 0x1001c01c
or al, 4
mov byte [ebp - 0x26], al
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov dword [ebx + 0x18], eax
test eax, eax
je 0x1001bd3d
push dword [ebx + 0x18]
mov eax, dword [ebp - 0x9c]
mov eax, dword [eax + 0xc]
push dword [ebx + 0x14]
mov dword [ebx + 0x518], 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 + 0x74], eax
cmp dword [0x101d9914], 0
je 0x1001c073
lea esi, [ebx + 0x34]
push esi
push dword [ebx + 0x14]
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
jmp 0x1001c0b6
lea eax, [ebp - 0x3c]
push eax
push dword [ebx + 0x14]
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
movzx eax, byte [ebp - 0x10]
mov word [ebx + 0x60], ax
movzx eax, 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 eax, byte [ebp - 0xe]
lea edi, [ebx + 0x68]
lea esi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
mov word [ebx + 0x64], ax
movzx eax, byte [ebp - 0xd]
movsb byte es:[edi], byte [esi]
mov word [ebx + 0x66], ax
lea esi, [ebx + 0x34]
push esi
call fcn.1001b3ea
mov ecx, dword [ebx + 0x4c]
add ecx, eax
mov dword [ebx + 0x70], eax
mov eax, dword [esi]
mov dword [ebx + 0x2c], eax
lea edx, [ebx + 0x28]
lea eax, [ebx + 0x30]
push eax
mov dword [edx], ecx
push edx
mov ecx, ebx
call fcn.1001b693
mov dword [ebx + 0x20], eax
test eax, eax
je 0x1001bd3d
push 2
push dword [ebx + 0x14]
call dword [sym.imp.GDI32.dll_SetBkMode]
xor edi, edi
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 + 0x98]
push edi
push eax
mov dword [ebx + 0x94], edi
call sub.msvcrt.dll_memset
xor ecx, ecx
xor edx, edx
inc edx
add esp, 0xc
lea eax, [ebx + 0x4c8]
mov dword [ebx + 0x49c], 0x15
mov dword [ebx + 0x4a0], ecx
mov dword [ebx + 0x4b4], ecx
mov dword [ebx + 0x4b8], ecx
mov dword [ebx + 0x4d4], ecx
mov dword [ebx + 0x4d8], ecx
mov dword [ebx + 0x4c0], edx
mov dword [eax], edx
cmp dword [esi], edx
jbe 0x1001c190
mov ecx, edx
add ecx, ecx
inc edx
mov dword [eax], edx
mov dword [ebx + 0x4c0], ecx
lea eax, [ebx + 0x4c8]
cmp ecx, dword [esi]
jb 0x1001c175
lea eax, [ebx + 0x4c8]
mov edx, dword [eax]
mov ecx, dword [ebx + 0x4c0]
mov eax, dword [ebx + 0x48]
add eax, dword [ebx + 0x70]
mov dword [ebx + 0x4e0], ecx
mov dword [ebx + 0x4e8], edx
jmp 0x1001c1c1
add ecx, ecx
inc edx
mov dword [ebx + 0x4c0], ecx
mov dword [ebx + 0x4c8], edx
mov eax, dword [ebx + 0x70]
add eax, dword [ebx + 0x48]
cmp ecx, eax
jb 0x1001c1ac
mov eax, dword [ebx + 0x4c]
add eax, dword [ebx + 0x70]
mov ecx, dword [ebx + 0x4e0]
cmp ecx, eax
jae 0x1001c1f4
mov edx, dword [ebx + 0x4e8]
add ecx, ecx
inc edx
mov dword [ebx + 0x4e0], ecx
mov dword [ebx + 0x4e8], edx
mov eax, dword [ebx + 0x70]
add eax, dword [ebx + 0x4c]
cmp ecx, eax
jb 0x1001c1db
mov eax, dword [ebx + 0x4c0]
mov edx, dword [ebx + 0x4e0]
mov ecx, eax
imul ecx, eax
mov eax, edx
imul eax, edx
mov dword [ebx + 0x4e4], eax
mov eax, dword [ebx + 0x518]
mov dword [ebx + 0x4c4], ecx
test eax, eax
je 0x1001c23c
cmp dword [ebx + 0x4c8], eax
jbe 0x1001c22e
mov dword [ebx + 0x4c8], eax
cmp dword [ebx + 0x4e8], eax
jbe 0x1001c23c
mov dword [ebx + 0x4e8], eax
movzx eax, word [ebx + 0x60]
movzx edx, word [ebx + 0x62]
sub edx, eax
inc edx
mov eax, 0x80
cmp edx, eax
jbe 0x1001c252
mov edx, eax
mov eax, dword [ebx + 0x4c0]
lea esi, [ebx + 0x4cc]
mov dword [esi], eax
mov eax, dword [ebx + 0x4e0]
lea edi, [ebx + 0x4ec]
mov dword [edi], eax
mov eax, edx
imul eax, ecx
jmp 0x1001c290
mov eax, dword [esi]
cmp eax, 0x100
jae 0x1001c294
add eax, eax
mov ecx, eax
mov dword [esi], eax
imul ecx, ecx
mov eax, dword [ebx + 0x4c4]
imul eax, edx
cmp eax, ecx
ja 0x1001c275
mov ecx, dword [esi]
cmp dword [ebx + 0x4e0], ecx
jae 0x1001c2a0
mov dword [edi], ecx
mov eax, dword [edi]
imul ecx, ecx
imul eax, eax
mov dword [ebx + 0x4d0], ecx
mov dword [ebx + 0x4bc], ecx
xor ecx, ecx
mov dword [ebx + 0x4f0], eax
mov dword [ebx + 0x4dc], eax
lea eax, [ebx + 0x49c]
cmp dword [ebx + 0x10], ecx
je 0x1001c3fe
push ecx
push eax
push ecx
lea eax, [ebx + 0x4c8]
push eax
push esi
push esi
push dword [ebx + 8]
call sym.d3dx9_43.dll_D3DXCheckTextureRequirements
test eax, eax
js 0x1001c4ab
push 0
lea eax, [ebx + 0x49c]
push eax
push 0
lea eax, [ebx + 0x4e8]
push eax
push edi
push edi
push dword [ebx + 8]
call sym.d3dx9_43.dll_D3DXCheckTextureRequirements
test eax, eax
js 0x1001c4ab
push 2
lea eax, [ebx + 0x49c]
push eax
push 0
lea eax, [ebx + 0x4c8]
push eax
push esi
push esi
push dword [ebx + 8]
call sym.d3dx9_43.dll_D3DXCheckTextureRequirements
test eax, eax
js 0x1001c4ab
push 2
lea eax, [ebx + 0x49c]
push eax
push 0
lea eax, [ebx + 0x4e8]
push eax
push edi
push edi
push dword [ebx + 8]
call sym.d3dx9_43.dll_D3DXCheckTextureRequirements
test eax, eax
js 0x1001c4ab
cmp dword [ebx + 0x49c], 0x15
jne 0x1001c4a6
mov eax, dword [esi]
cmp eax, dword [ebx + 0x4c0]
jb 0x1001c4a6
mov eax, dword [edi]
cmp eax, dword [ebx + 0x4e0]
jb 0x1001c4a6
cmp dword [ebx + 0x4e8], 1
push 8
pop edx
lea edi, [ebx + 0x4f4]
mov ecx, edx
lea esi, [ebx + 0x4b4]
rep movsd dword es:[edi], dword [esi]
jbe 0x1001c3ca
mov eax, dword [ebx + 0x4e4]
xor ecx, ecx
mul edx
seto cl
push 0x100014bc
neg ecx
or ecx, eax
push ecx
call fcn.10018970
pop ecx
pop ecx
mov dword [ebx + 0x514], eax
test eax, eax
je 0x1001bd3d
xor eax, eax
cmp dword [0x101d9940], eax
je 0x1001c422
lea ecx, [ebx + 0x7c]
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 + 0x78]
push eax
push dword [ebx + 0x14]
mov dword [ecx], 0x10
call dword [0x101d996c]
test eax, eax
jns 0x1001c4a2
jmp 0x1001c4ab
push 1
push eax
push ecx
lea eax, [ebx + 0x4c8]
push eax
push esi
push esi
push dword [ebx + 8]
call sym.d3dx9_43.dll_D3DXCheckTextureRequirements
test eax, eax
js 0x1001c4ab
push 1
jmp 0x1001c337
cmp dword [0x101d9914], 0
mov esi, dword [sym.imp.GDI32.dll_GetCharacterPlacementA]
push 9
pop ecx
lea edi, [ebp - 0x28]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.GDI32.dll_GetCharacterPlacementW]
lea eax, [ebx + 0x82]
push 0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x28]
push eax
push 0
push 1
lea eax, [ebx + 0x64]
push eax
push dword [ebx + 0x14]
mov dword [ebp - 0x28], 0x24
mov dword [ebp - 0xc], 1
je 0x1001c46b
call edi
jmp 0x1001c46d
call esi
lea eax, [ebx + 0x80]
push 0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x28]
push eax
xor ecx, ecx
inc ecx
cmp dword [0x101d9914], 0
push 0
push ecx
lea eax, [ebx + 0x66]
push eax
push dword [ebx + 0x14]
mov dword [ebp - 0x28], 0x24
mov dword [ebp - 0xc], ecx
je 0x1001c4a0
call edi
jmp 0x1001c4a2
call esi
xor eax, eax
jmp 0x1001c4ab
mov eax, 0x88760b59
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101becf5
leave
ret 0xc