Function at 0x4047f0
Capabilities:
Check if file exists
Copy file
Create directory
Delete directory
Delete file
Get common file path
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5dc
mov eax, dword [0x456018]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x44ebc8
push 0x133
push 0x44ebd4
push 0x44ebf0
push 5
call fcn.00402aff
add esp, 0x14
mov dword [ebp - 0x4d0], 0
mov dword [ebp - 0x5d0], 0
mov dword [ebp - 0x558], 0
mov dword [ebp - 0x55c], 0
mov dword [ebp - 0x4c4], 0x64
mov dword [0x456990], 1
mov eax, dword [ebp + 8]
mov ecx, dword [eax*4 + 0x4583a8]
mov dword [ebp - 0x4c0], ecx
cmp dword [ebp - 0x4c0], 0
jne 0x404881
mov eax, 0x86180002
jmp 0x405c60
mov edx, dword [ebp - 0x4c0]
cmp dword [edx + 0x405c], 0x800
jbe 0x40489d
mov eax, 0x86180007
jmp 0x405c60
mov eax, dword [ebp - 0x4c0]
mov ecx, dword [eax + 0x405c]
push ecx
mov edx, dword [ebp + 8]
push edx
push str.LJ_WriteAllFile_zipid___d___NumFiles___d
push 0x14e
push 0x44ece8
push 0x44ed08
push 4
call fcn.00402aff
add esp, 0x1c
mov dword [ebp - 0x4d4], 0
jmp 0x4048e7
mov eax, dword [ebp - 0x4d4]
add eax, 1
mov dword [ebp - 0x4d4], eax
mov ecx, dword [ebp - 0x4c0]
mov edx, dword [ebp - 0x4d4]
cmp edx, dword [ecx + 0x405c]
jae 0x405c5a
cmp dword [ebp + 0xc], 0
je 0x404911
call dword [ebp + 0xc]
test eax, eax
jne 0x404911
jmp 0x405c5a
mov eax, dword [ebp - 0x4d4]
shl eax, 5
mov ecx, dword [ebp - 0x4c0]
add eax, dword [ecx + 0x4050]
mov dword [ebp - 0x538], eax
mov edx, dword [ebp - 0x4c0]
mov eax, dword [edx + 0x90a4]
mov ecx, dword [ebp - 0x4c0]
lea edx, [ecx + eax*2 + 0x80a4]
push edx
mov eax, dword [ebp - 0x4d4]
push eax
mov ecx, dword [ebp - 0x4c0]
add ecx, 0x4040
push ecx
call fcn.00408780
add esp, 0xc
mov dword [ebp - 0x5dc], eax
mov dword [ebp - 0x560], 0
mov dword [ebp - 0x4c8], 0
jmp 0x40498d
mov edx, dword [ebp - 0x4c8]
add edx, 1
mov dword [ebp - 0x4c8], edx
mov eax, dword [ebp - 0x4c0]
mov ecx, dword [ebp - 0x4c8]
cmp ecx, dword [eax + 0x9ad0]
jae 0x404a28
mov edx, dword [ebp - 0x4c0]
mov eax, dword [edx + 0x90a4]
mov ecx, dword [ebp - 0x4c0]
lea edx, [ecx + eax*2 + 0x80a4]
push edx
imul eax, dword [ebp - 0x4c8], 0x208
mov ecx, dword [ebp - 0x4c0]
lea edx, [ecx + eax + 0x90a8]
push edx
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x404a23
imul eax, dword [ebp - 0x4c8], 0x208
mov ecx, dword [ebp - 0x4c0]
lea edx, [ecx + eax + 0x90a8]
push edx
push str.WriteFile_ExcludeFile__s
push 0x15c
push 0x44eddc
push 0x44edf8
push 4
call fcn.00402aff
add esp, 0x18
mov dword [ebp - 0x560], 1
jmp 0x404a28
jmp 0x40497e
cmp dword [ebp - 0x560], 0
je 0x404a36
jmp 0x4048d8
mov eax, dword [ebp - 0x4c0]
mov ecx, dword [eax + 0x90a4]
mov edx, dword [ebp - 0x4c0]
lea eax, [edx + ecx*2 + 0x80a4]
push eax
lea ecx, [ebp - 0x42c]
call fcn.00402352
mov ecx, dword [ebp - 0x4c0]
add ecx, 0x9ad4
mov dword [ebp - 0x4f8], ecx
mov edx, dword [ebp - 0x4f8]
add edx, 2
mov dword [ebp - 0x584], edx
mov eax, dword [ebp - 0x4f8]
mov cx, word [eax]
mov word [ebp - 0x544], cx
add dword [ebp - 0x4f8], 2
cmp word [ebp - 0x544], 0
jne 0x404a7c
mov edx, dword [ebp - 0x4f8]
sub edx, dword [ebp - 0x584]
sar edx, 1
mov dword [ebp - 0x5b0], edx
je 0x404b0b
push 0
mov eax, dword [ebp - 0x4c0]
add eax, 0x9ad4
push eax
lea ecx, [ebp - 0x42c]
call fcn.00406080
test eax, eax
jne 0x404b0b
mov ecx, dword [ebp - 0x4c0]
add ecx, 0x80a4
push ecx
push str.WriteFile_ExcludeDir_s
push 0x167
push 0x44eecc
push 0x44eee8
push 4
call fcn.00402aff
add esp, 0x18
lea ecx, [ebp - 0x42c]
call fcn.0040234d
jmp 0x4048d8
mov edx, dword [ebp - 0x4c0]
mov eax, dword [edx + 0x90a4]
mov dword [ebp - 0x4c8], eax
jmp 0x404b2e
mov ecx, dword [ebp - 0x4c8]
add ecx, 1
mov dword [ebp - 0x4c8], ecx
mov edx, dword [ebp - 0x4c8]
mov eax, dword [ebp - 0x4c0]
movzx ecx, word [eax + edx*2 + 0x80a4]
test ecx, ecx
je 0x404efb
mov edx, dword [ebp - 0x4c8]
mov eax, dword [ebp - 0x4c0]
movzx ecx, word [eax + edx*2 + 0x80a4]
cmp ecx, 0x2f
jne 0x404ef6
xor edx, edx
mov eax, dword [ebp - 0x4c8]
mov ecx, dword [ebp - 0x4c0]
mov word [ecx + eax*2 + 0x80a4], dx
mov edx, dword [ebp - 0x4c0]
add edx, 0x80a4
push edx
call fcn.00409e90
add esp, 4
test eax, eax
je 0x404edd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x4fc], eax
cmp dword [ebp - 0x4fc], 0xb7
je 0x404edd
cmp dword [ebp - 0x4fc], 0x50
je 0x404edd
cmp dword [ebp - 0x4c4], 0x4e20
jge 0x404c2a
mov eax, dword [ebp - 0x4c4]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x4c0]
add ecx, 0x80a4
push ecx
call fcn.00409e90
add esp, 4
test eax, eax
jne 0x404bf7
jmp 0x404c2a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x4fc], eax
cmp dword [ebp - 0x4fc], 0xb7
je 0x404c18
cmp dword [ebp - 0x4fc], 0x50
jne 0x404c1a
jmp 0x404c2a
mov edx, dword [ebp - 0x4c4]
shl edx, 1
mov dword [ebp - 0x4c4], edx
jmp 0x404bc3
cmp dword [ebp - 0x4c4], 0x4e20
jl 0x404ed3
push 0
mov eax, dword [ebp - 0x4c0]
add eax, 0x80a4
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x404ed3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x5d4], eax
mov ecx, dword [ebp - 0x4c0]
add ecx, 0x80a4
push ecx
lea ecx, [ebp - 0x444]
call fcn.00402352
push 0x44ef88
lea ecx, [ebp - 0x444]
call fcn.0040231d
mov dword [ebp - 0x564], 1
push 0
lea ecx, [ebp - 0x444]
call fcn.00402312
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
jne 0x404d1d
push 9
mov edx, dword [ebp - 0x4c0]
add edx, 0x80a4
push edx
lea ecx, [ebp - 0x444]
call fcn.00402312
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x404ce1
mov dword [ebp - 0x564], 0
jmp 0x404d1d
lea ecx, [ebp - 0x444]
call fcn.00402312
push eax
push 0x44ef94
push 0x18f
push 0x44efc4
push 0x44efe0
push 4
call fcn.00402aff
add esp, 0x18
lea ecx, [ebp - 0x444]
call fcn.00402312
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp dword [ebp - 0x564], 0
je 0x404ec8
mov eax, dword [ebp - 0x4c0]
add eax, 0x80a4
mov dword [ebp - 0x500], eax
mov ecx, dword [ebp - 0x500]
add ecx, 2
mov dword [ebp - 0x5b4], ecx
mov edx, dword [ebp - 0x500]
mov ax, word [edx]
mov word [ebp - 0x522], ax
add dword [ebp - 0x500], 2
cmp word [ebp - 0x522], 0
jne 0x404d4a
mov ecx, dword [ebp - 0x500]
sub ecx, dword [ebp - 0x5b4]
sar ecx, 1
mov dword [ebp - 0x5b8], ecx
mov edx, dword [ebp - 0x5b8]
shl edx, 1
push edx
mov eax, dword [ebp - 0x4c0]
add eax, 0x80a4
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00421450
add esp, 0xc
mov edx, dword [ebp - 0x4c0]
add edx, 0x80a4
mov dword [ebp - 0x504], edx
mov eax, dword [ebp - 0x504]
add eax, 2
mov dword [ebp - 0x5bc], eax
mov ecx, dword [ebp - 0x504]
mov dx, word [ecx]
mov word [ebp - 0x524], dx
add dword [ebp - 0x504], 2
cmp word [ebp - 0x524], 0
jne 0x404dc1
mov eax, dword [ebp - 0x504]
sub eax, dword [ebp - 0x5bc]
sar eax, 1
mov dword [ebp - 0x5c0], eax
xor ecx, ecx
mov edx, dword [ebp - 0x5c0]
mov eax, dword [ebp + 0x10]
mov word [eax + edx*2], cx
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffffe
mov dword [ebp - 0x510], ecx
mov edx, dword [ebp - 0x510]
mov ax, word [edx + 2]
mov word [ebp - 0x526], ax
add dword [ebp - 0x510], 2
cmp word [ebp - 0x526], 0
jne 0x404e11
mov edi, dword [ebp - 0x510]
mov ecx, dword [0x44f080]
mov dword [edi], ecx
mov edx, dword [0x44f084]
mov dword [edi + 4], edx
mov ax, word [0x44f088]
mov word [edi + 8], ax
mov dword [ebp - 0x4d0], 0x86180003
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, dword [ebp - 0x4c0]
add edx, 0x80a4
push edx
push 0x44f08c
push 0x19b
push 0x44f0c8
push 0x44f0e8
push 2
call fcn.00402aff
add esp, 0x1c
mov eax, dword [ebp - 0x4d0]
mov dword [ebp - 0x5c4], eax
lea ecx, [ebp - 0x444]
call fcn.0040234d
lea ecx, [ebp - 0x42c]
call fcn.0040234d
mov eax, dword [ebp - 0x5c4]
jmp 0x405c60
lea ecx, [ebp - 0x444]
call fcn.0040234d
mov dword [ebp - 0x4c4], 0x64
mov ecx, 0x5c
mov edx, dword [ebp - 0x4c8]
mov eax, dword [ebp - 0x4c0]
mov word [eax + edx*2 + 0x80a4], cx
jmp 0x404b1f
mov ecx, dword [ebp - 0x538]
movzx edx, byte [ecx + 0x19]
test edx, edx
je 0x40526a
mov eax, dword [ebp - 0x4c0]
add eax, 0x80a4
push eax
call fcn.00409e90
add esp, 4
test eax, eax
je 0x405265
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x508], eax
cmp dword [ebp - 0x508], 0xb7
je 0x405265
cmp dword [ebp - 0x508], 0x50
je 0x405265
cmp dword [ebp - 0x4c4], 0x4e20
jge 0x404fb9
mov ecx, dword [ebp - 0x4c4]
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 0x4c0]
add edx, 0x80a4
push edx
call fcn.00409e90
add esp, 4
test eax, eax
jne 0x404f86
jmp 0x404fb9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x508], eax
cmp dword [ebp - 0x508], 0xb7
je 0x404fa7
cmp dword [ebp - 0x508], 0x50
jne 0x404fa9
jmp 0x404fb9
mov eax, dword [ebp - 0x4c4]
shl eax, 1
mov dword [ebp - 0x4c4], eax
jmp 0x404f52
cmp dword [ebp - 0x4c4], 0x4e20
jl 0x405265
push 0
mov ecx, dword [ebp - 0x4c0]
add ecx, 0x80a4
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x405265
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x5d8], eax
mov edx, dword [ebp - 0x4c0]
add edx, 0x80a4
push edx
lea ecx, [ebp - 0x45c]
call fcn.00402352
push 0x44f188
lea ecx, [ebp - 0x45c]
call fcn.0040231d
mov dword [ebp - 0x54c], 1
push 0
mov eax, dword [ebp - 0x4c0]
add eax, 0x80a4
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
jne 0x4050ad
push 9
mov ecx, dword [ebp - 0x4c0]
add ecx, 0x80a4
push ecx
lea ecx, [ebp - 0x45c]
call fcn.00402312
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x405071
mov dword [ebp - 0x54c], 0
jmp 0x4050ad
lea ecx, [ebp - 0x45c]
call fcn.00402312
push eax
push str.RemoveDirectory_dir_s
push 0x1c8
push 0x44f1c4
push 0x44f1e0
push 4
call fcn.00402aff
add esp, 0x18
lea ecx, [ebp - 0x45c]
call fcn.00402312
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp dword [ebp - 0x54c], 0
je 0x40525a
mov edx, dword [ebp - 0x4c0]
add edx, 0x80a4
mov dword [ebp - 0x50c], edx
mov eax, dword [ebp - 0x50c]
add eax, 2
mov dword [ebp - 0x5c8], eax
mov ecx, dword [ebp - 0x50c]
mov dx, word [ecx]
mov word [ebp - 0x528], dx
add dword [ebp - 0x50c], 2
cmp word [ebp - 0x528], 0
jne 0x4050db
mov eax, dword [ebp - 0x50c]
sub eax, dword [ebp - 0x5c8]
sar eax, 1
mov dword [ebp - 0x5cc], eax
mov ecx, dword [ebp - 0x5cc]
shl ecx, 1
push ecx
mov edx, dword [ebp - 0x4c0]
add edx, 0x80a4
push edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.00421450
add esp, 0xc
mov ecx, dword [ebp - 0x4c0]
add ecx, 0x80a4
mov dword [ebp - 0x4dc], ecx
mov edx, dword [ebp - 0x4dc]
add edx, 2
mov dword [ebp - 0x568], edx
mov eax, dword [ebp - 0x4dc]
mov cx, word [eax]
mov word [ebp - 0x52a], cx
add dword [ebp - 0x4dc], 2
cmp word [ebp - 0x52a], 0
jne 0x405153
mov edx, dword [ebp - 0x4dc]
sub edx, dword [ebp - 0x568]
sar edx, 1
mov dword [ebp - 0x56c], edx
xor eax, eax
mov ecx, dword [ebp - 0x56c]
mov edx, dword [ebp + 0x10]
mov word [edx + ecx*2], ax
mov eax, dword [ebp + 0x10]
add eax, 0xfffffffe
mov dword [ebp - 0x514], eax
mov ecx, dword [ebp - 0x514]
mov dx, word [ecx + 2]
mov word [ebp - 0x53e], dx
add dword [ebp - 0x514], 2
cmp word [ebp - 0x53e], 0
jne 0x4051a3
mov edi, dword [ebp - 0x514]
mov eax, dword [str._Dir]
mov dword [edi], eax
mov ecx, dword [0x44f284]
mov dword [edi + 4], ecx
mov dx, word [0x44f288]
mov word [edi + 8], dx
mov dword [ebp - 0x4d0], 0x86180003
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, dword [ebp - 0x4c0]
add edx, 0x80a4
push edx
push str.CreateDir_File_s__Error__d
push 0x1d4
push 0x44f2c8
push 0x44f2e8
push 4
call fcn.00402aff
add esp, 0x1c
mov eax, dword [ebp - 0x4d0]
mov dword [ebp - 0x570], eax
lea ecx, [ebp - 0x45c]
call fcn.0040234d
lea ecx, [ebp - 0x42c]
call fcn.0040234d
mov eax, dword [ebp - 0x570]
jmp 0x405c60
lea ecx, [ebp - 0x45c]
call fcn.0040234d
jmp 0x405c4a
mov dword [ebp - 0x4c4], 0x64
mov ecx, dword [ebp - 0x4c0]
add ecx, 0x80a4
push ecx
lea edx, [ebp - 0x4cc]
push edx
call fcn.00409ec0
add esp, 8
test eax, eax
je 0x4057b3
cmp dword [ebp - 0x4c4], 0x4e20
jge 0x4052e3
mov eax, dword [ebp - 0x4c4]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x4c0]
add ecx, 0x80a4
push ecx
lea edx, [ebp - 0x4cc]
push edx
call fcn.00409ec0
add esp, 8
test eax, eax
jne 0x4052d3
jmp 0x4052e3
mov eax, dword [ebp - 0x4c4]
shl eax, 1
mov dword [ebp - 0x4c4], eax
jmp 0x405298
cmp dword [ebp - 0x4c4], 0x4e20
jl 0x4057a9
mov dword [ebp - 0x554], 0
mov dword [ebp - 0x4d8], 0
mov ecx, dword [ebp - 0x4c0]
add ecx, 0x80a4
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4053cf
mov edx, dword [ebp - 0x4c0]
add edx, 0x80a4
push edx
lea ecx, [ebp - 0x48c]
call fcn.00402352
push str._rename
lea eax, [ebp - 0x48c]
push eax
lea ecx, [ebp - 0x4bc]
push ecx
call fcn.004061f0
add esp, 0xc
push eax
lea ecx, [ebp - 0x48c]
call fcn.004060d0
lea ecx, [ebp - 0x4bc]
call fcn.0040234d
push 9
lea ecx, [ebp - 0x48c]
call fcn.00402312
push eax
mov edx, dword [ebp - 0x4c0]
add edx, 0x80a4
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x40539b
mov dword [ebp - 0x554], 1
mov eax, dword [ebp - 0x4c0]
add eax, 0x80a4
push eax
lea ecx, [ebp - 0x4cc]
push ecx
call fcn.00409ec0
add esp, 8
test eax, eax
jne 0x4053c4
mov dword [ebp - 0x4d8], 1
lea ecx, [ebp - 0x48c]
call fcn.0040234d
cmp dword [ebp - 0x4d8], 0
jne 0x4054c0
mov edx, dword [ebp - 0x4c0]
add edx, 0x80a4
push edx
lea ecx, [ebp - 0x474]
call fcn.00402352
push str._temp
lea eax, [ebp - 0x474]
push eax
lea ecx, [ebp - 0x4a4]
push ecx
call fcn.004061f0
add esp, 0xc
push eax
lea ecx, [ebp - 0x474]
call fcn.004060d0
lea ecx, [ebp - 0x4a4]
call fcn.0040234d
lea ecx, [ebp - 0x474]
call fcn.00402312
push eax
lea edx, [ebp - 0x4cc]
push edx
call fcn.00409ec0
add esp, 8
test eax, eax
jne 0x4054b5
mov eax, dword [ebp - 0x4cc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xb
mov ecx, dword [ebp - 0x4c0]
add ecx, 0x80a4
push ecx
lea ecx, [ebp - 0x474]
call fcn.00402312
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x4054b5
push 0
push 0x80
push 3
push 0
push 1
push 0x40000000
mov edx, dword [ebp - 0x4c0]
add edx, 0x80a4
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x4cc], eax
cmp dword [ebp - 0x4cc], 0xffffffff
je 0x4054b5
mov dword [ebp - 0x4d8], 1
lea ecx, [ebp - 0x474]
call fcn.0040234d
mov dword [ebp - 0x534], 0
cmp dword [ebp - 0x4d8], 0
jne 0x4055f6
push 0x208
push 0
lea eax, [ebp - 0x414]
push eax
call fcn.00421280
add esp, 0xc
push 0x208
push 0
lea ecx, [ebp - 0x20c]
push ecx
call fcn.00421280
add esp, 0xc
lea edx, [ebp - 0x414]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.thunderErrorFile
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x550], eax
cmp dword [ebp - 0x550], 0xffffffff
je 0x4055f6
mov eax, dword [ebp - 0x550]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
mov ecx, dword [ebp - 0x4c0]
add ecx, 0x80a4
push ecx
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x4055d8
push 0
push 0x80
push 3
push 0
push 1
push 0x40000000
mov eax, dword [ebp - 0x4c0]
add eax, 0x80a4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x4cc], eax
cmp dword [ebp - 0x4cc], 0xffffffff
je 0x4055cc
mov dword [ebp - 0x4d8], 1
jmp 0x4055d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x534], eax
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4055f6
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x4d8], 0
jne 0x4057a9
mov eax, dword [ebp - 0x4c0]
add eax, 0x80a4
mov dword [ebp - 0x4e0], eax
mov ecx, dword [ebp - 0x4e0]
add ecx, 2
mov dword [ebp - 0x574], ecx
mov edx, dword [ebp - 0x4e0]
mov ax, word [edx]
mov word [ebp - 0x52c], ax
add dword [ebp - 0x4e0], 2
cmp word [ebp - 0x52c], 0
jne 0x405623
mov ecx, dword [ebp - 0x4e0]
sub ecx, dword [ebp - 0x574]
sar ecx, 1
mov dword [ebp - 0x578], ecx
mov edx, dword [ebp - 0x578]
shl edx, 1
push edx
mov eax, dword [ebp - 0x4c0]
add eax, 0x80a4
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00421450
add esp, 0xc
mov edx, dword [ebp - 0x4c0]
add edx, 0x80a4
mov dword [ebp - 0x4e4], edx
mov eax, dword [ebp - 0x4e4]
add eax, 2
mov dword [ebp - 0x57c], eax
mov ecx, dword [ebp - 0x4e4]
mov dx, word [ecx]
mov word [ebp - 0x52e], dx
add dword [ebp - 0x4e4], 2
cmp word [ebp - 0x52e], 0
jne 0x40569a
mov eax, dword [ebp - 0x4e4]
sub eax, dword [ebp - 0x57c]
sar eax, 1
mov dword [ebp - 0x580], eax
xor ecx, ecx
mov edx, dword [ebp - 0x580]
mov eax, dword [ebp + 0x10]
mov word [eax + edx*2], cx
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffffe
mov dword [ebp - 0x518], ecx
mov edx, dword [ebp - 0x518]
mov ax, word [edx + 2]
mov word [ebp - 0x548], ax
add dword [ebp - 0x518], 2
cmp word [ebp - 0x548], 0
jne 0x4056ea
mov edi, dword [ebp - 0x518]
mov ecx, dword [str._Open]
mov dword [edi], ecx
mov edx, dword [str.0u_]
mov dword [edi + 4], edx
mov eax, dword [0x44f3d0]
mov dword [edi + 8], eax
cmp dword [ebp - 0x554], 0
je 0x405740
mov dword [ebp - 0x4d0], 0x86180006
jmp 0x40574a
mov dword [ebp - 0x4d0], 0x86180003
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x534]
mov dword [ecx], edx
mov eax, dword [ebp - 0x534]
push eax
mov ecx, dword [ebp - 0x4c0]
add ecx, 0x80a4
push ecx
push 0x44f3d4
push 0x23f
push 0x44f414
push 0x44f430
push 2
call fcn.00402aff
add esp, 0x1c
mov edx, dword [ebp - 0x4d0]
mov dword [ebp - 0x5ac], edx
lea ecx, [ebp - 0x42c]
call fcn.0040234d
mov eax, dword [ebp - 0x5ac]
jmp 0x405c60
mov dword [ebp - 0x4c4], 0x64
mov eax, dword [ebp - 0x55c]
mov dword [ebp - 0x558], eax
mov ecx, dword [ebp - 0x4d4]
mov edx, dword [ebp - 0x4c0]
lea eax, [edx + ecx*4 + 0x60a4]
push eax
mov ecx, dword [ebp - 0x4d4]
mov edx, dword [ebp - 0x4c0]
mov eax, dword [edx + ecx*4 + 0x40a4]
push eax
lea ecx, [ebp - 0x4cc]
push ecx
call fcn.00409c90
add esp, 0xc
test eax, eax
jne 0x40580c
mov edx, dword [ebp - 0x558]
cmp edx, dword [ebp - 0x55c]
je 0x405a1d
cmp dword [ebp - 0x4c4], 0x4e20
jge 0x405872
mov eax, dword [ebp - 0x4c4]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x4d4]
mov edx, dword [ebp - 0x4c0]
lea eax, [edx + ecx*4 + 0x60a4]
push eax
mov ecx, dword [ebp - 0x4d4]
mov edx, dword [ebp - 0x4c0]
mov eax, dword [edx + ecx*4 + 0x40a4]
push eax
lea ecx, [ebp - 0x4cc]
push ecx
call fcn.00409c90
add esp, 0xc
test eax, eax
jne 0x405862
jmp 0x405872
mov edx, dword [ebp - 0x4c4]
shl edx, 1
mov dword [ebp - 0x4c4], edx
jmp 0x40580c
cmp dword [ebp - 0x4c4], 0x4e20
jl 0x405a1d
mov eax, dword [ebp - 0x4c0]
add eax, 0x80a4
mov dword [ebp - 0x4e8], eax
mov ecx, dword [ebp - 0x4e8]
add ecx, 2
mov dword [ebp - 0x588], ecx
mov edx, dword [ebp - 0x4e8]
mov ax, word [edx]
mov word [ebp - 0x546], ax
add dword [ebp - 0x4e8], 2
cmp word [ebp - 0x546], 0
jne 0x4058a2
mov ecx, dword [ebp - 0x4e8]
sub ecx, dword [ebp - 0x588]
sar ecx, 1
mov dword [ebp - 0x58c], ecx
mov edx, dword [ebp - 0x58c]
shl edx, 1
push edx
mov eax, dword [ebp - 0x4c0]
add eax, 0x80a4
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00421450
add esp, 0xc
mov edx, dword [ebp - 0x4c0]
add edx, 0x80a4
mov dword [ebp - 0x4ec], edx
mov eax, dword [ebp - 0x4ec]
add eax, 2
mov dword [ebp - 0x590], eax
mov ecx, dword [ebp - 0x4ec]
mov dx, word [ecx]
mov word [ebp - 0x530], dx
add dword [ebp - 0x4ec], 2
cmp word [ebp - 0x530], 0
jne 0x405919
mov eax, dword [ebp - 0x4ec]
sub eax, dword [ebp - 0x590]
sar eax, 1
mov dword [ebp - 0x594], eax
xor ecx, ecx
mov edx, dword [ebp - 0x594]
mov eax, dword [ebp + 0x10]
mov word [eax + edx*2], cx
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffffe
mov dword [ebp - 0x520], ecx
mov edx, dword [ebp - 0x520]
mov ax, word [edx + 2]
mov word [ebp - 0x542], ax
add dword [ebp - 0x520], 2
cmp word [ebp - 0x542], 0
jne 0x405969
mov edi, dword [ebp - 0x520]
mov ecx, dword [str._Write]
mov dword [edi], ecx
mov edx, dword [0x44f4d4]
mov dword [edi + 4], edx
mov eax, dword [0x44f4d8]
mov dword [edi + 8], eax
mov cx, word [0x44f4dc]
mov word [edi + 0xc], cx
mov dword [ebp - 0x4d0], 0x86180003
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 0x14]
mov dword [edx], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp - 0x4c0]
add eax, 0x80a4
push eax
push 0x44f4e0
push 0x258
push 0x44f520
push 0x44f540
push 2
call fcn.00402aff
add esp, 0x1c
mov ecx, dword [ebp - 0x4d0]
mov dword [ebp - 0x598], ecx
lea ecx, [ebp - 0x42c]
call fcn.0040234d
mov eax, dword [ebp - 0x598]
jmp 0x405c60
lea edx, [ebp - 0x4cc]
push edx
call fcn.00409bb0
add esp, 4
test eax, eax
je 0x405bf4
cmp dword [0x456990], 0
je 0x405a52
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [0x456990], 0
lea eax, [ebp - 0x4cc]
push eax
call fcn.00409bb0
add esp, 4
test eax, eax
je 0x405bf4
mov ecx, dword [ebp - 0x4c0]
add ecx, 0x80a4
mov dword [ebp - 0x4f0], ecx
mov edx, dword [ebp - 0x4f0]
add edx, 2
mov dword [ebp - 0x59c], edx
mov eax, dword [ebp - 0x4f0]
mov cx, word [eax]
mov word [ebp - 0x540], cx
add dword [ebp - 0x4f0], 2
cmp word [ebp - 0x540], 0
jne 0x405a8a
mov edx, dword [ebp - 0x4f0]
sub edx, dword [ebp - 0x59c]
sar edx, 1
mov dword [ebp - 0x5a0], edx
mov eax, dword [ebp - 0x5a0]
shl eax, 1
push eax
mov ecx, dword [ebp - 0x4c0]
add ecx, 0x80a4
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.00421450
add esp, 0xc
mov eax, dword [ebp - 0x4c0]
add eax, 0x80a4
mov dword [ebp - 0x4f4], eax
mov ecx, dword [ebp - 0x4f4]
add ecx, 2
mov dword [ebp - 0x5a4], ecx
mov edx, dword [ebp - 0x4f4]
mov ax, word [edx]
mov word [ebp - 0x53c], ax
add dword [ebp - 0x4f4], 2
cmp word [ebp - 0x53c], 0
jne 0x405b01
mov ecx, dword [ebp - 0x4f4]
sub ecx, dword [ebp - 0x5a4]
sar ecx, 1
mov dword [ebp - 0x5a8], ecx
xor edx, edx
mov eax, dword [ebp - 0x5a8]
mov ecx, dword [ebp + 0x10]
mov word [ecx + eax*2], dx
mov edx, dword [ebp + 0x10]
add edx, 0xfffffffe
mov dword [ebp - 0x51c], edx
mov eax, dword [ebp - 0x51c]
mov cx, word [eax + 2]
mov word [ebp - 0x53a], cx
add dword [ebp - 0x51c], 2
cmp word [ebp - 0x53a], 0
jne 0x405b51
mov edi, dword [ebp - 0x51c]
mov edx, dword [str._Close]
mov dword [edi], edx
mov eax, dword [0x44f5e4]
mov dword [edi + 4], eax
mov ecx, dword [0x44f5e8]
mov dword [edi + 8], ecx
mov dx, word [0x44f5ec]
mov word [edi + 0xc], dx
mov dword [ebp - 0x4d0], 0x86180003
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, dword [ebp - 0x4c0]
add edx, 0x80a4
push edx
push 0x44f5f0
push 0x26a
push 0x44f630
push 0x44f650
push 2
call fcn.00402aff
add esp, 0x1c
lea ecx, [ebp - 0x42c]
call fcn.0040234d
jmp 0x4048d8
mov eax, dword [ebp - 0x538]
movzx ecx, byte [eax + 0x1d]
test ecx, ecx
je 0x405c1f
mov edx, dword [ebp - 0x538]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 0x4c0]
add ecx, 0x80a4
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edx, dword [ebp - 0x4c0]
add edx, 0x80a4
push edx
push str.WriteFileSuccess_File_s__
push 0x271
push str.WriteAllFile
push 0x44f748
push 4
call fcn.00402aff
add esp, 0x18
lea ecx, [ebp - 0x42c]
call fcn.0040234d
jmp 0x4048d8
mov eax, dword [ebp - 0x4d0]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041f653
mov esp, ebp
pop ebp
ret