Function at 0x42c1e6
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x60e890]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
test eax, eax
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xa0], ecx
je 0x42c210
test ecx, ecx
jne 0x42c21a
mov eax, 0x8876086c
jmp 0x42c960
push esi
push edi
mov dword [ebx + 8], eax
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
cmp dword [0x60e8c4], 0
jne 0x42c467
mov dword [0x60e8c4], 1
call fcn.004291fb
cmp dword [0x60e8ac], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
je 0x42c2c5
mov edi, 0x401720
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
mov dword [ebp - 0x9c], eax
jne 0x42c277
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [ebp - 0x9c], eax
je 0x42c2c5
push 0x40170c
push dword [ebp - 0x9c]
call esi
test eax, eax
mov dword [0x60e8c8], eax
je 0x42c8a9
push 0x4016fc
push dword [ebp - 0x9c]
call esi
test eax, eax
mov dword [0x60e8cc], eax
je 0x42c8a9
push 0x4016e4
push dword [ebp - 0x9c]
call esi
test eax, eax
mov dword [0x60e8d0], eax
je 0x42c8a9
push 0x4016d8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
jne 0x42c2eb
push 0x4016d8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x42c467
push 0x4016c8
push edi
mov dword [0x60e8d4], 1
call esi
test eax, eax
mov dword [0x60e8d8], eax
je 0x42c8a9
push 0x4016bc
push edi
call esi
test eax, eax
mov dword [0x60e8dc], eax
je 0x42c8a9
push 0x4016b0
push edi
call esi
test eax, eax
mov dword [0x60e8e0], eax
je 0x42c8a9
push 0x4016a4
push edi
call esi
test eax, eax
mov dword [0x60e8e4], eax
je 0x42c8a9
push 0x401694
push edi
call esi
test eax, eax
mov dword [0x60e8e8], eax
je 0x42c8a9
push 0x401684
push edi
call esi
test eax, eax
mov dword [0x60e8ec], eax
je 0x42c8a9
push 0x401670
push edi
call esi
test eax, eax
mov dword [0x60e8f0], eax
je 0x42c8a9
push 0x401660
push edi
call esi
test eax, eax
mov dword [0x60e8f4], eax
je 0x42c8a9
push 0x401640
push edi
call esi
test eax, eax
mov dword [0x60e8f8], eax
je 0x42c8a9
push 0x401620
push edi
call esi
test eax, eax
mov dword [0x60e8fc], eax
je 0x42c8a9
push 0x401608
push edi
call esi
test eax, eax
mov dword [0x60e900], eax
je 0x42c8a9
push 0x4015f4
push edi
call esi
test eax, eax
mov dword [0x60e904], eax
je 0x42c8a9
push 0x4015e4
push edi
call esi
test eax, eax
mov dword [0x60e908], eax
je 0x42c8a9
push 0x4015d0
push edi
call esi
test eax, eax
mov dword [0x60e90c], eax
je 0x42c8a9
push 0x4015bc
push edi
call esi
test eax, eax
mov dword [0x60e910], eax
je 0x42c8a9
push 0x4015a8
push edi
call esi
test eax, eax
mov dword [0x60e914], eax
je 0x42c8a9
lea eax, [ebp - 0x9c]
push eax
push 0x60e924
call dword [0x60e8f0]
push 0x60e918
push 0x400
call dword [0x60e8f8]
xor esi, esi
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
cmp eax, esi
mov dword [ebx + 0x10], eax
je 0x42c8a9
push 1
push eax
call dword [sym.imp.GDI32.dll_SetMapMode]
cmp dword [0x60e8ac], esi
jne 0x42c497
push 1
push dword [ebx + 0x10]
call dword [sym.imp.GDI32.dll_SetTextAlign]
cmp dword [ebp + 0x10], esi
je 0x42c54e
cmp dword [0x60e8ac], esi
jne 0x42c4e9
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 0x42c54e
push 0x17
pop ecx
xor eax, eax
lea edi, [ebp - 0x60]
rep stosd dword es:[edi], eax
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]
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 0x42c542
or byte [ebp - 0x46], 4
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
jmp 0x42c5ac
push 0xf
pop ecx
xor eax, eax
lea edi, [ebp - 0x40]
rep stosd dword es:[edi], eax
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]
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 0x42c5a2
or byte [ebp - 0x26], 4
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
test eax, eax
mov dword [ebx + 0x14], eax
je 0x42c8a9
push dword [ebx + 0x14]
mov eax, dword [ebp - 0xa0]
mov eax, dword [eax + 0xc]
push dword [ebx + 0x10]
mov dword [ebx + 0x4fc], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebx + 0x10]
mov dword [ebx + 0x18], eax
call dword [sym.imp.GDI32.dll_GetFontLanguageInfo]
mov dword [ebx + 0x6c], eax
cmp dword [0x60e8ac], 0
je 0x42c5f9
lea eax, [ebx + 0x30]
push eax
push dword [ebx + 0x10]
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
jmp 0x42c63d
lea eax, [ebp - 0x3c]
push eax
push dword [ebx + 0x10]
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
movzx ax, byte [ebp - 0x10]
mov word [ebx + 0x5c], ax
movzx ax, byte [ebp - 0xf]
push 0xb
mov word [ebx + 0x5e], ax
movzx ax, byte [ebp - 0xe]
lea edi, [ebx + 0x30]
pop ecx
lea esi, [ebp - 0x3c]
rep movsd dword es:[edi], dword [esi]
lea edi, [ebx + 0x64]
lea esi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
mov word [ebx + 0x60], ax
movzx ax, byte [ebp - 0xd]
movsb byte es:[edi], byte [esi]
mov word [ebx + 0x62], ax
mov ecx, dword [ebx + 0x48]
lea eax, [ebx + 0x24]
mov dword [eax], ecx
mov ecx, dword [ebx + 0x30]
mov dword [ebx + 0x28], ecx
lea ecx, [ebx + 0x2c]
push ecx
push eax
mov ecx, ebx
call fcn.0042bc3e
xor esi, esi
cmp eax, esi
mov dword [ebx + 0x1c], eax
je 0x42c8a9
push 2
push dword [ebx + 0x10]
call dword [sym.imp.GDI32.dll_SetBkMode]
push esi
push dword [ebx + 0x10]
call dword [sym.imp.GDI32.dll_SetBkColor]
push 0xffffff
push dword [ebx + 0x10]
call dword [sym.imp.GDI32.dll_SetTextColor]
push dword [ebx + 0x1c]
push dword [ebx + 0x10]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebx + 0x20], eax
xor eax, eax
mov ecx, 0x100
lea edi, [ebx + 0x90]
mov dword [ebx + 0x8c], esi
rep stosd dword es:[edi], eax
inc eax
cmp dword [ebx + 0x30], eax
lea edx, [ebx + 0x4b4]
mov dword [ebx + 0x494], 0x15
mov dword [ebx + 0x498], esi
mov dword [ebx + 0x4a4], esi
mov dword [ebx + 0x4c0], esi
mov dword [ebx + 0x4ac], eax
mov dword [edx], eax
jbe 0x42c6ee
shl dword [ebx + 0x4ac], 1
inc dword [edx]
mov eax, dword [ebx + 0x4ac]
cmp eax, dword [ebx + 0x30]
jb 0x42c6db
mov eax, dword [ebx + 0x4ac]
mov ecx, dword [edx]
mov dword [ebx + 0x4c8], eax
mov dword [ebx + 0x4d0], ecx
jmp 0x42c712
shl dword [ebx + 0x4ac], 1
inc dword [edx]
mov eax, dword [ebx + 0x4ac]
cmp eax, dword [ebx + 0x44]
jb 0x42c704
jmp 0x42c725
shl dword [ebx + 0x4c8], 1
inc dword [ebx + 0x4d0]
mov eax, dword [ebx + 0x4c8]
cmp eax, dword [ebx + 0x48]
jb 0x42c719
mov esi, dword [ebx + 0x4c8]
mov ecx, dword [ebx + 0x4ac]
mov edi, esi
mov eax, ecx
imul edi, esi
mov esi, dword [ebx + 0x4fc]
imul eax, ecx
test esi, esi
mov dword [ebp - 0xa0], eax
mov dword [ebx + 0x4b0], eax
mov dword [ebx + 0x4cc], edi
je 0x42c774
cmp dword [edx], esi
jbe 0x42c768
mov dword [edx], esi
lea edi, [ebx + 0x4d0]
cmp dword [edi], esi
jbe 0x42c774
mov dword [edi], esi
movzx edi, word [ebx + 0x5c]
movzx esi, word [ebx + 0x5e]
sub esi, edi
inc esi
mov edi, 0x80
cmp esi, edi
mov dword [ebp - 0x9c], esi
jbe 0x42c794
mov dword [ebp - 0x9c], edi
imul eax, dword [ebp - 0x9c]
cmp eax, dword [ebp - 0xa0]
lea edi, [ebx + 0x4b8]
mov dword [edi], ecx
mov ecx, dword [ebx + 0x4c8]
lea esi, [ebx + 0x4d4]
mov dword [esi], ecx
jbe 0x42c7dc
mov eax, dword [edi]
cmp eax, 0x100
jae 0x42c7dc
add eax, eax
mov ecx, eax
imul ecx, eax
mov dword [edi], eax
mov eax, dword [ebx + 0x4b0]
imul eax, dword [ebp - 0x9c]
cmp eax, ecx
ja 0x42c7b9
mov ecx, dword [edi]
cmp dword [ebx + 0x4c8], ecx
jae 0x42c7e8
mov dword [esi], ecx
mov eax, dword [esi]
imul ecx, ecx
imul eax, eax
push 1
mov dword [ebx + 0x4d8], eax
mov dword [ebx + 0x4c4], eax
lea eax, [ebx + 0x494]
push eax
push 0
push edx
push edi
push edi
push dword [ebx + 8]
mov dword [ebx + 0x4bc], ecx
mov dword [ebx + 0x4a8], ecx
call sym.d3dx9_24.dll_D3DXCheckTextureRequirements
test eax, eax
jl 0x42c95e
push 1
lea eax, [ebx + 0x494]
push eax
push 0
lea eax, [ebx + 0x4d0]
push eax
push esi
push esi
push dword [ebx + 8]
call sym.d3dx9_24.dll_D3DXCheckTextureRequirements
test eax, eax
jl 0x42c95e
cmp dword [ebx + 0x494], 0x15
jne 0x42c959
mov eax, dword [edi]
cmp eax, dword [ebx + 0x4ac]
jb 0x42c959
mov eax, dword [esi]
cmp eax, dword [ebx + 0x4c8]
jb 0x42c959
cmp dword [ebx + 0x4d0], 1
push 7
lea edi, [ebx + 0x4dc]
pop ecx
lea esi, [ebx + 0x4a4]
rep movsd dword es:[edi], dword [esi]
jbe 0x42c8b3
mov eax, dword [ebx + 0x4cc]
shl eax, 3
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
xor esi, esi
cmp eax, esi
pop ecx
mov dword [ebx + 0x4f8], eax
jne 0x42c8b5
mov eax, 0x8007000e
jmp 0x42c95e
xor esi, esi
xor eax, eax
cmp dword [0x60e8d4], esi
je 0x42c8e2
lea ecx, [ebx + 0x74]
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 + 0x70]
push eax
push dword [ebx + 0x10]
mov dword [ecx], 0x10
call dword [0x60e900]
cmp eax, esi
jge 0x42c955
jmp 0x42c95e
push 9
pop ecx
lea edi, [ebp - 0x28]
rep stosd dword es:[edi], eax
lea eax, [ebx + 0x7a]
push esi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x28]
push eax
xor edi, edi
inc edi
cmp dword [0x60e8ac], esi
push esi
push edi
lea eax, [ebx + 0x60]
push eax
push dword [ebx + 0x10]
mov dword [ebp - 0x28], 0x24
mov dword [ebp - 0xc], edi
je 0x42c91b
call dword [sym.imp.GDI32.dll_GetCharacterPlacementW]
jmp 0x42c921
call dword [sym.imp.GDI32.dll_GetCharacterPlacementA]
cmp dword [0x60e8ac], esi
lea eax, [ebx + 0x78]
push esi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x28]
push eax
push esi
push edi
lea eax, [ebx + 0x62]
push eax
push dword [ebx + 0x10]
mov dword [ebp - 0x28], 0x24
mov dword [ebp - 0xc], edi
je 0x42c94f
call dword [sym.imp.GDI32.dll_GetCharacterPlacementW]
jmp 0x42c955
call dword [sym.imp.GDI32.dll_GetCharacterPlacementA]
xor eax, eax
jmp 0x42c95e
mov eax, 0x88760b59
pop edi
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.005f059d
leave
ret 0xc