Function at 0x40f4c0
Capabilities:
Copy file
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f09ce
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1dc
push esi
push edi
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x1e8]
push 0x104
push 0
push eax
call fcn.004cacb0
add esp, 0xc
lea eax, [ebp - 0x1e8]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
push 0xffffffffffffffc3
mov byte [ebp - 0x11], 0
call fcn.00459470
xorps xmm0, xmm0
mov byte [ebp - 0x2d], al
lea ecx, [ebp - 0x12]
mov byte [ebp - 0x12], al
movups xmmword [ebp - 0xc4], xmm0
mov dword [ebp - 0xb4], 0
lea edx, [ecx + 1]
mov dword [ebp - 0xb0], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f551
sub ecx, edx
lea eax, [ebp - 0x12]
push ecx
push eax
lea ecx, [ebp - 0xc4]
call fcn.00402aa0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1e8]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f577
sub ecx, edx
lea eax, [ebp - 0x1e8]
push ecx
push eax
push ecx
lea ecx, [ebp - 0xc4]
call fcn.00461260
mov dword [ebp - 0x9c], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0xac], xmm0
mov dword [ebp - 0x98], 0
movups xmm0, xmmword [eax]
mov dword [ebp - 0x10], 1
movups xmmword [ebp - 0xac], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x9c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 4
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp - 0xac]
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
push eax
call fcn.0045a730
mov dword [ebp - 0x6c], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x7c], xmm0
mov dword [ebp - 0x68], 0
mov edi, 3
movups xmm0, xmmword [eax]
mov dword [ebp - 0x10], 3
movups xmmword [ebp - 0x7c], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [ebp - 0x10], edi
and edi, 0xfffffffe
movq qword [ebp - 0x6c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x98]
cmp ecx, 0x10
jb 0x40f689
mov edx, dword [ebp - 0xac]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40f67f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fefd
push ecx
push edx
call fcn.004b2a81
add esp, 8
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0xf
mov byte [ebp - 0xac], 0
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0xb0]
cmp ecx, 0x10
jb 0x40f6e2
mov edx, dword [ebp - 0xc4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40f6d8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fefd
push ecx
push edx
call fcn.004b2a81
add esp, 8
cmp dword [ebp - 0x68], 0x10
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0xb4], 0
cmovae ecx, dword [ebp - 0x7c]
mov dword [ebp - 0xb0], 0xf
mov byte [ebp - 0xc4], 0
call fcn.0040b8c0
test al, al
je 0x40fe86
mov dword [ebp - 0x20], 0xf3fee8c3
xor ecx, ecx
mov dword [ebp - 0x1c], 0xb1ebfaf3
mov dword [ebp - 0x18], 0xebfefb
nop dword [eax]
movzx eax, byte [ebp + ecx - 0x20]
push eax
call fcn.00459470
mov byte [ebp + ecx - 0x20], al
inc ecx
cmp ecx, 0xb
jb 0x40f730
sub esp, 0x18
lea eax, [ebp - 0x20]
mov ecx, esp
mov dword [ebp - 0x14], esp
lea edx, [ebp - 0x7c]
push eax
call fcn.0045c3b0
add esp, 4
mov byte [ebp - 4], 7
mov byte [ebp - 4], 6
call fcn.0040b820
add esp, 0x18
mov esi, closesocket
test al, al
je 0x40fa89
mov al, byte [ebp - 0x2d]
mov byte [ebp - 0x11], 0
mov byte [ebp - 0x12], al
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x12]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f790
sub ecx, edx
mov eax, esi
mov edx, dword [ebp + 0x30]
sub eax, edx
cmp eax, ecx
jb 0x40ff02
cmp dword [ebp + 0x34], 0x10
lea eax, [ebp + 0x20]
push ecx
cmovae eax, dword [ebp + 0x20]
lea ecx, [ebp - 0x12]
push ecx
push edx
push eax
push ecx
push dword [ebp - 0x34]
lea ecx, [ebp - 0x94]
call fcn.00460300
or edi, 0x10
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 9
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp - 0x94]
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
push eax
call fcn.0045a730
mov dword [ebp - 0x3c], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x4c], xmm0
mov dword [ebp - 0x38], 0
or edi, 0x20
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x4c], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [ebp - 0x10], edi
and edi, 0xffffffef
movq qword [ebp - 0x3c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x94]
call fcn.00402890
cmp dword [ebp - 0x38], 0x10
lea ecx, [ebp - 0x4c]
cmovae ecx, dword [ebp - 0x4c]
call fcn.0040b8c0
test al, al
jne 0x40f86f
cmp dword [ebp - 0x38], 0x10
lea eax, [ebp - 0x4c]
push 0
cmovae eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x40fa39
mov dword [ebp - 0x20], 0xf3fee8c3
xor ecx, ecx
mov dword [ebp - 0x1c], 0xb1ebfaf3
mov dword [ebp - 0x18], 0xebfefb
nop word [eax + eax]
movzx eax, byte [ebp + ecx - 0x20]
push eax
call fcn.00459470
mov byte [ebp + ecx - 0x20], al
inc ecx
cmp ecx, 0xb
jb 0x40f890
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x20]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f8b0
sub ecx, edx
mov eax, esi
mov edx, dword [ebp - 0x3c]
sub eax, edx
cmp eax, ecx
jb 0x40ff02
cmp dword [ebp - 0x38], 0x10
lea eax, [ebp - 0x4c]
push ecx
cmovae eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x20]
push ecx
push edx
push eax
push ecx
push dword [ebp - 0x34]
lea ecx, [ebp - 0x94]
call fcn.00460300
or edi, 0x100
lea eax, [ebp - 0x94]
mov dword [ebp - 0x10], edi
cmp dword [ebp - 0x80], 0x10
mov dword [ebp - 0x20], 0xf3fee8c3
cmovae eax, dword [ebp - 0x94]
xor ecx, ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], 0xb1ebfaf3
mov dword [ebp - 0x18], 0xebfefb
nop dword [eax]
movzx eax, byte [ebp + ecx - 0x20]
push eax
call fcn.00459470
mov byte [ebp + ecx - 0x20], al
inc ecx
cmp ecx, 0xb
jb 0x40f920
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x20]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f940
sub ecx, edx
mov eax, esi
mov edx, dword [ebp - 0x6c]
sub eax, edx
cmp eax, ecx
jb 0x40ff02
cmp dword [ebp - 0x68], 0x10
lea eax, [ebp - 0x7c]
push ecx
cmovae eax, dword [ebp - 0x7c]
lea ecx, [ebp - 0x20]
push ecx
push edx
push eax
push ecx
push dword [ebp - 0x34]
lea ecx, [ebp - 0xe4]
call fcn.00460300
or edi, 0x200
lea eax, [ebp - 0xe4]
mov dword [ebp - 0x10], edi
cmp dword [ebp - 0xd0], 0x10
push 0
push dword [ebp - 0x14]
cmovae eax, dword [ebp - 0xe4]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
and edi, 0xfffffdff
mov esi, eax
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0xe4]
call fcn.00402890
and edi, 0xfffffeff
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x94]
call fcn.00402890
test esi, esi
je 0x40f9e0
mov eax, dword [ebp - 0x34]
mov byte [eax], 1
jmp 0x40fa34
cmp dword [ebp - 0x38], 0x10
lea edx, [ebp - 0x4c]
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
cmovae edx, dword [ebp - 0x4c]
mov ecx, edx
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x2c], xmm0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40fa05
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.00402aa0
mov byte [ebp - 4], 0xd
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0040b910
add esp, 4
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x2c]
call fcn.00402890
mov esi, closesocket
and edi, 0xffffffdf
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x38]
cmp ecx, 0x10
jb 0x40fa77
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40fa6d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ff07
push ecx
push edx
call fcn.004b2a81
add esp, 8
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0xf
mov byte [ebp - 0x4c], 0
mov dword [ebp - 0x1d], 0xf3fee8c3
xor ecx, ecx
mov dword [ebp - 0x19], 0xecebfaf3
mov byte [ebp - 0x15], 0
nop dword [eax]
movzx eax, byte [ebp + ecx - 0x1d]
push eax
call fcn.00459470
mov byte [ebp + ecx - 0x1d], al
inc ecx
cmp ecx, 8
jb 0x40faa0
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x1d]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40fac0
sub ecx, edx
mov eax, esi
mov edx, dword [ebp - 0x6c]
sub eax, edx
cmp eax, ecx
jb 0x40ff0c
cmp dword [ebp - 0x68], 0x10
lea eax, [ebp - 0x7c]
push ecx
cmovae eax, dword [ebp - 0x7c]
lea ecx, [ebp - 0x1d]
push ecx
push edx
push eax
push ecx
push dword [ebp - 0x34]
lea ecx, [ebp - 0x94]
call fcn.00460300
or edi, 8
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x10], edi
cmp dword [ebp - 0x80], 0x10
cmovae ecx, dword [ebp - 0x94]
call fcn.0040b8c0
and edi, 0xfffffff7
mov byte [ebp - 0x11], al
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x94]
call fcn.00402890
cmp byte [ebp - 0x11], 0
je 0x40fe86
mov al, byte [ebp - 0x2d]
mov byte [ebp - 0x11], 0
mov byte [ebp - 0x12], al
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x12]
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40fb50
sub ecx, edx
mov eax, esi
mov edx, dword [ebp + 0x30]
sub eax, edx
cmp eax, ecx
jb 0x40ff11
cmp dword [ebp + 0x34], 0x10
lea eax, [ebp + 0x20]
push ecx
cmovae eax, dword [ebp + 0x20]
lea ecx, [ebp - 0x12]
push ecx
push edx
push eax
push ecx
push dword [ebp - 0x34]
lea ecx, [ebp - 0x94]
call fcn.00460300
or edi, 0x40
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 0x10
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp - 0x94]
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
push eax
call fcn.0045a730
mov dword [ebp - 0x54], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x64], xmm0
mov dword [ebp - 0x50], 0
or edi, 0x80
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x64], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [ebp - 0x10], edi
and edi, 0xffffffbf
movq qword [ebp - 0x54], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x94]
call fcn.00402890
cmp dword [ebp - 0x50], 0x10
lea ecx, [ebp - 0x64]
cmovae ecx, dword [ebp - 0x64]
call fcn.0040b8c0
test al, al
jne 0x40fc32
cmp dword [ebp - 0x50], 0x10
lea eax, [ebp - 0x64]
push 0
cmovae eax, dword [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x40fe33
mov dword [ebp - 0x1d], 0xf3fee8c3
xor ecx, ecx
mov dword [ebp - 0x19], 0xecebfaf3
mov byte [ebp - 0x15], 0
nop word [eax + eax]
movzx eax, byte [ebp + ecx - 0x1d]
push eax
call fcn.00459470
mov byte [ebp + ecx - 0x1d], al
inc ecx
cmp ecx, 8
jb 0x40fc50
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x1d]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40fc70
sub ecx, edx
mov edx, dword [ebp - 0x54]
sub esi, edx
cmp esi, ecx
jb 0x40ff16
cmp dword [ebp - 0x50], 0x10
lea eax, [ebp - 0x64]
push ecx
cmovae eax, dword [ebp - 0x64]
lea ecx, [ebp - 0x1d]
push ecx
push edx
push eax
push ecx
push dword [ebp - 0x34]
lea ecx, [ebp - 0x4c]
call fcn.00460300
or edi, 0x400
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x10], edi
call fcn.00402890
movups xmm0, xmmword [ebp - 0x4c]
and edi, 0xfffffbff
mov byte [ebp - 0x4c], 0
movups xmmword [ebp - 0x64], xmm0
movq xmm0, qword [ebp - 0x3c]
movq qword [ebp - 0x54], xmm0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x4c]
call fcn.00402890
cmp dword [ebp - 0x50], 0x10
lea ecx, [ebp - 0x64]
cmovae ecx, dword [ebp - 0x64]
call fcn.0040b8c0
test al, al
jne 0x40fd1e
cmp dword [ebp - 0x50], 0x10
lea eax, [ebp - 0x64]
push 0
cmovae eax, dword [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x40fe33
sub esp, 0x18
mov byte [ebp - 0x11], 0
lea eax, [ebp - 0x64]
mov dword [ebp - 0xc8], esp
mov ecx, esp
push eax
call fcn.00458190
mov byte [ebp - 4], 0x13
xor ecx, ecx
mov dword [ebp - 0x1d], 0xf3fee8c3
mov dword [ebp - 0x19], 0xecebfaf3
mov byte [ebp - 0x15], 0
nop
movzx eax, byte [ebp + ecx - 0x1d]
push eax
call fcn.00459470
mov byte [ebp + ecx - 0x1d], al
inc ecx
cmp ecx, 8
jb 0x40fd50
sub esp, 0x18
lea eax, [ebp - 0x1d]
mov ecx, esp
mov dword [ebp - 0xcc], esp
lea edx, [ebp - 0x7c]
push eax
call fcn.0045c3b0
add esp, 4
mov byte [ebp - 4], 0x14
mov byte [ebp - 4], 0x11
mov cl, byte [ebp - 0x11]
call fcn.0040e470
add esp, 0x30
test eax, eax
jne 0x40fda1
mov eax, dword [ebp - 0x34]
mov byte [eax], 1
jmp 0x40fe33
cmp dword [ebp - 0x50], 0x10
lea edx, [ebp - 0x64]
xorps xmm0, xmm0
mov dword [ebp - 0x3c], 0
cmovae edx, dword [ebp - 0x64]
mov ecx, edx
mov dword [ebp - 0x38], 0
movups xmmword [ebp - 0x4c], xmm0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40fdc6
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x4c]
call fcn.00402aa0
mov byte [ebp - 4], 0x15
push ecx
lea ecx, [ebp - 0x4c]
call fcn.0040b910
add esp, 4
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x38]
cmp ecx, 0x10
jb 0x40fe21
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40fe17
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ff1b
push ecx
push edx
call fcn.004b2a81
add esp, 8
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0xf
mov byte [ebp - 0x4c], 0
and edi, 0xffffff7f
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x50]
cmp ecx, 0x10
jb 0x40fe74
mov edx, dword [ebp - 0x64]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40fe6a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ff20
push ecx
push edx
call fcn.004b2a81
add esp, 8
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0xf
mov byte [ebp - 0x64], 0
and edi, 0xfffffffd
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x68]
cmp ecx, 0x10
jb 0x40fec0
mov edx, dword [ebp - 0x7c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40feb6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ff25
push ecx
push edx
call fcn.004b2a81
add esp, 8
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0xf
mov byte [ebp - 0x7c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00402890
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x20]
call fcn.00402890
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
call fcn.004cdf70
call fcn.00402210
call fcn.004cdf70
call fcn.00402210
call fcn.00402210
call fcn.00402210
call fcn.004cdf70
call fcn.004cdf70
call fcn.004cdf70
int3