Function at 0x100016b0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
mov eax, dword [0x1001a018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
push 0xffffffffffffffff
mov eax, dword [esi]
mov edx, dword [eax + 0x43c]
mov eax, dword [eax + 0x440]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi]
cmp dword [eax + 0x430], 0
je 0x10001b04
mov eax, dword [esi]
mov eax, dword [eax + 0x430]
mov eax, dword [esi]
mov eax, dword [eax + 0x430]
cmp eax, dword [esi + 8]
jle 0x100017af
cmp dword [esi + 4], 0
mov eax, dword [esi]
mov eax, dword [eax + 0x430]
jne 0x10001723
shl eax, 4
push eax
call fcn.10004474
add esp, 4
jmp 0x10001732
shl eax, 4
push eax
push dword [esi + 4]
call fcn.10004506
add esp, 8
mov dword [esi + 4], eax
test eax, eax
jne 0x1000176c
push str.Failure_allocating_memory_for_texturedata
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esi]
mov ecx, dword [eax + 0x43c]
mov eax, dword [eax + 0x440]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100042a6
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
mov edx, dword [esi + 8]
cmp edx, dword [eax + 0x430]
jge 0x100017a4
mov ecx, edx
shl ecx, 4
mov edi, edi
mov eax, dword [esi + 4]
lea ecx, [ecx + 0x10]
inc edx
mov dword [ecx + eax - 0x10], 0
mov eax, dword [esi + 4]
mov dword [ecx + eax - 4], 0
mov eax, dword [esi]
cmp edx, dword [eax + 0x430]
jl 0x10001780
mov eax, dword [esi]
mov eax, dword [eax + 0x430]
mov dword [esi + 8], eax
xor edx, edx
mov dword [ebp - 0x168], edx
cmp dword [esi + 8], edx
jle 0x10001b04
xor edi, edi
xor ebx, ebx
mov eax, dword [esi + 0x10]
mov ecx, dword [ebx + eax]
mov eax, dword [ebx + eax + 4]
or ecx, eax
je 0x10001aa9
mov eax, dword [esi + 0x10]
cmp dword [ebx + eax + 0x14], 0
jne 0x100017ed
mov eax, dword [esi + 4]
cmp dword [edi + eax], 0
jne 0x10001aee
mov eax, dword [esi + 4]
mov ecx, dword [edi + eax]
test ecx, ecx
je 0x10001807
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [esi + 4]
mov dword [edi + eax], 0
mov eax, dword [esi + 4]
mov eax, dword [edi + eax + 0xc]
test eax, eax
je 0x10001826
push eax
call fcn.100045b1
mov eax, dword [esi + 4]
add esp, 4
mov dword [edi + eax + 0xc], 0
mov eax, dword [esi + 4]
xorps xmm0, xmm0
add eax, edi
movq qword [ebp - 0x114], xmm0
push eax
push 0
lea eax, [ebp - 0x124]
mov dword [ebp - 0x10c], 0
push eax
mov eax, dword [esi + 0x10]
push 0
push 0xffffffffffffffff
push 1
push 1
push 0
push 0
push 1
push 0xffffffffffffffff
movdqu xmmword [ebp - 0x124], xmm0
mov eax, dword [ebx + eax + 0x10]
push 0xffffffffffffffff
push eax
mov eax, dword [esi + 0x10]
mov ecx, dword [ebx + eax]
mov eax, dword [ebx + eax + 4]
push ecx
push dword [esi + 0x48]
call dword [sym.imp.d3dx9_43.dll_D3DXCreateTextureFromFileInMemoryEx]
test eax, eax
jns 0x1000196f
mov eax, dword [esi + 4]
add eax, edi
push eax
push 0
lea eax, [ebp - 0x124]
push eax
mov eax, dword [esi + 0x10]
push 0
push 0xffffffffffffffff
push 1
mov eax, dword [ebx + eax + 0x10]
push 1
push 0
push 0
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
mov eax, dword [esi + 0x10]
mov ecx, dword [ebx + eax]
mov eax, dword [ebx + eax + 4]
push ecx
push dword [esi + 0x48]
call dword [sym.imp.d3dx9_43.dll_D3DXCreateTextureFromFileInMemoryEx]
test eax, eax
jns 0x1000196f
mov eax, dword [esi + 4]
add eax, edi
push eax
push 0
lea eax, [ebp - 0x124]
push eax
mov eax, dword [esi + 0x10]
push 0
push 0xffffffffffffffff
push 1
mov eax, dword [ebx + eax + 0x10]
push 0
push 0
push 0
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
mov eax, dword [esi + 0x10]
mov ecx, dword [ebx + eax]
mov eax, dword [ebx + eax + 4]
push ecx
push dword [esi + 0x48]
call dword [sym.imp.d3dx9_43.dll_D3DXCreateTextureFromFileInMemoryEx]
test eax, eax
jns 0x1000196f
mov eax, dword [esi + 4]
add eax, edi
push eax
mov eax, dword [esi + 0x10]
mov eax, dword [ebx + eax + 0x10]
push eax
mov eax, dword [esi + 0x10]
mov ecx, dword [ebx + eax]
mov eax, dword [ebx + eax + 4]
push ecx
push dword [esi + 0x48]
call dword [sym.imp.d3dx9_43.dll_D3DXCreateTextureFromFileInMemory]
mov dword [ebp - 0x16c], eax
test eax, eax
mov eax, dword [esi + 4]
js 0x10001b45
mov ecx, dword [edi + eax]
test ecx, ecx
je 0x1000196f
mov eax, dword [ecx]
lea edx, [ebp - 0x144]
push edx
push 0
push ecx
call dword [eax + 0x44]
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0x128]
mov dword [ebp - 0x120], eax
mov eax, dword [esi + 4]
mov ecx, dword [edi + eax]
test ecx, ecx
je 0x10001a9c
mov eax, dword [ecx]
lea edx, [ebp - 0x164]
push edx
push 0
push ecx
call dword [eax + 0x44]
mov eax, dword [ebp - 0x124]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100187d0]
mov eax, dword [esi + 4]
cvtpd2ps xmm0, xmm0
movss dword [edi + eax + 4], xmm0
mov eax, dword [ebp - 0x120]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100187d0]
mov eax, dword [esi + 4]
cvtpd2ps xmm0, xmm0
movss dword [edi + eax + 8], xmm0
mov eax, dword [esi + 0x10]
mov ecx, dword [ebx + eax + 8]
mov eax, dword [ebx + eax + 0xc]
or ecx, eax
je 0x10001a9c
xorps xmm0, xmm0
push 0x308
movss dword [ebp - 0x16c], xmm0
call fcn.10004474
mov ecx, dword [esi + 4]
add esp, 4
mov dword [edi + ecx + 0xc], eax
mov eax, dword [esi + 4]
cmp dword [edi + eax + 0xc], 0
je 0x10001c33
mov eax, dword [esi + 0x10]
xor edx, edx
movss xmm1, dword [ebp - 0x16c]
mov ecx, dword [ebx + eax + 8]
mov eax, dword [ebx + eax + 0xc]
movzx eax, word [ecx]
add ecx, 2
movd xmm0, eax
mov eax, dword [esi + 4]
cvtdq2ps xmm0, xmm0
mov eax, dword [edi + eax + 0xc]
movss dword [eax], xmm0
jmp 0x10001a50
mov eax, dword [esi + 4]
mov eax, dword [edi + eax + 0xc]
movss dword [eax + edx + 8], xmm1
movzx eax, word [ecx]
movd xmm0, eax
mov eax, dword [esi + 4]
cvtdq2ps xmm0, xmm0
mov eax, dword [edi + eax + 0xc]
movss dword [eax + edx + 0xc], xmm0
add edx, 8
movzx eax, word [ecx]
add ecx, 2
movd xmm0, eax
cvtdq2ps xmm0, xmm0
addss xmm1, xmm0
cmp edx, 0x300
jl 0x10001a50
mov eax, dword [esi + 4]
mov eax, dword [edi + eax + 0xc]
movss dword [eax + 4], xmm1
mov eax, dword [esi + 0x10]
mov dword [ebx + eax + 0x14], 0
jmp 0x10001ae8
mov eax, dword [esi + 4]
mov ecx, dword [edi + eax]
test ecx, ecx
je 0x10001ac9
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [esi + 4]
mov edx, dword [ebp - 0x168]
mov dword [edi + eax], 0
mov eax, dword [esi + 4]
mov eax, dword [edi + eax + 0xc]
test eax, eax
je 0x10001aee
push eax
call fcn.100045b1
mov eax, dword [esi + 4]
add esp, 4
mov dword [edi + eax + 0xc], 0
mov edx, dword [ebp - 0x168]
inc edx
add ebx, 0x18
add edi, 0x10
mov dword [ebp - 0x168], edx
cmp edx, dword [esi + 8]
jl 0x100017c4
mov eax, dword [esi]
cmp dword [eax + 0x42c], 0
je 0x10001b1a
mov eax, dword [esi]
xor ecx, ecx
add eax, 0x42c
xchg dword [eax], ecx
mov eax, dword [esi]
mov ecx, dword [eax + 0x43c]
mov eax, dword [eax + 0x440]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100042a6
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x168]
mov ecx, edx
mov edi, dword [ebp - 0x16c]
add ecx, ecx
lea edx, [edx + edx*2]
mov dword [eax + ecx*8], 0
mov eax, dword [esi + 0x10]
mov eax, dword [eax + edx*8 + 0x10]
push eax
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + edx*8]
mov eax, dword [eax + edx*8 + 4]
push ecx
push edi
push str.Failure_creating_a_texture.___x__AOT_p_size_d
lea eax, [ebp - 0x108]
push 0xfe
push eax
call fcn.100043f5
add esp, 0x18
cmp edi, 0x8876086a
je 0x10001bde
cmp edi, 0x8876017c
jne 0x10001baa
lea eax, [ebp - 0x108]
push eax
push str._s___D3DERR_OUTOFVIDEOMEMORY
jmp 0x10001bea
cmp edi, 0x8876086c
jne 0x10001bc0
lea eax, [ebp - 0x108]
push eax
push str._s___D3DERR_INVALIDCALL
jmp 0x10001bea
cmp edi, 0x88760b59
jne 0x10001bd6
lea eax, [ebp - 0x108]
push eax
push str._s___D3DXERR_INVALIDDATA
jmp 0x10001bea
cmp edi, 0x8007000e
jne 0x10001bfe
lea eax, [ebp - 0x108]
push eax
push str._s___D3DERR_NOTAVAILABLE
lea eax, [ebp - 0x108]
push 0xfe
push eax
call fcn.100043f5
add esp, 0x10
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esi]
mov ecx, dword [eax + 0x43c]
mov eax, dword [eax + 0x440]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100042a6
mov esp, ebp
pop ebp
ret
push str.Failure_allocating_memory_for_fontmap
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esi]
mov ecx, dword [eax + 0x43c]
mov eax, dword [eax + 0x440]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100042a6
mov esp, ebp
pop ebp
ret