Function at 0x43f1d0
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x442792
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x150
mov eax, dword [0x44c040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push ecx
lea eax, [ebp - 0x100]
mov dword [ebp - 0x104], 0
mov ecx, dword [0x44c658]
push eax
sub esp, 0x20
mov dword [ebp - 0x100], 0
call fcn.004024a0
add esp, 0x28
test eax, eax
jns 0x43fb01
push 0
push 0
lea ecx, [ebp - 0xfc]
push ecx
push 0x400
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov esi, dword [ebp - 0xfc]
xorps xmm0, xmm0
mov edi, esi
mov dword [ebp - 0x104], esi
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
lea ecx, [edi + 1]
nop word [eax + eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x43f290
sub edi, ecx
cmp edi, 0x7fffffff
ja 0x43fb25
mov eax, 0x16
cmp edi, 0xf
ja 0x43f2e3
push edi
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], edi
push esi
push eax
mov dword [ebp - 0x18], 0xf
call sub.VCRUNTIME140.dll_memcpy
mov byte [ebp + edi - 0x2c], 0
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x118], esi
mov dword [ebp - 0x10c], eax
jmp 0x43f37e
mov esi, edi
or esi, 0xf
cmp esi, 0x7fffffff
jbe 0x43f321
mov esi, 0x7fffffff
mov ecx, 0x80000000
mov dword [ebp - 0x118], esi
add ecx, 0x23
push ecx
call fcn.004417ad
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x43faed
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x43f358
cmp esi, eax
cmovb esi, eax
mov dword [ebp - 0x118], esi
lea eax, [esi + 1]
test eax, eax
jne 0x43f33b
mov dword [ebp - 0x118], esi
jmp 0x43f358
cmp eax, 0x1000
jb 0x43f34f
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x43fb2a
jmp 0x43f303
push eax
call fcn.004417ad
add esp, 4
push edi
push dword [ebp - 0x104]
mov dword [ebp - 0x10c], eax
push eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], esi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x10c]
mov byte [eax + edi], 0
add esp, 0xc
push 0x98
lea eax, [ebp - 0xf8]
mov dword [ebp - 4], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0xf8], 0x448c38
lea ecx, [ebp - 0xa8]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
push 0
push 0
lea eax, [ebp - 0xf4]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0xf8]
mov dword [ebp - 0x104], 1
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char_____bool_]
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0xf8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xf8], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0xf8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0xfc], eax
lea ecx, [ebp - 0xf4]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
mov dword [ebp - 0xf4], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xb8], 4
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x43efb0
push 0x43ef90
lea ecx, [ebp - 0xf8]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base_____cdecl___class_std::ios_base___]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base_____cdecl___class_std::ios_base___]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
mov byte [ebp - 4], 4
xor eax, eax
mov edx, dword [ebp - 0xb8]
xorps xmm0, xmm0
movups xmmword [ebp - 0x148], xmm0
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x138], eax
mov byte [ebp - 0x148], al
mov dword [ebp - 0x11c], eax
mov eax, edx
and al, 0x22
mov dword [ebp - 0x134], 0xf
mov dword [ebp - 0x104], 5
movq qword [ebp - 0x124], xmm0
cmp al, 2
je 0x43f4d9
mov eax, dword [ebp - 0xd4]
mov ecx, dword [eax]
test ecx, ecx
je 0x43f4d9
mov eax, dword [ebp - 0xe4]
cmp ecx, dword [ebp - 0xbc]
cmovb ecx, dword [ebp - 0xbc]
mov edx, dword [eax]
sub ecx, edx
jmp 0x43f50a
test dl, 4
jne 0x43f4fe
mov eax, dword [ebp - 0xd8]
mov ecx, dword [eax]
test ecx, ecx
je 0x43f4fe
mov eax, dword [ebp - 0xe8]
mov edx, dword [eax]
sub ecx, edx
mov eax, dword [ebp - 0xc8]
add ecx, dword [eax]
jmp 0x43f50a
mov ecx, dword [ebp - 0x120]
mov edx, dword [ebp - 0x124]
test edx, edx
je 0x43f529
push ecx
push edx
lea ecx, [ebp - 0x148]
call fcn.00440dc0
mov ecx, dword [ebp - 0x138]
mov dword [ebp - 0x110], ecx
jmp 0x43f52b
xor ecx, ecx
mov dword [ebp - 4], 5
mov eax, dword [ebp - 0x134]
sub eax, ecx
cmp eax, 2
jb 0x43f601
cmp dword [ebp - 0x134], 0xf
lea edx, [ebp - 0x148]
lea eax, [ecx + 2]
cmova edx, dword [ebp - 0x148]
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x104], edx
cmp edx, 0x448b82
jae 0x43f59b
lea eax, [edx + ecx]
cmp eax, 0x448b80
jb 0x43f59b
cmp edx, 0x448b80
ja 0x43f58c
mov dword [ebp - 0x108], 0
jmp 0x43f5a5
mov eax, edx
sub eax, 0x448b80
mov dword [ebp - 0x108], eax
jmp 0x43f5a5
mov dword [ebp - 0x108], 2
mov eax, dword [ebp - 0x110]
lea ecx, [edx + 2]
inc eax
push eax
push edx
push ecx
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
push dword [ebp - 0x108]
push 0x448b80
push dword [ebp - 0x104]
call sub.VCRUNTIME140.dll_memcpy
mov edx, dword [ebp - 0x108]
add esp, 0xc
mov ecx, dword [ebp - 0x104]
mov eax, 2
sub eax, edx
add ecx, edx
push eax
lea eax, [edx + 0x448b82]
push eax
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x148]
jmp 0x43f620
push 2
sub esp, 8
mov byte [ebp - 0x104], 0
lea ecx, [ebp - 0x148]
push dword [ebp - 0x104]
push 2
call fcn.00441050
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x5c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x4c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x134]
cmp ecx, 0xf
jbe 0x43f682
mov edx, dword [ebp - 0x148]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x43f678
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x43f678
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00441608
add esp, 8
mov edx, dword [ebp - 0x4c]
mov eax, 0x7fffffff
sub eax, edx
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x134], 0xf
mov byte [ebp - 0x148], 0
cmp eax, 0x2e
jb 0x43fb2f
cmp dword [ebp - 0x48], 0xf
lea eax, [ebp - 0x5c]
xorps xmm0, xmm0
mov dword [ebp - 0x150], 0
cmova eax, dword [ebp - 0x5c]
lea ecx, [ebp - 0x160]
mov dword [ebp - 0x114], eax
lea eax, [edx + 0x2e]
mov dword [ebp - 0x104], eax
mov eax, 0xf
movups xmmword [ebp - 0x160], xmm0
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x108], ecx
cmp dword [ebp - 0x104], eax
jbe 0x43f78a
lea eax, [edx + 0x2e]
or eax, 0xf
cmp eax, 0x7fffffff
jbe 0x43f740
mov eax, 0x80000000
mov dword [ebp - 0x110], 0x7fffffff
add eax, 0x23
push eax
call fcn.004417ad
add esp, 4
test eax, eax
je 0x43f9d4
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
jmp 0x43f778
cmp eax, 0x16
mov ecx, 0x16
cmovb eax, ecx
mov dword [ebp - 0x110], eax
lea ecx, [eax + 1]
test ecx, ecx
je 0x43f77e
cmp ecx, 0x1000
jb 0x43f76d
lea eax, [ecx + 0x23]
cmp eax, ecx
jbe 0x43fb34
jmp 0x43f724
push ecx
call fcn.004417ad
add esp, 4
mov ecx, eax
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0x160], ecx
movups xmm0, xmmword [str.Failed_to_load_texture_from_file:_nError_Code:]
mov edx, dword [ebp - 0x104]
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x150], edx
mov edx, dword [ebp - 0x4c]
movups xmmword [ecx], xmm0
push edx
movups xmm0, xmmword [0x448b94]
push dword [ebp - 0x114]
movups xmmword [ecx + 0x10], xmm0
movq xmm0, qword [0x448ba4]
movq qword [ecx + 0x20], xmm0
mov eax, dword [0x448bac]
mov dword [ecx + 0x28], eax
mov ax, word [0x448bb0]
mov word [ecx + 0x2c], ax
lea eax, [ecx + 0x2e]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x108]
add esp, 0xc
mov ecx, dword [ebp - 0x104]
mov byte [eax + ecx], 0
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x14c]
mov eax, edx
mov ecx, dword [ebp - 0x150]
sub eax, ecx
cmp eax, 1
jb 0x43f836
lea eax, [ecx + 1]
cmp edx, 0xf
mov dword [ebp - 0x150], eax
lea eax, [ebp - 0x160]
cmova eax, dword [ebp - 0x160]
mov word [eax + ecx], 0xa
lea eax, [ebp - 0x160]
jmp 0x43f857
push 1
push 0x447e6c
mov byte [ebp - 0x114], 0
lea ecx, [ebp - 0x160]
push dword [ebp - 0x114]
push 1
call fcn.00440ef0
mov dword [ebp - 0x120], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x130], xmm0
mov dword [ebp - 0x11c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x130], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x120], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
cmp esi, 0xf
mov byte [ebp - 4], 9
mov esi, dword [ebp - 0x11c]
lea ecx, [ebp - 0x2c]
cmova ecx, dword [ebp - 0x10c]
mov eax, esi
mov edx, dword [ebp - 0x120]
sub eax, edx
push edi
push ecx
cmp edi, eax
ja 0x43f901
lea eax, [edi + edx]
cmp esi, 0xf
mov dword [ebp - 0x120], eax
lea eax, [ebp - 0x130]
cmova eax, dword [ebp - 0x130]
lea esi, [eax + edx]
push esi
call sub.VCRUNTIME140.dll_memmove
mov byte [edi + esi], 0
lea eax, [ebp - 0x130]
mov esi, dword [ebp - 0x118]
add esp, 0xc
mov edi, dword [ebp - 0x10c]
jmp 0x43f920
mov byte [ebp - 0x114], 0
lea ecx, [ebp - 0x130]
push dword [ebp - 0x114]
push edi
call fcn.00440ef0
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x2c]
mov dword [ebp - 0x34], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x30], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x44], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x34], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov ecx, dword [ebp - 0x11c]
cmp ecx, 0xf
jbe 0x43f98d
mov edx, dword [ebp - 0x130]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x43f983
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43f9d4
push ecx
push edx
call fcn.00441608
add esp, 8
mov ecx, dword [ebp - 0x14c]
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0xf
mov byte [ebp - 0x130], 0
cmp ecx, 0xf
jbe 0x43f9e4
mov edx, dword [ebp - 0x160]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x43f9da
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x43f9da
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00441608
add esp, 8
cmp dword [ebp - 0x30], 0xf
lea eax, [ebp - 0x44]
push 0x10
cmova eax, dword [ebp - 0x44]
push str.Error_Loading_Texture
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [ebp - 0xfc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x30]
cmp ecx, 0xf
jbe 0x43fa3f
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x43fa35
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43faed
push ecx
push edx
call fcn.00441608
add esp, 8
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
cmp eax, 0xf
jbe 0x43fa83
mov edx, dword [ebp - 0x5c]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x43fa79
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43faed
push ecx
push edx
call fcn.00441608
add esp, 8
mov eax, dword [ebp - 0xf8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xf8], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0xf8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0xfc], eax
lea ecx, [ebp - 0xf4]
call fcn.00440c30
lea ecx, [ebp - 0xf0]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0xa8]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
cmp esi, 0xf
jbe 0x43fafd
inc esi
mov eax, edi
cmp esi, 0x1000
jb 0x43faf3
mov edi, dword [eax - 4]
add esi, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x43faf3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push esi
push edi
call fcn.00441608
add esp, 8
xor eax, eax
jmp 0x43fb07
mov eax, dword [ebp - 0x100]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004411d1
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0043ef80
call fcn.0043eee0
call fcn.0043ef80
call fcn.0043eee0
int3