Function at 0x1007bb40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1012bf9e
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x101636d0]
xor eax, esp
mov dword [esp + 0x238], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101636d0]
xor eax, esp
push eax
lea eax, [esp + 0x250]
mov dword fs:[0], eax
mov eax, dword [esp + 0x264]
mov ebp, dword [esp + 0x260]
mov dword [esp + 0x1c], eax
lea eax, [ebp + 0xbc]
push eax
mov dword [esp + 0x30], ebp
mov dword [esp + 0x28], 0
mov dword [esp + 0x38], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [ebp + 0x18]
add ebp, 0xc
mov dword [esp + 0x40], ebp
cmp esi, dword [ebp + 0x10]
jbe 0x1007bbbe
call fcn.100d1cc3
mov edi, dword [ebp]
mov ebx, dword [ebp + 0x10]
cmp dword [ebp + 0xc], ebx
jbe 0x1007bbce
call fcn.100d1cc3
mov eax, dword [ebp]
test edi, edi
je 0x1007bbd9
cmp edi, eax
je 0x1007bbde
call fcn.100d1cc3
cmp esi, ebx
je 0x1007bc49
test edi, edi
jne 0x1007bc28
call fcn.100d1cc3
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x1007bbf7
call fcn.100d1cc3
mov ecx, dword [esi]
mov eax, dword [ecx + 0xc]
push 0x10141ed8
push eax
call fcn.100cf808
add esp, 8
test eax, eax
je 0x1007bc30
test edi, edi
jne 0x1007bc2c
call fcn.100d1cc3
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x1007bc23
call fcn.100d1cc3
add esi, 4
jmp 0x1007bbc1
mov eax, dword [edi]
jmp 0x1007bbed
mov eax, dword [edi]
jmp 0x1007bc19
test edi, edi
jne 0x1007bc71
call fcn.100d1cc3
cmp esi, dword [edi + 0x10]
jb 0x1007bc43
call fcn.100d1cc3
mov edx, dword [esi]
mov dword [esp + 0x24], edx
mov eax, dword [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x24], 0
je 0x1007bc75
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x24]
lea ebx, [esi + 0x24]
push ecx
call fcn.10031690
jmp 0x1007c013
mov edi, dword [edi]
jmp 0x1007bc39
push 0x3c
call fcn.100cfcae
mov esi, eax
add esp, 4
mov dword [esp + 0x24], esi
mov dword [esp + 0x258], 0
test esi, esi
je 0x1007bca8
push esi
call fcn.10073380
mov dword [esi], vtable.t_cuTextureEx.0
mov ebx, esi
mov dword [esp + 0x20], esi
jmp 0x1007bcae
xor ebx, ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x258], 0xffffffff
mov dword [esp + 0x24], ebx
test ebx, ebx
je 0x1007bcdf
push 0x2e
push 0x10141ed8
call fcn.100d0727
mov esi, eax
add esp, 8
test esi, esi
jne 0x1007bce6
mov edx, dword [ebx]
mov eax, dword [edx + 8]
mov ecx, ebx
call eax
xor eax, eax
jmp 0x1007c015
mov eax, 0x10141ed8
call fcn.1007b450
mov edi, eax
mov dword [esp + 0x28], edi
test edi, edi
jne 0x1007bd5a
push str..bmp
push esi
call fcn.100cf808
add esp, 8
test eax, eax
jne 0x1007bd11
lea edi, [eax + 1]
jmp 0x1007bd56
push 0x1013c768
push esi
call fcn.100cf808
add esp, 8
test eax, eax
jne 0x1007bd28
lea edi, [eax + 2]
jmp 0x1007bd56
push str..jpg
push esi
call fcn.100cf808
add esp, 8
test eax, eax
jne 0x1007bd3f
lea edi, [eax + 3]
jmp 0x1007bd56
push str..gif
push esi
call fcn.100cf808
add esp, 8
test eax, eax
jne 0x1007bd5a
mov edi, 4
mov dword [esp + 0x28], edi
mov byte [esp + 0x1b], 0
cmp edi, 1
je 0x1007bdaa
cmp edi, 2
jne 0x1007bd7f
mov edi, dword [esp + 0x1c]
push 0x10141ed8
push ebx
mov eax, 0x10141ed8
call fcn.10073c70
jmp 0x1007bd9e
cmp edi, 3
je 0x1007bdaa
cmp edi, 4
jne 0x1007bdaa
mov ecx, dword [esp + 0x1c]
push ecx
push 0x10141ed8
push ebx
mov eax, 0x10141ed8
call fcn.10073e30
mov byte [esp + 0x1b], al
test al, al
jne 0x1007bfe4
mov edi, dword [esp + 0x2c]
add edi, 0x84
lea esi, [esp + 0x38]
call fcn.10098c90
mov ebp, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
jmp 0x1007bdd0
mov ebx, dword [esp + 0x2c]
mov esi, dword [ebx + 0x94]
cmp dword [ebx + 0x90], esi
jbe 0x1007bde7
call fcn.100d1cc3
mov eax, dword [ebx + 0x84]
test ebp, ebp
je 0x1007bdf5
cmp ebp, eax
je 0x1007bdfa
call fcn.100d1cc3
cmp edi, esi
je 0x1007beaf
test ebp, ebp
jne 0x1007be4f
call fcn.100d1cc3
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x1007be17
call fcn.100d1cc3
mov ebx, dword [edi]
push 0x10141ed8
call fcn.10088520
test eax, eax
je 0x1007be89
mov ecx, dword [esp + 0x28]
cmp ecx, 1
je 0x1007be7a
cmp ecx, 2
jne 0x1007be54
mov edx, dword [eax + 8]
mov ecx, dword [eax + 4]
mov edi, dword [esp + 0x1c]
push edx
mov edx, dword [eax]
mov eax, dword [esp + 0x24]
push ecx
push edx
call fcn.10073d30
jmp 0x1007be76
mov eax, dword [ebp]
jmp 0x1007be0d
cmp ecx, 3
je 0x1007be7a
cmp ecx, 4
jne 0x1007be7a
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
mov eax, dword [eax]
push ecx
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x28]
push eax
call fcn.10073ee0
mov byte [esp + 0x1b], al
cmp byte [esp + 0x1b], 0
jne 0x1007bfe4
mov edi, dword [esp + 0x3c]
test ebp, ebp
jne 0x1007beaa
call fcn.100d1cc3
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x1007be9e
call fcn.100d1cc3
add edi, 4
mov dword [esp + 0x3c], edi
jmp 0x1007bdd0
mov eax, dword [ebp]
jmp 0x1007be94
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x4e]
push edx
mov word [esp + 0x50], cx
call fcn.100d6e40
mov esi, dword [ebx + 0x60]
add esp, 0xc
cmp esi, dword [ebx + 0x64]
jbe 0x1007bed6
call fcn.100d1cc3
mov ebx, dword [ebx + 0x54]
mov ebp, dword [esp + 0x2c]
lea ecx, [ecx]
mov edi, dword [ebp + 0x64]
cmp dword [ebp + 0x60], edi
jbe 0x1007beed
call fcn.100d1cc3
mov eax, dword [ebp + 0x54]
test ebx, ebx
je 0x1007bef8
cmp ebx, eax
je 0x1007befd
call fcn.100d1cc3
cmp esi, edi
je 0x1007bfd5
test ebx, ebx
jne 0x1007bf7f
call fcn.100d1cc3
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x1007bf1a
call fcn.100d1cc3
mov eax, dword [esi]
push 0x10141ed8
push eax
push 0x1013c7c8
lea ecx, [esp + 0x50]
push 0x104
push ecx
call fcn.100cfe69
lea edx, [esp + 0x58]
add esp, 0x14
test edx, edx
je 0x1007bfb4
mov eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1007bfb4
shr eax, 4
not al
and al, 1
je 0x1007bfb4
mov eax, dword [esp + 0x28]
cmp eax, 1
je 0x1007bfa9
cmp eax, 2
jne 0x1007bf83
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
push 0x10141ed8
push ecx
lea eax, [esp + 0x4c]
call fcn.10073c70
jmp 0x1007bfa5
mov eax, dword [ebx]
jmp 0x1007bf10
cmp eax, 3
je 0x1007bfa9
cmp eax, 4
jne 0x1007bfa9
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
push edx
push 0x10141ed8
push eax
lea eax, [esp + 0x50]
call fcn.10073e30
mov byte [esp + 0x1b], al
cmp byte [esp + 0x1b], 0
jne 0x1007bfe4
mov ebp, dword [esp + 0x2c]
test ebx, ebx
jne 0x1007bfd1
call fcn.100d1cc3
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x1007bfc9
call fcn.100d1cc3
add esi, 4
jmp 0x1007bee0
mov eax, dword [ebx]
jmp 0x1007bfbf
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
xor eax, eax
jmp 0x1007c015
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
push ecx
mov eax, esi
call fcn.100752e0
mov ebp, dword [esp + 0x34]
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x40]
lea ebx, [esp + 0x24]
call fcn.1007fc40
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
mov ecx, dword [esp + 0x250]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x238]
xor ecx, esp
call fcn.100cf604
add esp, 0x248
ret 8