Function at 0x401c20
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41855b
mov eax, dword fs:[0]
push eax
sub esp, 0x628
mov eax, dword [0x42a018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x630], eax
push eax
lea ecx, [ebp - 0x61c]
mov dword [ebp - 4], 1
call dword [sym.imp.opennurbs.dll_public:_void___thiscall_ON_wString::constructor_class_ON_wString_const__]
push 0
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x618]
push ecx
lea edx, [ebp - 0x18]
push edx
lea ecx, [esi + 0x828]
mov byte [ebp - 4], 2
call dword [sym.imp.opennurbs.dll_public:_wchar_t_const____thiscall_ON_wString::operator_wchar_t_const__void_const]
mov ebx, dword [sym.imp.MSVCR80.dll__wsplitpath]
push eax
call ebx
add esp, 0x14
lea ecx, [ebp - 0x620]
call dword [sym.imp.opennurbs.dll_public:_void___thiscall_ON_wString::constructor_void_]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x618]
push ecx
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x620]
mov byte [ebp - 4], 3
mov edi, dword [sym.imp.opennurbs.dll_public:_void___cdecl_ON_wString::Format_wchar_t_const__]
push 0x41ad78
push eax
call edi
add esp, 0x14
cmp byte [esi + 0x862], 0
jne 0x401d85
push 0
lea ecx, [ebp - 0x620]
call dword [sym.imp.opennurbs.dll_public:_wchar_t_const____thiscall_ON_wString::operator_wchar_t_const__void_const]
push eax
call dword [sym.imp.MSVCR80.dll__waccess]
add esp, 8
test eax, eax
je 0x401d85
lea ecx, [ebp - 0x620]
call dword [sym.imp.opennurbs.dll_public:_wchar_t_const____thiscall_ON_wString::operator_wchar_t_const__void_const]
push eax
call dword [sym.imp.MSVCR80.dll__wmkdir]
add esp, 4
test eax, eax
je 0x401d6b
mov byte [ebp - 4], 2
mov esi, dword [sym.imp.opennurbs.dll_public:_void___thiscall_ON_wString::destructor_void_]
lea ecx, [ebp - 0x620]
call esi
lea ecx, [ebp - 0x61c]
mov byte [ebp - 4], 1
call esi
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x401d4e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x401d64
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor al, al
jmp 0x4020a9
lea eax, [ebp - 0x620]
push eax
lea ecx, [esi + 0x874]
call dword [sym.imp.opennurbs.dll_public:_class_ON_wString_const____thiscall_ON_wString::operator_class_ON_wString_const__]
mov byte [esi + 0x871], 1
lea ecx, [ebp - 0x418]
push ecx
lea edx, [ebp - 0x218]
push edx
push 0
push 0
lea ecx, [ebp - 0x61c]
call dword [sym.imp.opennurbs.dll_public:_wchar_t_const____thiscall_ON_wString::operator_wchar_t_const__void_const]
push eax
call ebx
mov ebx, dword [sym.imp.opennurbs.dll_public:_void___thiscall_ON_wString::constructor_wchar_t_const__]
add esp, 0x14
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x628]
call ebx
lea ecx, [ebp - 0x418]
push ecx
lea ecx, [ebp - 0x624]
mov byte [ebp - 4], 4
call ebx
lea ecx, [ebp - 0x624]
mov byte [ebp - 4], 5
call dword [sym.imp.opennurbs.dll_public:_int___thiscall_ON_wString::Length_void_const]
test eax, eax
jne 0x401df6
lea edx, [ebp - 0x624]
push str..jpg
push edx
call edi
add esp, 8
mov eax, dword [ebp - 0x624]
mov ecx, dword [ebp - 0x628]
mov edx, dword [ebp - 0x620]
push eax
push ecx
push edx
lea eax, [ebp - 0x61c]
push str._s_s_s
push eax
call edi
add esp, 0x14
mov dword [ebp - 0x62c], 0
lea ecx, [ebp - 0x61c]
mov byte [ebp - 4], 6
call dword [sym.imp.opennurbs.dll_public:_wchar_t_const____thiscall_ON_wString::operator_wchar_t_const__void_const]
push eax
lea ecx, [ebp - 0x62c]
push ecx
call fcn.00402a20
cmp byte [esi + 0x870], 0
mov edi, dword [ebp - 0x62c]
je 0x401e69
lea edx, [ebp - 0x61c]
push edx
mov eax, esi
call fcn.004019a0
cmp eax, 0xffffffff
jne 0x401ffd
push 0
lea ecx, [ebp - 0x61c]
xor bl, bl
call dword [sym.imp.opennurbs.dll_public:_wchar_t_const____thiscall_ON_wString::operator_wchar_t_const__void_const]
push eax
call dword [sym.imp.MSVCR80.dll__waccess]
add esp, 8
test eax, eax
je 0x401fc6
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x401eb3
test edi, edi
je 0x401ea6
mov eax, dword [edi]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x20]
push ecx
call eax
jmp 0x401f32
mov edx, dword [ecx]
xor eax, eax
push eax
mov eax, dword [edx + 0x20]
push ecx
call eax
jmp 0x401f32
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x401efa
mov eax, dword [esi + 0x664]
mov ecx, dword [eax]
lea edx, [ebp - 0x634]
push edx
push ebx
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jne 0x401f2c
test edi, edi
mov eax, dword [esi + 0x664]
je 0x401eec
mov ecx, dword [edi]
mov edx, dword [eax]
push ecx
push ebx
push eax
mov eax, dword [edx + 0x38]
call eax
jmp 0x401f32
mov edx, dword [eax]
xor ecx, ecx
push ecx
push ebx
push eax
mov eax, dword [edx + 0x38]
call eax
jmp 0x401f32
mov edx, dword [esi + 0x87c]
test edx, edx
je 0x4020c7
test edi, edi
mov eax, dword [esi + 0x664]
je 0x401f16
mov ecx, dword [edi]
jmp 0x401f18
xor ecx, ecx
mov ebx, dword [eax]
push ecx
movzx ecx, byte [esi + 0x880]
push ecx
push edx
mov edx, dword [ebx + 0x30]
push eax
call edx
jmp 0x401f32
mov eax, dword [ebp - 0x634]
test eax, eax
je 0x401fc4
mov eax, dword [ebp - 0x61c]
push eax
push str.Unable_to_save_the_texture__s._n
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 8
lea ebx, [ebp - 0x62c]
call fcn.00402be0
mov byte [ebp - 4], 4
mov esi, dword [sym.imp.opennurbs.dll_public:_void___thiscall_ON_wString::destructor_void_]
lea ecx, [ebp - 0x624]
call esi
lea ecx, [ebp - 0x628]
mov byte [ebp - 4], 3
call esi
lea ecx, [ebp - 0x620]
mov byte [ebp - 4], 2
call esi
lea ecx, [ebp - 0x61c]
mov byte [ebp - 4], 1
call esi
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x401fa3
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x401d64
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor al, al
jmp 0x4020a9
mov bl, 1
cmp byte [esi + 0x870], 1
jne 0x401ffd
lea ecx, [ebp - 0x61c]
call dword [sym.imp.opennurbs.dll_public:_wchar_t_const____thiscall_ON_wString::operator_wchar_t_const__void_const]
push eax
push esi
call fcn.00401a10
cmp bl, 1
jne 0x401ffd
lea ecx, [ebp - 0x61c]
call dword [sym.imp.opennurbs.dll_public:_wchar_t_const____thiscall_ON_wString::operator_wchar_t_const__void_const]
push eax
call dword [sym.imp.MSVCR80.dll__wunlink]
add esp, 4
mov ecx, dword [ebp - 0x630]
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.opennurbs.dll_public:_class_ON_wString_const____thiscall_ON_wString::operator_class_ON_wString_const__]
test edi, edi
je 0x402048
lea ecx, [edi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x402048
mov eax, dword [edi]
test eax, eax
je 0x40202f
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [edi + 4]
test eax, eax
mov esi, dword [sym.imp.opennurbs.dll_onfree]
je 0x402042
push eax
call esi
add esp, 4
push edi
call esi
add esp, 4
mov byte [ebp - 4], 4
mov esi, dword [sym.imp.opennurbs.dll_public:_void___thiscall_ON_wString::destructor_void_]
lea ecx, [ebp - 0x624]
call esi
lea ecx, [ebp - 0x628]
mov byte [ebp - 4], 3
call esi
lea ecx, [ebp - 0x620]
mov byte [ebp - 4], 2
call esi
lea ecx, [ebp - 0x61c]
mov byte [ebp - 4], 1
call esi
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x402091
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4020a7
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041620c
mov esp, ebp
pop ebp
ret 0xc
lea ebx, [ebp - 0x62c]
call fcn.00402be0
mov byte [ebp - 4], 4
mov esi, dword [sym.imp.opennurbs.dll_public:_void___thiscall_ON_wString::destructor_void_]
lea ecx, [ebp - 0x624]
call esi
lea ecx, [ebp - 0x628]
mov byte [ebp - 4], 3
call esi
lea ecx, [ebp - 0x620]
mov byte [ebp - 4], 2
call esi
lea ecx, [ebp - 0x61c]
mov byte [ebp - 4], 1
call esi
xor al, al
jmp 0x4020a9