Function at 0x468df5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x73cb90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp esi, edi
mov ebx, ecx
mov dword [ebp - 0xa0], eax
jne 0x468e2b
mov eax, 0x8876086c
jmp 0x469652
cmp eax, edi
je 0x468e21
mov dword [ebx + 8], esi
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov eax, dword [esi]
lea ecx, [ebp - 0xa4]
push ecx
push 0x401a88
push esi
mov dword [ebp - 0xa4], edi
call dword [eax]
test eax, eax
jge 0x468e58
mov dword [ebx + 0x10], edi
jmp 0x468e71
mov eax, dword [ebp - 0xa4]
mov dword [ebx + 0x10], 1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0xa4], edi
cmp dword [0x73e850], edi
jne 0x46909f
mov dword [0x73e850], 1
call fcn.00465e4d
cmp dword [0x73e834], edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
je 0x468f0d
mov edi, 0x401938
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
mov dword [ebp - 0x9c], eax
jne 0x468ec1
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [ebp - 0x9c], eax
je 0x468f0d
push 0x401924
push dword [ebp - 0x9c]
call esi
test eax, eax
mov dword [0x73e854], eax
je 0x468f03
push 0x401914
push dword [ebp - 0x9c]
call esi
test eax, eax
mov dword [0x73e858], eax
je 0x468f03
push 0x4018fc
push dword [ebp - 0x9c]
call esi
test eax, eax
mov dword [0x73e85c], eax
jne 0x468f0d
mov eax, 0x8007000e
jmp 0x469652
push 0x4018f0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
jne 0x468f33
push 0x4018f0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x46909f
push 0x4018e0
push edi
mov dword [0x73e860], 1
call esi
test eax, eax
mov dword [0x73e864], eax
je 0x468f03
push 0x4018d4
push edi
call esi
test eax, eax
mov dword [0x73e868], eax
je 0x468f03
push 0x4018c8
push edi
call esi
test eax, eax
mov dword [0x73e86c], eax
je 0x468f03
push 0x4018bc
push edi
call esi
test eax, eax
mov dword [0x73e870], eax
je 0x468f03
push 0x4018ac
push edi
call esi
test eax, eax
mov dword [0x73e874], eax
je 0x468f03
push 0x40189c
push edi
call esi
test eax, eax
mov dword [0x73e878], eax
je 0x468f03
push 0x401888
push edi
call esi
test eax, eax
mov dword [0x73e87c], eax
je 0x468f03
push 0x401878
push edi
call esi
test eax, eax
mov dword [0x73e880], eax
je 0x468f03
push 0x401858
push edi
call esi
test eax, eax
mov dword [0x73e884], eax
je 0x468f03
push 0x401838
push edi
call esi
test eax, eax
mov dword [0x73e888], eax
je 0x468f03
push 0x401820
push edi
call esi
test eax, eax
mov dword [0x73e88c], eax
je 0x468f03
push 0x40180c
push edi
call esi
test eax, eax
mov dword [0x73e890], eax
je 0x468f03
push 0x4017fc
push edi
call esi
test eax, eax
mov dword [0x73e894], eax
je 0x468f03
push 0x4017e8
push edi
call esi
test eax, eax
mov dword [0x73e898], eax
je 0x468f03
push 0x4017d4
push edi
call esi
test eax, eax
mov dword [0x73e89c], eax
je 0x468f03
push 0x4017c0
push edi
call esi
test eax, eax
mov dword [0x73e8a0], eax
je 0x468f03
lea eax, [ebp - 0x9c]
push eax
push 0x73e8b0
call dword [0x73e87c]
push 0x73e8a4
push 0x400
call dword [0x73e884]
xor esi, esi
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
cmp eax, esi
mov dword [ebx + 0x14], eax
je 0x468f03
push 1
push eax
call dword [sym.imp.GDI32.dll_SetMapMode]
cmp dword [0x73e834], esi
jne 0x4690cf
push 1
push dword [ebx + 0x14]
call dword [sym.imp.GDI32.dll_SetTextAlign]
cmp dword [ebp + 0x10], esi
je 0x469198
cmp dword [0x73e834], esi
jne 0x469121
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 0x469198
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 0x469180
or byte [ebp - 0x46], 4
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
xor esi, esi
cmp eax, esi
mov dword [ebx + 0x18], eax
jne 0x469209
jmp 0x468f03
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 0x4691f2
or byte [ebp - 0x26], 4
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
test eax, eax
mov dword [ebx + 0x18], eax
je 0x468f03
xor esi, esi
push dword [ebx + 0x18]
mov eax, dword [ebp - 0xa0]
mov eax, dword [eax + 0xc]
push dword [ebx + 0x14]
mov dword [ebx + 0x514], 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 [0x73e834], esi
je 0x46924a
lea eax, [ebx + 0x34]
push eax
push dword [ebx + 0x14]
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
jmp 0x469290
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 esi, esi
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.00468871
cmp eax, esi
mov dword [ebx + 0x20], eax
je 0x468f03
push 2
push dword [ebx + 0x14]
call dword [sym.imp.GDI32.dll_SetBkMode]
push esi
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 esi
push eax
mov dword [ebx + 0x90], esi
call sub.msvcrt.dll_memset
xor ecx, ecx
inc ecx
add esp, 0xc
cmp dword [ebx + 0x34], ecx
lea eax, [ebx + 0x4c4]
mov dword [ebx + 0x498], 0x15
mov dword [ebx + 0x49c], esi
mov dword [ebx + 0x4b0], esi
mov dword [ebx + 0x4b4], esi
mov dword [ebx + 0x4d0], esi
mov dword [ebx + 0x4d4], esi
mov dword [ebx + 0x4bc], ecx
mov dword [eax], ecx
jbe 0x469353
shl dword [ebx + 0x4bc], 1
inc dword [eax]
mov ecx, dword [ebx + 0x4bc]
cmp ecx, dword [ebx + 0x34]
jb 0x469340
mov ecx, dword [ebx + 0x4bc]
mov edx, dword [eax]
mov dword [ebx + 0x4dc], ecx
mov dword [ebx + 0x4e4], edx
jmp 0x469377
shl dword [ebx + 0x4bc], 1
inc dword [eax]
mov ecx, dword [ebx + 0x4bc]
cmp ecx, dword [ebx + 0x48]
jb 0x469369
jmp 0x46938a
shl dword [ebx + 0x4dc], 1
inc dword [ebx + 0x4e4]
mov eax, dword [ebx + 0x4dc]
cmp eax, dword [ebx + 0x4c]
jb 0x46937e
mov ecx, dword [ebx + 0x4dc]
mov edx, dword [ebx + 0x4bc]
mov edi, ecx
mov eax, edx
imul edi, ecx
mov ecx, dword [ebx + 0x514]
imul eax, edx
cmp ecx, esi
mov dword [ebx + 0x4c0], eax
mov dword [ebx + 0x4e0], edi
je 0x4693d9
lea edi, [ebx + 0x4c4]
cmp dword [edi], ecx
jbe 0x4693cd
mov dword [edi], ecx
lea edi, [ebx + 0x4e4]
cmp dword [edi], ecx
jbe 0x4693d9
mov dword [edi], ecx
movzx edi, word [ebx + 0x60]
movzx ecx, word [ebx + 0x62]
sub ecx, edi
inc ecx
mov edi, 0x80
cmp ecx, edi
mov dword [ebp - 0x9c], ecx
jbe 0x4693f9
mov dword [ebp - 0x9c], edi
mov ecx, dword [ebx + 0x4dc]
mov dword [ebx + 0x4e8], ecx
mov ecx, dword [ebp - 0x9c]
imul ecx, eax
cmp ecx, eax
lea edi, [ebx + 0x4c8]
mov dword [edi], edx
jbe 0x46943d
mov eax, dword [edi]
cmp eax, 0x100
jae 0x46943d
add eax, eax
mov dword [edi], eax
mov ecx, dword [ebx + 0x4c0]
imul ecx, dword [ebp - 0x9c]
mov edx, eax
imul edx, eax
cmp ecx, edx
ja 0x46941a
mov ecx, dword [edi]
cmp dword [ebx + 0x4dc], ecx
jae 0x46944d
mov dword [ebx + 0x4e8], ecx
mov eax, dword [ebx + 0x4e8]
imul ecx, ecx
imul eax, eax
cmp dword [ebx + 0x10], esi
mov dword [ebx + 0x4ec], eax
mov dword [ebx + 0x4d8], eax
mov dword [ebx + 0x4cc], ecx
mov dword [ebx + 0x4b8], ecx
lea eax, [ebx + 0x498]
je 0x469583
push esi
push eax
push esi
lea eax, [ebx + 0x4c4]
push eax
push edi
push edi
push dword [ebx + 8]
call sym.d3dx9_34.dll_D3DXCheckTextureRequirements
cmp eax, esi
jl 0x469652
push esi
lea eax, [ebx + 0x498]
push eax
push esi
lea eax, [ebx + 0x4e4]
push eax
lea eax, [ebx + 0x4e8]
push eax
push eax
push dword [ebx + 8]
call sym.d3dx9_34.dll_D3DXCheckTextureRequirements
cmp eax, esi
jl 0x469652
push 2
lea eax, [ebx + 0x498]
push eax
push esi
lea eax, [ebx + 0x4c4]
push eax
push edi
push edi
push dword [ebx + 8]
call sym.d3dx9_34.dll_D3DXCheckTextureRequirements
cmp eax, esi
jl 0x469652
push 2
lea eax, [ebx + 0x498]
push eax
push esi
lea eax, [ebx + 0x4e4]
push eax
lea eax, [ebx + 0x4e8]
push eax
push eax
push dword [ebx + 8]
call sym.d3dx9_34.dll_D3DXCheckTextureRequirements
cmp eax, esi
jl 0x469652
cmp dword [ebx + 0x498], 0x15
jne 0x46964d
mov eax, dword [edi]
cmp eax, dword [ebx + 0x4bc]
jb 0x46964d
mov eax, dword [ebx + 0x4e8]
cmp eax, dword [ebx + 0x4dc]
jb 0x46964d
cmp dword [ebx + 0x4e4], 1
push 8
lea edi, [ebx + 0x4f0]
pop ecx
lea esi, [ebx + 0x4b0]
rep movsd dword es:[edi], dword [esi]
jbe 0x4695a7
mov eax, dword [ebx + 0x4e0]
xor ecx, ecx
push 8
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
xor esi, esi
cmp eax, esi
pop ecx
mov dword [ebx + 0x510], eax
jne 0x4695a9
jmp 0x468f03
push 1
push eax
push esi
lea eax, [ebx + 0x4c4]
push eax
push edi
push edi
push dword [ebx + 8]
call sym.d3dx9_34.dll_D3DXCheckTextureRequirements
cmp eax, esi
jl 0x469652
push 1
jmp 0x4694e9
xor esi, esi
xor eax, eax
cmp dword [0x73e860], esi
je 0x4695d6
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 [0x73e88c]
cmp eax, esi
jge 0x469649
jmp 0x469652
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
cmp dword [0x73e834], esi
push esi
push edi
lea eax, [ebx + 0x64]
push eax
push dword [ebx + 0x14]
mov dword [ebp - 0x28], 0x24
mov dword [ebp - 0xc], edi
je 0x46960f
call dword [sym.imp.GDI32.dll_GetCharacterPlacementW]
jmp 0x469615
call dword [sym.imp.GDI32.dll_GetCharacterPlacementA]
cmp dword [0x73e834], esi
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
je 0x469643
call dword [sym.imp.GDI32.dll_GetCharacterPlacementW]
jmp 0x469649
call dword [sym.imp.GDI32.dll_GetCharacterPlacementA]
xor eax, eax
jmp 0x469652
mov eax, 0x88760b59
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00666f65
leave
ret 0xc