Function at 0x10001700
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x174
mov eax, dword [0x10017030]
xor eax, esp
mov dword [esp + 0x16c], eax
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi]
mov ecx, dword [eax + 0x43c]
mov edx, dword [eax + 0x440]
push edi
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi]
mov ecx, dword [eax + 0x430]
test ecx, ecx
je 0x10001c85
mov edx, dword [esi]
mov eax, dword [edx + 0x430]
mov ecx, dword [esi]
mov edx, dword [ecx + 0x430]
xor ebp, ebp
cmp edx, dword [esi + 8]
jle 0x100017f9
cmp dword [esi + 4], ebp
jne 0x10001777
mov eax, dword [esi]
mov ecx, dword [eax + 0x430]
shl ecx, 4
push ecx
call fcn.10004a40
add esp, 4
jmp 0x1000178f
mov edx, dword [esi]
mov eax, dword [edx + 0x430]
mov ecx, dword [esi + 4]
shl eax, 4
push eax
push ecx
call fcn.10004b0a
add esp, 8
mov dword [esi + 4], eax
cmp eax, ebp
jne 0x100017bd
push str.Failure_allocating_memory_for_texturedata
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov esi, dword [esi]
mov edx, dword [esi + 0x43c]
mov eax, dword [esi + 0x440]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
jmp 0x10001cb7
mov edx, dword [esi]
mov ecx, dword [esi + 8]
mov eax, dword [edx + 0x430]
cmp ecx, eax
jge 0x100017ee
mov eax, ecx
shl eax, 4
mov edx, dword [esi + 4]
mov dword [eax + edx], ebp
mov edx, dword [esi + 4]
mov dword [eax + edx + 0xc], ebp
mov edx, dword [esi]
mov edx, dword [edx + 0x430]
inc ecx
add eax, 0x10
cmp ecx, edx
jl 0x100017d1
mov eax, dword [esi]
mov ecx, dword [eax + 0x430]
mov dword [esi + 8], ecx
cmp dword [esi + 8], ebp
mov dword [esp + 0x18], ebp
jle 0x10001c85
xor edi, edi
xor ebx, ebx
lea ebx, [ebx]
mov ecx, dword [esi + 0x10]
mov eax, dword [ebx + ecx]
or eax, dword [ebx + ecx + 4]
je 0x10001c36
mov edx, dword [esi + 0x10]
mov eax, dword [ebx + edx + 0x14]
test eax, eax
jne 0x10001837
mov ecx, dword [esi + 4]
cmp dword [edi + ecx], ebp
jne 0x10001c6d
mov edx, dword [esi + 4]
mov ecx, dword [edi + edx]
lea eax, [edi + edx]
cmp ecx, ebp
je 0x10001854
mov edx, dword [eax]
mov ecx, dword [ecx]
mov eax, dword [ecx + 8]
push edx
call eax
mov ecx, dword [esi + 4]
mov dword [edi + ecx], ebp
mov edx, dword [esi + 4]
mov eax, dword [edi + edx + 0xc]
cmp eax, ebp
je 0x1000186f
push eax
call fcn.10004d25
mov eax, dword [esi + 4]
add esp, 4
mov dword [edi + eax + 0xc], ebp
mov ecx, dword [esi + 4]
add ecx, edi
push ecx
push ebp
lea edx, [esp + 0x24]
push edx
push ebp
push 0xffffffffffffffff
push 1
push 1
xor eax, eax
push ebp
push ebp
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov eax, dword [esi + 0x10]
mov ecx, dword [ebx + eax + 0x10]
mov eax, dword [esi + 0x10]
mov edx, dword [ebx + eax]
mov eax, dword [ebx + eax + 4]
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push ecx
mov ecx, dword [esi + 0x48]
push edx
push ecx
call sub.d3dx9_43.dll_D3DXCreateTextureFromFileInMemoryEx
cmp eax, ebp
jge 0x100019a2
mov edx, dword [esi + 4]
mov ecx, dword [esi + 0x10]
add edx, edi
push edx
mov edx, dword [ebx + ecx + 0x10]
push ebp
lea eax, [esp + 0x24]
push eax
mov eax, dword [esi + 0x10]
mov ecx, dword [ebx + eax]
push ebp
push 0xffffffffffffffff
push 1
push 1
push ebp
push ebp
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push edx
mov edx, dword [ebx + eax + 4]
mov eax, dword [esi + 0x48]
push ecx
push eax
call sub.d3dx9_43.dll_D3DXCreateTextureFromFileInMemoryEx
cmp eax, ebp
jge 0x100019a2
mov ecx, dword [esi + 4]
mov eax, dword [esi + 0x10]
add ecx, edi
push ecx
mov ecx, dword [ebx + eax + 0x10]
mov eax, dword [esi + 0x10]
push ebp
lea edx, [esp + 0x24]
push edx
mov edx, dword [ebx + eax]
mov eax, dword [ebx + eax + 4]
push ebp
push 0xffffffffffffffff
push 1
push ebp
push ebp
push ebp
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push ecx
mov ecx, dword [esi + 0x48]
push edx
push ecx
call sub.d3dx9_43.dll_D3DXCreateTextureFromFileInMemoryEx
cmp eax, ebp
jge 0x100019a2
mov edx, dword [esi + 4]
mov eax, dword [esi + 0x10]
mov ecx, dword [ebx + eax + 0x10]
mov eax, dword [esi + 0x10]
add edx, edi
push edx
mov edx, dword [ebx + eax]
mov eax, dword [ebx + eax + 4]
push ecx
mov ecx, dword [esi + 0x48]
push edx
push ecx
call sub.d3dx9_43.dll_D3DXCreateTextureFromFileInMemory
mov edx, dword [esi + 4]
mov ebp, eax
test ebp, ebp
jl 0x10001cd0
cmp dword [edi + edx], 0
lea eax, [edi + edx]
je 0x100019a0
mov ecx, dword [eax]
mov edx, dword [ecx]
mov eax, dword [eax]
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [edx + 0x44]
push 0
push eax
call ecx
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x54]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
xor ebp, ebp
mov ecx, dword [esi + 4]
cmp dword [edi + ecx], ebp
lea eax, [edi + ecx]
je 0x10001c2d
mov edx, dword [eax]
mov ecx, dword [edx]
mov eax, dword [eax]
mov ecx, dword [ecx + 0x44]
lea edx, [esp + 0x58]
push edx
push ebp
push eax
call ecx
fild dword [esp + 0x1c]
mov edx, dword [esp + 0x1c]
test edx, edx
jge 0x100019d5
fadd dword [0x10014dfc]
mov eax, dword [esi + 4]
fstp dword [edi + eax + 4]
mov ecx, dword [esp + 0x20]
fild dword [esp + 0x20]
test ecx, ecx
jge 0x100019ee
fadd dword [0x10014dfc]
mov edx, dword [esi + 4]
fstp dword [edi + edx + 8]
mov ecx, dword [esi + 0x10]
mov eax, dword [ebx + ecx + 8]
or eax, dword [ebx + ecx + 0xc]
je 0x10001c2d
fldz
push 0x308
fstp dword [esp + 0x18]
call fcn.10004a40
mov ecx, dword [esi + 4]
mov dword [edi + ecx + 0xc], eax
mov edx, dword [esi + 4]
add esp, 4
cmp dword [edi + edx + 0xc], ebp
je 0x10001dcd
mov eax, dword [esi + 0x10]
mov ecx, dword [ebx + eax + 8]
mov eax, dword [ebx + eax + 0xc]
movzx edx, word [ecx]
mov eax, dword [esi + 4]
mov dword [esp + 0x10], edx
mov edx, dword [edi + eax + 0xc]
xor eax, eax
fild dword [esp + 0x10]
add ecx, 4
fstp dword [edx]
mov edx, dword [esi + 4]
fld dword [esp + 0x14]
mov edx, dword [edi + edx + 0xc]
fst dword [edx + eax + 8]
movzx edx, word [ecx - 2]
mov dword [esp + 0x10], edx
mov edx, dword [esi + 4]
mov edx, dword [edi + edx + 0xc]
fild dword [esp + 0x10]
fstp dword [edx + eax + 0xc]
movzx edx, word [ecx - 2]
mov dword [esp + 0x10], edx
mov edx, dword [esi + 4]
mov edx, dword [edi + edx + 0xc]
fild dword [esp + 0x10]
faddp st(1)
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fst dword [edx + eax + 0x10]
movzx edx, word [ecx]
mov dword [esp + 0x10], edx
mov edx, dword [esi + 4]
mov edx, dword [edi + edx + 0xc]
fild dword [esp + 0x10]
fstp dword [edx + eax + 0x14]
movzx edx, word [ecx]
mov dword [esp + 0x10], edx
mov edx, dword [esi + 4]
mov edx, dword [edi + edx + 0xc]
fild dword [esp + 0x10]
faddp st(1)
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fst dword [eax + edx + 0x18]
movzx edx, word [ecx + 2]
mov dword [esp + 0x10], edx
mov edx, dword [esi + 4]
mov edx, dword [edi + edx + 0xc]
fild dword [esp + 0x10]
fstp dword [edx + eax + 0x1c]
movzx edx, word [ecx + 2]
mov dword [esp + 0x10], edx
mov edx, dword [esi + 4]
mov edx, dword [edi + edx + 0xc]
fild dword [esp + 0x10]
faddp st(1)
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fst dword [edx + eax + 0x20]
movzx edx, word [ecx + 4]
mov dword [esp + 0x10], edx
mov edx, dword [esi + 4]
mov edx, dword [edi + edx + 0xc]
fild dword [esp + 0x10]
fstp dword [edx + eax + 0x24]
movzx edx, word [ecx + 4]
mov dword [esp + 0x10], edx
mov edx, dword [esi + 4]
mov edx, dword [edi + edx + 0xc]
fild dword [esp + 0x10]
faddp st(1)
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fst dword [edx + eax + 0x28]
movzx edx, word [ecx + 6]
mov dword [esp + 0x10], edx
mov edx, dword [esi + 4]
mov edx, dword [edi + edx + 0xc]
fild dword [esp + 0x10]
fstp dword [edx + eax + 0x2c]
movzx edx, word [ecx + 6]
mov dword [esp + 0x10], edx
mov edx, dword [esi + 4]
mov edx, dword [edi + edx + 0xc]
fild dword [esp + 0x10]
faddp st(1)
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fst dword [edx + eax + 0x30]
movzx edx, word [ecx + 8]
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
mov edx, dword [esi + 4]
mov edx, dword [edi + edx + 0xc]
add eax, 0x40
fstp dword [edx + eax - 0xc]
movzx edx, word [ecx + 8]
mov dword [esp + 0x10], edx
mov edx, dword [esi + 4]
mov edx, dword [edi + edx + 0xc]
fild dword [esp + 0x10]
add ecx, 0x10
cmp eax, 0x300
faddp st(1)
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fst dword [edx + eax - 8]
movzx edx, word [ecx - 6]
mov dword [esp + 0x10], edx
mov edx, dword [esi + 4]
mov edx, dword [edi + edx + 0xc]
fild dword [esp + 0x10]
fstp dword [edx + eax - 4]
movzx edx, word [ecx - 6]
mov dword [esp + 0x10], edx
mov edx, dword [esi + 4]
mov edx, dword [edi + edx + 0xc]
fild dword [esp + 0x10]
faddp st(1)
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fst dword [edx + eax]
movzx edx, word [ecx - 4]
mov dword [esp + 0x10], edx
mov edx, dword [esi + 4]
mov edx, dword [edi + edx + 0xc]
fild dword [esp + 0x10]
fstp dword [edx + eax + 4]
movzx edx, word [ecx - 4]
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
faddp st(1)
fstp dword [esp + 0x14]
jl 0x10001a51
mov eax, dword [esi + 4]
fld dword [esp + 0x14]
mov ecx, dword [edi + eax + 0xc]
fstp dword [ecx + 4]
mov edx, dword [esi + 0x10]
mov dword [ebx + edx + 0x14], ebp
jmp 0x10001c6d
mov eax, dword [esi + 4]
mov ecx, dword [eax + edi]
add eax, edi
cmp ecx, ebp
je 0x10001c52
mov edx, dword [eax]
mov ecx, dword [ecx]
mov eax, dword [ecx + 8]
push edx
call eax
mov ecx, dword [esi + 4]
mov dword [edi + ecx], ebp
mov edx, dword [esi + 4]
mov eax, dword [edi + edx + 0xc]
cmp eax, ebp
je 0x10001c6d
push eax
call fcn.10004d25
mov eax, dword [esi + 4]
add esp, 4
mov dword [edi + eax + 0xc], ebp
mov eax, dword [esp + 0x18]
inc eax
add ebx, 0x18
add edi, 0x10
cmp eax, dword [esi + 8]
mov dword [esp + 0x18], eax
jl 0x10001810
mov edx, dword [esi]
mov eax, dword [edx + 0x42c]
test eax, eax
je 0x10001c9d
mov edx, dword [esi]
xor ecx, ecx
add edx, 0x42c
xchg dword [edx], ecx
mov esi, dword [esi]
mov eax, dword [esi + 0x43c]
mov ecx, dword [esi + 0x440]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, 1
mov ecx, dword [esp + 0x17c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10004812
add esp, 0x174
ret
mov eax, dword [esp + 0x18]
mov ecx, eax
lea eax, [eax + eax*2]
shl ecx, 4
mov dword [ecx + edx], 0
mov ecx, dword [esi + 0x10]
add eax, eax
add eax, eax
add eax, eax
mov edx, dword [eax + ecx + 0x10]
mov ecx, dword [esi + 0x10]
push edx
mov edx, dword [eax + ecx]
mov eax, dword [eax + ecx + 4]
push edx
push ebp
push str.Failure_creating_a_texture.___x__AOT_p_size_d
lea ecx, [esp + 0x88]
push 0xfe
push ecx
call fcn.1000495f
add esp, 0x18
cmp ebp, 0x8876086a
jne 0x10001d33
lea edx, [esp + 0x78]
push edx
push str._s___D3DERR_NOTAVAILABLE
push 0xfe
mov eax, edx
push eax
jmp 0x10001d9e
cmp ebp, 0x8876017c
jne 0x10001d47
lea ecx, [esp + 0x78]
push ecx
push str._s___D3DERR_OUTOFVIDEOMEMORY
jmp 0x10001d91
cmp ebp, 0x8876086c
jne 0x10001d63
lea eax, [esp + 0x78]
push eax
push str._s___D3DERR_INVALIDCALL
push 0xfe
mov ecx, eax
push ecx
jmp 0x10001d9e
cmp ebp, 0x88760b59
jne 0x10001d7f
lea edx, [esp + 0x78]
push edx
push str._s___D3DXERR_INVALIDDATA
push 0xfe
mov eax, edx
push eax
jmp 0x10001d9e
cmp ebp, 0x8007000e
jne 0x10001da6
lea ecx, [esp + 0x78]
push ecx
push str._s___D3DERR_NOTAVAILABLE
push 0xfe
lea edx, [esp + 0x84]
push edx
call fcn.1000495f
add esp, 0x10
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov esi, dword [esi]
mov ecx, dword [esi + 0x43c]
mov edx, dword [esi + 0x440]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, ebp
jmp 0x10001cb7
push str.Failure_allocating_memory_for_fontmap
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov esi, dword [esi]
mov eax, dword [esi + 0x43c]
mov ecx, dword [esi + 0x440]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
jmp 0x10001cb7