Function at 0x4097ce
Capabilities:
Copy file
Create directory
Delete file

Disassembly:
mov eax, 0x4234b1
call fcn.00410238
mov eax, 0x8021c
call fcn.00410320
mov eax, dword [0x42eb80]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x801f8], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x801fc], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x801e0], eax
mov eax, dword [ebp + 0x1c]
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x801f0], eax
mov eax, dword [ebp + 0x20]
xor ebx, ebx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x801d8], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x801ec], ebx
cmp dword [edi + 0x14], ebx
mov dword [ebp - 0x801dc], ecx
mov dword [ebp - 0x80200], eax
mov dword [ebp - 0x801f4], ebx
je 0x409fe2
mov eax, dword [ebp - 0x801f8]
cmp dword [eax + 0x14], ebx
je 0x409fe2
cmp dword [esi + 0x14], ebx
je 0x409fe2
push str.psnetwork.ini
push 0x42507c
push 0x425078
push str.livenet
call fcn.00407666
mov eax, dword [ebp - 0x801dc]
add eax, 0x70
push eax
lea ecx, [ebp - 0x2c]
call fcn.004026d3
push esi
mov esi, 0x424588
lea eax, [ebp - 0x80]
push esi
push eax
mov dword [ebp - 4], ebx
call fcn.00405eb9
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.0040253f
push ebx
push 1
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], bl
call fcn.00401fc9
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x4098cb
lea eax, [ebp - 0x28]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push edi
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.00405eb9
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.0040253f
push ebx
push 1
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], bl
call fcn.00401fc9
lea ecx, [ebp - 0x801e8]
call fcn.00403e6a
mov eax, dword [ebp - 0x801f0]
cmp dword [eax + 0x14], ebx
mov byte [ebp - 4], 3
je 0x409ab7
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x409929
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x801e8]
call fcn.00403e88
test eax, eax
je 0x409ab7
lea eax, [ebp - 0x801ec]
push eax
lea ecx, [ebp - 0x801e8]
mov byte [ebp - 0x801d1], 1
call fcn.00403fc0
push dword [eax]
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 4
call fcn.00402827
mov ecx, dword [ebp - 0x801ec]
add ecx, 0xfffffff0
mov byte [ebp - 4], 6
call fcn.00401237
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x80208], esp
push 0x4245b0
call fcn.00402827
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x80204], esp
push 0x42506c
mov byte [ebp - 4], 7
call fcn.00402827
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 6
call fcn.00409299
mov ecx, dword [ebp - 0x801dc]
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x801f0]
call fcn.00409389
test eax, eax
jne 0x4099e0
mov ecx, dword [ebp - 0x801f0]
lea eax, [ebp - 0x80]
push eax
call fcn.00402145
test eax, eax
jne 0x409a7c
mov esi, dword [ebp - 0x801e0]
cmp dword [esi + 0x14], ebx
je 0x409a7c
lea ecx, [ebp - 0x80228]
call fcn.004016bd
push 2
lea ecx, [ebp - 0x80228]
mov byte [ebp - 4], 8
call fcn.004010ab
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x409a17
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x80228]
call fcn.00401732
lea eax, [ebp - 0x801dc]
push eax
lea ecx, [ebp - 0x80228]
call fcn.00401785
cmp dword [esi + 0x18], 0x10
jb 0x409a40
mov eax, dword [esi + 4]
jmp 0x409a43
lea eax, [esi + 4]
push eax
push dword [ebp - 0x801dc]
call fcn.00410b11
test eax, eax
pop ecx
pop ecx
je 0x409a5b
mov byte [ebp - 0x801d1], bl
mov ecx, dword [ebp - 0x801dc]
add ecx, 0xfffffff0
call fcn.00401237
lea ecx, [ebp - 0x80228]
call fcn.0040902d
cmp byte [ebp - 0x801d1], bl
je 0x409aa8
push ebx
push 1
lea ecx, [ebp - 0x80]
call fcn.00401fc9
lea ecx, [ebp - 0x801e8]
mov byte [ebp - 4], bl
call fcn.00403f38
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401fc9
xor eax, eax
inc eax
jmp 0x409fe8
push ebx
push 1
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 3
call fcn.00401fc9
mov esi, dword [ebp - 0x801f8]
push ebx
xor edi, edi
push str.http:__
mov ecx, esi
inc edi
call fcn.00405c02
cmp eax, ebx
jne 0x409fca
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x409ae1
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 0x801d8]
mov byte [ebp - 0x801d2], bl
call fcn.00405dc4
push 0x42507c
lea ecx, [ebp - 0x80]
call fcn.00402827
mov ecx, dword [ebp - 0x801d8]
push eax
mov byte [ebp - 4], 9
mov dword [ebp - 0x801ec], edi
call fcn.00402145
test eax, eax
je 0x409b3a
mov ecx, dword [ebp - 0x801d8]
push str.true
call fcn.004039e8
test eax, eax
mov byte [ebp - 0x801d1], bl
jne 0x409b41
mov byte [ebp - 0x801d1], 1
push ebx
push edi
lea ecx, [ebp - 0x80]
mov dword [ebp - 4], 3
call fcn.00401fc9
cmp byte [ebp - 0x801d1], bl
je 0x409b61
mov byte [ebp - 0x801d2], 1
push ebx
lea ecx, [ebp - 0x11c]
call fcn.00403ad6
push str..tmp
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 0xa
call fcn.00402d59
push 0x425050
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x64]
push eax
mov byte [ebp - 4], 0xb
call fcn.00402d59
add esp, 0x18
cmp byte [ebp - 0x801d2], bl
mov byte [ebp - 4], 0xc
je 0x409e57
cmp dword [ebp - 0x4c], 0x10
mov eax, dword [ebp - 0x60]
jae 0x409bb8
lea eax, [ebp - 0x60]
cmp dword [esi + 0x18], 0x10
jb 0x409bc3
mov esi, dword [esi + 4]
jmp 0x409bc6
add esi, 4
push eax
push esi
push ebx
push ebx
push ebx
call fcn.004048d1
add esp, 0x14
cmp eax, ebx
jne 0x409fa7
cmp dword [ebp - 0x4c], 0x10
mov eax, dword [ebp - 0x60]
jae 0x409be7
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x11c]
call fcn.00403baf
test eax, eax
je 0x409e86
push ebx
lea ecx, [ebp - 0xd0]
call fcn.00403ad6
cmp dword [ebp - 0x4c], 0x10
mov eax, dword [ebp - 0x60]
mov byte [ebp - 4], 0xd
jae 0x409c17
lea eax, [ebp - 0x60]
push ebx
push eax
lea ecx, [ebp - 0xd0]
call fcn.00403d17
test eax, eax
je 0x409e30
lea ecx, [ebp - 0xd0]
call fcn.00403768
test eax, eax
jbe 0x409e30
lea ecx, [ebp - 0xd0]
call fcn.00403768
mov esi, eax
push esi
call fcn.0041cde7
mov edi, eax
pop ecx
mov dword [ebp - 0x80204], edi
push ebx
push esi
push edi
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 0xe
call fcn.004037b6
lea ecx, [ebp - 0xd0]
call fcn.00403ca4
cmp dword [ebp - 0x4c], 0x10
mov eax, dword [ebp - 0x60]
jae 0x409c84
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
push edi
lea ecx, [ebp - 0x801d0]
call fcn.004091a9
cmp dword [ebp - 0x801cc], ebx
mov eax, dword [ebp - 0x801d0]
mov byte [ebp - 4], 0xf
jle 0x409dca
cmp eax, ebx
je 0x409dca
push ebx
lea ecx, [ebp - 0x168]
call fcn.00403ad6
cmp dword [ebp - 0x30], 0x10
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 0x10
jae 0x409cd2
lea eax, [ebp - 0x44]
xor esi, esi
inc esi
push esi
push eax
lea ecx, [ebp - 0x168]
call fcn.00403d17
test eax, eax
lea ecx, [ebp - 0x168]
je 0x409d51
push ebx
call fcn.0040372c
push dword [ebp - 0x801cc]
lea ecx, [ebp - 0x168]
push dword [ebp - 0x801d0]
call fcn.004038aa
lea ecx, [ebp - 0x168]
call fcn.00403ca4
lea ecx, [ebp - 0x168]
mov byte [ebp - 4], 0xf
call fcn.00403cc9
lea eax, [ebp - 0x801c8]
cmp dword [ebp - 0x801d0], eax
je 0x409d45
cmp dword [ebp - 0x801d0], ebx
je 0x409d45
push dword [ebp - 0x801d0]
call fcn.004118a4
pop ecx
push edi
call fcn.0041cde2
pop ecx
jmp 0x409e43
mov byte [ebp - 4], 0xf
call fcn.00403cc9
lea eax, [ebp - 0x801c8]
cmp dword [ebp - 0x801d0], eax
je 0x409d7c
cmp dword [ebp - 0x801d0], ebx
je 0x409d7c
push dword [ebp - 0x801d0]
call fcn.004118a4
pop ecx
push edi
call fcn.0041cde2
pop ecx
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 0xc
call fcn.00403cc9
push ebx
push esi
lea ecx, [ebp - 0x64]
call fcn.00401fc9
push ebx
push esi
lea ecx, [ebp - 0x48]
call fcn.00401fc9
lea ecx, [ebp - 0x11c]
mov byte [ebp - 4], 3
call fcn.00403cc9
lea ecx, [ebp - 0x801e8]
mov byte [ebp - 4], bl
call fcn.00403f38
push ebx
push esi
jmp 0x409fda
lea ecx, [ebp - 0x801c8]
cmp eax, ecx
je 0x409ddf
cmp eax, ebx
je 0x409ddf
push eax
call fcn.004118a4
pop ecx
push edi
call fcn.0041cde2
pop ecx
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 0xc
call fcn.00403cc9
push ebx
push 1
lea ecx, [ebp - 0x64]
call fcn.00401fc9
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.00401fc9
lea ecx, [ebp - 0x11c]
mov byte [ebp - 4], 3
call fcn.00403cc9
lea ecx, [ebp - 0x801e8]
mov byte [ebp - 4], bl
call fcn.00403f38
push ebx
push 1
jmp 0x409fda
cmp dword [ebp - 0x4c], 0x10
mov eax, dword [ebp - 0x60]
jae 0x409e3c
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 0xc
call fcn.00403cc9
xor edi, edi
inc edi
jmp 0x409e86
cmp dword [ebp - 0x30], 0x10
mov eax, dword [ebp - 0x44]
jae 0x409e63
lea eax, [ebp - 0x44]
cmp dword [esi + 0x18], 0x10
jb 0x409e6e
mov esi, dword [esi + 4]
jmp 0x409e71
add esi, 4
push eax
push esi
push ebx
push ebx
push ebx
call fcn.004048d1
add esp, 0x14
cmp eax, ebx
jne 0x409fa7
cmp dword [ebp - 0x30], 0x10
mov esi, dword [ebp - 0x801e0]
mov eax, dword [ebp - 0x44]
jae 0x409e98
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x11c]
call fcn.00403baf
test eax, eax
je 0x409fa7
cmp dword [esi + 0x14], ebx
je 0x409f4a
lea ecx, [ebp - 0x84]
call fcn.004016bd
push 2
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0x11
call fcn.004010ab
cmp dword [ebp - 0x30], 0x10
mov eax, dword [ebp - 0x44]
jae 0x409edd
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x84]
call fcn.00401732
lea eax, [ebp - 0x801d8]
push eax
lea ecx, [ebp - 0x84]
call fcn.00401785
cmp dword [esi + 0x18], 0x10
jb 0x409f06
mov eax, dword [esi + 4]
jmp 0x409f09
lea eax, [esi + 4]
push eax
push dword [ebp - 0x801d8]
call fcn.00410b11
pop ecx
pop ecx
mov ecx, dword [ebp - 0x801d8]
add ecx, 0xfffffff0
test eax, eax
je 0x409f36
call fcn.00401237
lea ecx, [ebp - 0x84]
call fcn.0040902d
jmp 0x409fa7
call fcn.00401237
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0xc
call fcn.0040902d
cmp dword [ebp - 0x14], 0x10
mov ecx, dword [ebp - 0x28]
jae 0x409f56
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x30], 0x10
mov eax, dword [ebp - 0x44]
jae 0x409f62
lea eax, [ebp - 0x44]
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x409f82
cmp dword [ebp - 0x30], 0x10
mov eax, dword [ebp - 0x44]
jae 0x409f7b
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 0x80200]
lea eax, [ebp - 0x2c]
push eax
call fcn.004067d2
push 0xffffffffffffffff
push ebx
push dword [ebp - 0x801fc]
mov ecx, eax
call fcn.004024b0
mov dword [ebp - 0x801f4], edi
push ebx
lea ecx, [ebp - 0x64]
push edi
call fcn.00401fc9
push ebx
lea ecx, [ebp - 0x48]
push edi
call fcn.00401fc9
lea ecx, [ebp - 0x11c]
mov byte [ebp - 4], 3
call fcn.00403cc9
lea ecx, [ebp - 0x801e8]
mov byte [ebp - 4], bl
call fcn.00403f38
push ebx
push edi
lea ecx, [ebp - 0x2c]
call fcn.00401fc9
mov eax, dword [ebp - 0x801f4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f6e1
leave
ret 0x20