Function at 0x403800
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x43b1a2
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44f008]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x5c]
push 0x80
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x20a
push 0x10
call fcn.00420870
push 0x20a
push 0
push eax
mov dword [esp + 0x70], eax
call sub.MSVCR80.dll_memset
push 0x14
push 0x10
call fcn.00420870
mov esi, eax
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
add esp, 0x1c
test ebp, ebp
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
je 0x4038c8
mov eax, ebp
lea edx, [eax + 1]
jmp 0x403880
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x403880
push 0
push 0
sub eax, edx
mov ebx, eax
push ebx
push ebp
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
cmp edi, 0x104
jb 0x4038ac
mov edi, 0x103
mov eax, dword [esp + 0x5c]
push edi
push eax
push ebx
push ebp
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [esp + 0x5c]
mov word [ecx + edi*2], 0
mov eax, 0x4439c0
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4038d0
push 0
push 0
sub eax, edx
mov ebx, eax
push ebx
push 0x4439c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
cmp edi, 0xa
jb 0x4038fd
mov edi, 9
push edi
push esi
push ebx
push 0x4439c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, dword [esp + 0x5c]
push esi
push ebx
mov word [esi + edi*2], 0
call dword [sym.imp.MSVCR80.dll__wfopen]
mov edi, eax
add esp, 8
test edi, edi
jne 0x4039b6
push eax
push ebx
call dword [sym.imp.MSVCR80.dll__waccess]
add esp, 8
cmp eax, 0xffffffff
push ebp
jne 0x403971
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
sub esp, 0x1c
mov edx, esp
mov dword [esp + 0x78], esp
push str._does_not_exist_
push eax
push edx
mov dword [esp + 0x7c], edi
call dword [sym.imp.MSVCP80.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
add esp, 0xc
call fcn.00428bc0
lea ecx, [esp + 0x30]
jmp 0x4039a5
lea ecx, [esp + 0x34]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x78], esp
push str._file_exist_but_can_not_open_
push eax
push ecx
mov dword [esp + 0x7c], 1
call dword [sym.imp.MSVCP80.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
add esp, 0xc
call fcn.00428bc0
lea ecx, [esp + 0x4c]
add esp, 0x1c
mov dword [esp + 0x54], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
test ebx, ebx
je 0x4039c1
mov eax, ebx
call fcn.004207d0
test esi, esi
je 0x4039cc
mov eax, esi
call fcn.004207d0
mov eax, edi
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret