Function at 0x4025a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418a98
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x424320]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x124], edx
mov esi, ecx
mov dword [ebp - 0x128], esi
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0xfc]
mov dword [ebp - 0xe0], eax
xor eax, eax
push 0x1c
push str.START_CreatePatchedDirectory
mov dword [ebp - 0xe8], 7
mov dword [ebp - 0xec], 0
mov word [ebp - 0xfc], ax
call fcn.00404f00
xor dl, dl
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xfc]
call fcn.004030c0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0xe8], 8
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x402648
push dword [ebp - 0xfc]
call edi
add esp, 4
push 8
xor eax, eax
mov dword [ebp - 0x100], 7
push str.data.txt
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x104], 0
mov word [ebp - 0x114], ax
call fcn.00404f00
lea eax, [ebp - 0x114]
mov dword [ebp - 4], 1
push eax
mov edx, esi
lea ecx, [ebp - 0xa0]
call fcn.00409e20
add esp, 4
mov byte [ebp - 4], 3
cmp dword [ebp - 0x100], 8
jb 0x4026ad
push dword [ebp - 0x114]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0x100], 7
cmp dword [ebp - 0x8c], 8
mov word [ebp - 0x114], ax
lea eax, [ebp - 0xa0]
cmovae eax, dword [ebp - 0xa0]
push eax
mov dword [ebp - 0x104], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402e2d
test al, 0x10
jne 0x402e2d
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0
lea edx, [ebp - 0xa0]
movq qword [ebp - 0x40], xmm0
lea ecx, [ebp - 0x144]
call fcn.00402380
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.0040ee91
push eax
lea ecx, [ebp - 0x40]
call fcn.00404450
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], 8
call fcn.00401dd0
mov esi, dword [ebp - 0x40]
mov dword [ebp - 0xe4], esi
cmp esi, dword [ebp - 0x3c]
je 0x402b75
jmp 0x402750
xorps xmm0, xmm0
lea ecx, [ebp - 0xbc]
push esi
movdqu xmmword [ebp - 0xbc], xmm0
movq qword [ebp - 0xac], xmm0
call fcn.0040deb0
xorps xmm0, xmm0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xbc]
movq qword [ebp - 0x1c], xmm0
call fcn.0040ec4d
push ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.00404a70
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xfc]
push 4
push str.path
mov dword [ebp - 0xe8], 0xf
mov dword [ebp - 0xec], 0
mov byte [ebp - 0xfc], 0
call fcn.00404b70
lea eax, [ebp - 0xfc]
mov byte [ebp - 4], 0xb
push eax
lea ecx, [ebp - 0x1c]
call fcn.00404590
mov ecx, eax
call fcn.0040edc9
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
call fcn.00404650
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0xe8], 0x10
jb 0x402812
push dword [ebp - 0xfc]
call edi
add esp, 4
push 7
push str.changed
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0xe8], 0xf
mov dword [ebp - 0xec], 0
mov byte [ebp - 0xfc], 0
mov dword [ebp - 0xc4], 0xf
mov dword [ebp - 0xc8], 0
mov byte [ebp - 0xd8], 0
call fcn.00404b70
lea eax, [ebp - 0xd8]
mov byte [ebp - 4], 0xe
push eax
lea ecx, [ebp - 0x1c]
call fcn.00404590
cmp dword [eax + 8], 1
jne 0x402dfc
mov al, byte [eax + 0x10]
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0xc4], 0x10
mov byte [ebp - 0xbd], al
jb 0x402898
push dword [ebp - 0xd8]
call edi
add esp, 4
cmp dword [ebp - 0x5c], 0x10
lea eax, [ebp - 0x70]
lea ecx, [ebp - 0x120]
cmovae eax, dword [ebp - 0x70]
push eax
call fcn.004042c0
mov edx, eax
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x118]
call fcn.00403300
mov byte [ebp - 4], 0x10
mov edx, dword [eax]
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
cmp word [edx], ax
jne 0x4028e3
xor ecx, ecx
jmp 0x4028ff
mov ecx, edx
lea edi, [ecx + 2]
jmp 0x4028f0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4028f0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x58]
call fcn.00404f00
mov byte [ebp - 4], 0x12
or ecx, 0xffffffff
mov edx, dword [ebp - 0x118]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40292d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x13
or ecx, 0xffffffff
mov edx, dword [ebp - 0x120]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402951
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0x58]
mov eax, dword [ebp - 0x48]
cmovae ecx, dword [ebp - 0x58]
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x58]
mov edi, eax
cmovae ecx, dword [ebp - 0x58]
xor edx, edx
sub edi, ecx
inc edi
shr edi, 1
cmp ecx, eax
cmova edi, edx
test edi, edi
je 0x402997
lea esi, [edx + 0x5c]
mov edi, edi
cmp word [ecx], 0x2f
jne 0x402989
mov word [ecx], si
inc edx
add ecx, 2
cmp edx, edi
jne 0x402980
mov esi, dword [ebp - 0xe4]
xor eax, eax
mov dword [ebp - 0x20], 7
push eax
push 0x41e084
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x24], 0
mov word [ebp - 0x34], ax
call fcn.00404f00
cmp byte [ebp - 0xbd], 0
mov byte [ebp - 4], 0x14
je 0x4029d4
mov edx, dword [ebp - 0x128]
lea ecx, [ebp - 0xd8]
jmp 0x402a0f
mov edi, dword [ebp - 0x124]
cmp dword [edi + 0x14], 8
jb 0x4029e4
mov eax, dword [edi]
jmp 0x4029e6
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4029fd
test al, 0x10
je 0x4029fd
mov eax, 1
jmp 0x4029ff
xor eax, eax
lea ecx, [ebp - 0xd8]
test eax, eax
je 0x402cac
mov edx, edi
lea eax, [ebp - 0x58]
push eax
call fcn.00409e20
lea ecx, [ebp - 0x34]
mov dword [ebp - 0xdc], eax
add esp, 4
cmp ecx, eax
je 0x402a5b
cmp dword [ebp - 0x20], 8
jb 0x402a42
push dword [ebp - 0x34]
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
call edi
mov eax, dword [ebp - 0xdc]
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], cx
mov dword [ebp - 0x24], ecx
lea ecx, [ebp - 0x34]
push eax
call fcn.004047c0
cmp dword [ebp - 0xc4], 8
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x402a75
push dword [ebp - 0xd8]
call edi
add esp, 4
mov edx, dword [ebp - 0xe0]
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x88]
call fcn.00409e20
add esp, 4
lea edx, [ebp - 0x88]
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x34]
call fcn.0040bcb0
test eax, eax
je 0x402c2b
cmp dword [ebp - 0x74], 8
jb 0x402ab8
push dword [ebp - 0x88]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0x74], 7
cmp dword [ebp - 0x20], 8
mov dword [ebp - 0x78], 0
mov word [ebp - 0x88], ax
jb 0x402add
push dword [ebp - 0x34]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0x20], 7
cmp dword [ebp - 0x44], 8
mov dword [ebp - 0x24], 0
mov word [ebp - 0x34], ax
jb 0x402aff
push dword [ebp - 0x58]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0x44], 7
cmp dword [ebp - 0x5c], 0x10
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
jb 0x402b21
push dword [ebp - 0x70]
call edi
add esp, 4
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
push eax
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
push dword [eax]
lea eax, [ebp - 0x11c]
push eax
call fcn.00405280
push dword [ebp - 0x1c]
call edi
add esp, 4
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xbc]
call fcn.00401dd0
add esi, 0x18
mov dword [ebp - 0xe4], esi
cmp esi, dword [ebp - 0x3c]
jne 0x402750
push 0x24
xor eax, eax
mov dword [ebp - 0xc4], 7
push str.END_CreatePatchedDirectory::_SUCCESS
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0xc8], 0
mov word [ebp - 0xd8], ax
call fcn.00404f00
xor dl, dl
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0xd8]
call fcn.004030c0
cmp dword [ebp - 0xc4], 8
jb 0x402bc9
push dword [ebp - 0xd8]
call edi
add esp, 4
mov byte [ebp - 0xbd], 1
mov byte [ebp - 4], 3
cmp dword [ebp - 0x40], 0
je 0x402ede
lea ecx, [ebp - 0x40]
call dword [sym.imp.MSVCP120.dll_public:_void___thiscall_std::_Container_base0::_Orphan_all_void_]
mov eax, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x40]
cmp esi, eax
je 0x402c0b
mov edi, eax
mov eax, dword [esi]
mov ecx, esi
push 0
call dword [eax]
add esi, 0x18
cmp esi, edi
jne 0x402bf3
mov esi, dword [ebp - 0x40]
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
push esi
call edi
add esp, 4
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
jmp 0x402ede
push 0x3e
xor eax, eax
mov dword [ebp - 0xc4], 7
push str.END_CreatePatchedDirectory::_COPY_FAILURE__RETURNING_FROM_HERE
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0xc8], 0
mov word [ebp - 0xd8], ax
call fcn.00404f00
xor dl, dl
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0xd8]
call fcn.004030c0
cmp dword [ebp - 0xc4], 8
jb 0x402c7f
push dword [ebp - 0xd8]
call edi
add esp, 4
cmp dword [ebp - 0x74], 8
jb 0x402c90
push dword [ebp - 0x88]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0x74], 7
mov dword [ebp - 0x78], 0
mov word [ebp - 0x88], ax
jmp 0x402d56
push 0x36
xor eax, eax
mov dword [ebp - 0xc4], 7
push str.END_CreatePatchedDirectory::_RESOURCE_FOLDER_NOT_FOUND
mov dword [ebp - 0xc8], 0
mov word [ebp - 0xd8], ax
call fcn.00404f00
xor dl, dl
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0xd8]
call fcn.004030c0
mov byte [ebp - 4], 0x14
cmp dword [ebp - 0xc4], 8
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x402d04
push dword [ebp - 0xd8]
call edi
add esp, 4
push 0x19
xor eax, eax
mov dword [ebp - 0xc4], 7
push str.RESOURCE_FOLDER_NOT_FOUND
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0xc8], 0
mov word [ebp - 0xd8], ax
call fcn.00404f00
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 0x16
call fcn.00402f20
cmp dword [ebp - 0xc4], 8
jb 0x402d56
push dword [ebp - 0xd8]
call edi
add esp, 4
cmp dword [ebp - 0x20], 8
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x402d6a
push dword [ebp - 0x34]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0x20], 7
cmp dword [ebp - 0x44], 8
mov dword [ebp - 0x24], 0
mov word [ebp - 0x34], ax
jb 0x402d8c
push dword [ebp - 0x58]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0x44], 7
cmp dword [ebp - 0x5c], 0x10
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
jb 0x402dae
push dword [ebp - 0x70]
call edi
add esp, 4
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
push eax
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
push dword [eax]
lea eax, [ebp - 0x11c]
push eax
call fcn.00405280
push dword [ebp - 0x1c]
call edi
add esp, 4
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xbc]
call fcn.00401dd0
mov byte [ebp - 0xbd], 0
jmp 0x402bd0
lea ecx, [ebp - 0x10c]
call dword [sym.imp.MSVCR120.dll_public:_void___thiscall_std::exception::constructor_void_]
push 0x421ea8
lea eax, [ebp - 0x10c]
mov dword [ebp - method.RNAException.virtual_0], vtable.RNAException.0
push eax
mov dword [ebp - 0x100], 3
call sub.MSVCR120.dll__CxxThrowException
push 0x44
xor eax, eax
mov dword [ebp - 0xc4], 7
push str.END_CreatePatchedDirectory::_DATA.TXT_NOT_FOUND__RETURNING_FROM_HERE
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0xc8], 0
mov word [ebp - 0xd8], ax
call fcn.00404f00
xor dl, dl
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xd8]
call fcn.004030c0
mov byte [ebp - 4], 3
cmp dword [ebp - 0xc4], 8
jb 0x402e85
push dword [ebp - 0xd8]
call edi
add esp, 4
push 0x25
xor eax, eax
mov dword [ebp - 0xc4], 7
push str.UNABLE_TO_LOCATE_WEBRESOURCE_DATAFILE
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0xc8], 0
mov word [ebp - 0xd8], ax
call fcn.00404f00
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 5
call fcn.00402f20
cmp dword [ebp - 0xc4], 8
jb 0x402ed7
push dword [ebp - 0xd8]
call edi
add esp, 4
mov byte [ebp - 0xbd], 0
cmp dword [ebp - 0x8c], 8
jb 0x402ef2
push dword [ebp - 0xa0]
call edi
add esp, 4
mov al, byte [ebp - 0xbd]
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.004176f4
mov esp, ebp
pop ebp
ret