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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f7c4e
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.004d1ee0
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 0x16
mov byte [ebp - 0x11], 0
call fcn.004606a0
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 0x40f5c1
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 0x40f5e7
sub ecx, edx
lea eax, [ebp - 0x1e8]
push ecx
push eax
push ecx
lea ecx, [ebp - 0xc4]
call fcn.00468490
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.00461960
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 0x40f6f9
mov edx, dword [ebp - 0xac]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40f6ef
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ff6d
push ecx
push edx
call fcn.004b9cb1
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 0x40f752
mov edx, dword [ebp - 0xc4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40f748
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ff6d
push ecx
push edx
call fcn.004b9cb1
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.0040b930
test al, al
je 0x40fef6
mov dword [ebp - 0x20], 0x262b3d16
xor ecx, ecx
mov dword [ebp - 0x1c], 0x643e2f26
mov dword [ebp - 0x18], 0x3e2b2e
nop dword [eax]
movzx eax, byte [ebp + ecx - 0x20]
push eax
call fcn.004606a0
mov byte [ebp + ecx - 0x20], al
inc ecx
cmp ecx, 0xb
jb 0x40f7a0
sub esp, 0x18
lea eax, [ebp - 0x20]
mov ecx, esp
mov dword [ebp - 0x14], esp
lea edx, [ebp - 0x7c]
push eax
call fcn.004635e0
add esp, 4
mov byte [ebp - 4], 7
mov byte [ebp - 4], 6
call fcn.0040b890
add esp, 0x18
mov esi, closesocket
test al, al
je 0x40faf9
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 0x40f800
sub ecx, edx
mov eax, esi
mov edx, dword [ebp + 0x30]
sub eax, edx
cmp eax, ecx
jb 0x40ff72
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.00467530
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.00461960
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.0040b930
test al, al
jne 0x40f8df
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 0x40faa9
mov dword [ebp - 0x20], 0x262b3d16
xor ecx, ecx
mov dword [ebp - 0x1c], 0x643e2f26
mov dword [ebp - 0x18], 0x3e2b2e
nop word [eax + eax]
movzx eax, byte [ebp + ecx - 0x20]
push eax
call fcn.004606a0
mov byte [ebp + ecx - 0x20], al
inc ecx
cmp ecx, 0xb
jb 0x40f900
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x20]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f920
sub ecx, edx
mov eax, esi
mov edx, dword [ebp - 0x3c]
sub eax, edx
cmp eax, ecx
jb 0x40ff72
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.00467530
or edi, 0x100
lea eax, [ebp - 0x94]
mov dword [ebp - 0x10], edi
cmp dword [ebp - 0x80], 0x10
mov dword [ebp - 0x20], 0x262b3d16
cmovae eax, dword [ebp - 0x94]
xor ecx, ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], 0x643e2f26
mov dword [ebp - 0x18], 0x3e2b2e
nop dword [eax]
movzx eax, byte [ebp + ecx - 0x20]
push eax
call fcn.004606a0
mov byte [ebp + ecx - 0x20], al
inc ecx
cmp ecx, 0xb
jb 0x40f990
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x20]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f9b0
sub ecx, edx
mov eax, esi
mov edx, dword [ebp - 0x6c]
sub eax, edx
cmp eax, ecx
jb 0x40ff72
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.00467530
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 0x40fa50
mov eax, dword [ebp - 0x34]
mov byte [eax], 1
jmp 0x40faa4
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 0x40fa75
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.0040b980
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 0x40fae7
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40fadd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ff77
push ecx
push edx
call fcn.004b9cb1
add esp, 8
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0xf
mov byte [ebp - 0x4c], 0
mov dword [ebp - 0x1d], 0x262b3d16
xor ecx, ecx
mov dword [ebp - 0x19], 0x393e2f26
mov byte [ebp - 0x15], 0
nop dword [eax]
movzx eax, byte [ebp + ecx - 0x1d]
push eax
call fcn.004606a0
mov byte [ebp + ecx - 0x1d], al
inc ecx
cmp ecx, 8
jb 0x40fb10
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x1d]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40fb30
sub ecx, edx
mov eax, esi
mov edx, dword [ebp - 0x6c]
sub eax, edx
cmp eax, ecx
jb 0x40ff7c
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.00467530
or edi, 8
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x10], edi
cmp dword [ebp - 0x80], 0x10
cmovae ecx, dword [ebp - 0x94]
call fcn.0040b930
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 0x40fef6
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 0x40fbc0
sub ecx, edx
mov eax, esi
mov edx, dword [ebp + 0x30]
sub eax, edx
cmp eax, ecx
jb 0x40ff81
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.00467530
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.00461960
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.0040b930
test al, al
jne 0x40fca2
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 0x40fea3
mov dword [ebp - 0x1d], 0x262b3d16
xor ecx, ecx
mov dword [ebp - 0x19], 0x393e2f26
mov byte [ebp - 0x15], 0
nop word [eax + eax]
movzx eax, byte [ebp + ecx - 0x1d]
push eax
call fcn.004606a0
mov byte [ebp + ecx - 0x1d], al
inc ecx
cmp ecx, 8
jb 0x40fcc0
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x1d]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40fce0
sub ecx, edx
mov edx, dword [ebp - 0x54]
sub esi, edx
cmp esi, ecx
jb 0x40ff86
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.00467530
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.0040b930
test al, al
jne 0x40fd8e
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 0x40fea3
sub esp, 0x18
mov byte [ebp - 0x11], 0
lea eax, [ebp - 0x64]
mov dword [ebp - 0xc8], esp
mov ecx, esp
push eax
call fcn.0045f3c0
mov byte [ebp - 4], 0x13
xor ecx, ecx
mov dword [ebp - 0x1d], 0x262b3d16
mov dword [ebp - 0x19], 0x393e2f26
mov byte [ebp - 0x15], 0
nop
movzx eax, byte [ebp + ecx - 0x1d]
push eax
call fcn.004606a0
mov byte [ebp + ecx - 0x1d], al
inc ecx
cmp ecx, 8
jb 0x40fdc0
sub esp, 0x18
lea eax, [ebp - 0x1d]
mov ecx, esp
mov dword [ebp - 0xcc], esp
lea edx, [ebp - 0x7c]
push eax
call fcn.004635e0
add esp, 4
mov byte [ebp - 4], 0x14
mov byte [ebp - 4], 0x11
mov cl, byte [ebp - 0x11]
call fcn.0040e4e0
add esp, 0x30
test eax, eax
jne 0x40fe11
mov eax, dword [ebp - 0x34]
mov byte [eax], 1
jmp 0x40fea3
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 0x40fe36
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.0040b980
add esp, 4
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x38]
cmp ecx, 0x10
jb 0x40fe91
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40fe87
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ff8b
push ecx
push edx
call fcn.004b9cb1
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 0x40fee4
mov edx, dword [ebp - 0x64]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40feda
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ff90
push ecx
push edx
call fcn.004b9cb1
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 0x40ff30
mov edx, dword [ebp - 0x7c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40ff26
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ff95
push ecx
push edx
call fcn.004b9cb1
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.004d51a0
call fcn.00402210
call fcn.004d51a0
call fcn.00402210
call fcn.00402210
call fcn.00402210
call fcn.004d51a0
call fcn.004d51a0
call fcn.004d51a0
int3