Function at 0x10001b00
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x1001b018]
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 0x10001de0
push 0x3c
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.1000c150
mov eax, dword [esi + 0x7c]
lea edx, [ebp - 0x40]
add esp, 0xc
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x30]
test eax, eax
js 0x10001e10
mov eax, dword [esi]
mov edi, dword [eax + 0x430]
mov eax, dword [esi]
mov dword [ebp - 0x54], edi
mov eax, dword [eax + 0x430]
cmp eax, dword [esi + 0x10]
jle 0x10001bd3
cmp dword [esi + 0x14], 0
mov eax, dword [esi]
mov eax, dword [eax + 0x430]
jne 0x10001b94
shl eax, 3
push eax
call fcn.10005464
add esp, 4
jmp 0x10001ba3
shl eax, 3
push eax
push dword [esi + 0x14]
call fcn.100054f6
add esp, 8
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x14], eax
mov eax, dword [esi]
cmp ecx, dword [eax + 0x430]
jge 0x10001bd3
mov eax, dword [esi + 0x14]
mov dword [eax + ecx*8], 0
mov eax, dword [esi + 0x14]
mov dword [eax + ecx*8 + 4], 0
inc ecx
mov eax, dword [esi]
cmp ecx, dword [eax + 0x430]
jl 0x10001bb3
xor ebx, ebx
test edi, edi
jle 0x10001ddd
xor edx, edx
mov dword [ebp - 0x44], edx
mov eax, dword [esi + 0x18]
mov ecx, dword [edx + eax]
mov eax, dword [edx + eax + 4]
or ecx, eax
je 0x10001d8f
mov eax, dword [esi + 0x18]
cmp dword [edx + eax + 0x14], 0
jne 0x10001c0b
mov eax, dword [esi + 0x14]
cmp dword [eax + ebx*8], 0
jne 0x10001dce
mov eax, dword [esi + 0x14]
lea edi, [ebx*8]
mov ecx, dword [edi + eax]
test ecx, ecx
je 0x10001c2c
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [esi + 0x14]
mov dword [edi + eax], 0
mov eax, dword [esi + 0x14]
mov eax, dword [edi + eax + 4]
test eax, eax
je 0x10001c4b
push eax
call fcn.100055a1
mov eax, dword [esi + 0x14]
add esp, 4
mov dword [edi + eax + 4], 0
mov edx, dword [ebp - 0x44]
lea eax, [ebp - 0x48]
push 0
push eax
mov eax, dword [esi + 0x18]
push 0
push 0
mov eax, dword [edx + eax + 0x10]
push eax
mov eax, dword [esi + 0x18]
mov ecx, dword [edx + eax]
mov eax, dword [edx + eax + 4]
push ecx
push dword [esi + 0x78]
call dword [sym.imp.d3dx10_43.dll_D3DX10CreateTextureFromMemory]
mov dword [ebp - 0x4c], eax
test eax, eax
js 0x10001e21
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0x58]
push edx
push 0x10019750
push eax
mov ecx, dword [eax]
call dword [ecx]
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x78]
add eax, edi
push eax
push 0
push dword [ebp - 0x48]
mov edx, dword [ecx]
push ecx
call dword [edx + 0x12c]
test eax, eax
js 0x10001e10
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x58]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esi + 0x18]
mov edx, dword [ebp - 0x44]
mov ecx, dword [edx + eax + 8]
mov eax, dword [edx + eax + 0xc]
or ecx, eax
je 0x10001d7f
xorps xmm0, xmm0
push 0x308
movss dword [ebp - 0x50], xmm0
call fcn.10005464
mov ecx, dword [esi + 0x14]
add esp, 4
mov edx, dword [ebp - 0x44]
movss xmm1, dword [ebp - 0x50]
mov dword [ebp - 0x4c], 0
mov dword [edi + ecx + 4], eax
mov eax, dword [esi + 0x18]
mov ecx, dword [edx + eax + 8]
mov eax, dword [edx + eax + 0xc]
movzx eax, word [ecx]
lea edx, [ecx + 2]
mov ecx, dword [ebp - 0x4c]
movd xmm0, eax
mov eax, dword [esi + 0x14]
cvtdq2ps xmm0, xmm0
mov eax, dword [edi + eax + 4]
movss dword [eax], xmm0
jmp 0x10001d30
mov eax, dword [esi + 0x14]
mov eax, dword [edi + eax + 4]
movss dword [eax + ecx + 8], xmm1
movzx eax, word [edx]
movd xmm0, eax
mov eax, dword [esi + 0x14]
cvtdq2ps xmm0, xmm0
mov eax, dword [edi + eax + 4]
movss dword [eax + ecx + 0xc], xmm0
add ecx, 8
movzx eax, word [edx]
add edx, 2
movd xmm0, eax
cvtdq2ps xmm0, xmm0
addss xmm1, xmm0
cmp ecx, 0x300
jl 0x10001d30
mov eax, dword [esi + 0x14]
mov edx, dword [ebp - 0x44]
mov eax, dword [edi + eax + 4]
movss dword [eax + 4], xmm1
mov eax, dword [esi + 0x18]
mov edi, dword [ebp - 0x54]
mov dword [edx + eax + 0x14], 0
jmp 0x10001dce
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + ebx*8]
test ecx, ecx
je 0x10001dac
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [esi + 0x14]
mov edx, dword [ebp - 0x44]
mov dword [eax + ebx*8], 0
mov eax, dword [esi + 0x14]
mov eax, dword [eax + ebx*8 + 4]
test eax, eax
je 0x10001dce
push eax
call fcn.100055a1
mov eax, dword [esi + 0x14]
add esp, 4
mov edx, dword [ebp - 0x44]
mov dword [eax + ebx*8 + 4], 0
inc ebx
add edx, 0x18
mov dword [ebp - 0x44], edx
cmp ebx, edi
jl 0x10001be2
mov dword [esi + 0x10], edi
mov eax, dword [esi]
cmp dword [eax + 0x42c], 0
je 0x10001df6
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.10005296
mov esp, ebp
pop ebp
ret
push str.Failure_creating_a_texture
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x4c]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.10005296
mov esp, ebp
pop ebp
ret