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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f909e
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.004d31f0
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 0xffffffffffffff83
mov byte [ebp - 0x11], 0
call fcn.00461130
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 0x40fb41
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 0x40fb67
sub ecx, edx
lea eax, [ebp - 0x1e8]
push ecx
push eax
push ecx
lea ecx, [ebp - 0xc4]
call fcn.00469030
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.004623f0
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 0x40fc79
mov edx, dword [ebp - 0xac]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40fc6f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4104ed
push ecx
push edx
call fcn.004bafb1
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 0x40fcd2
mov edx, dword [ebp - 0xc4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40fcc8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4104ed
push ecx
push edx
call fcn.004bafb1
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.0040b940
test al, al
je 0x410476
mov dword [ebp - 0x20], 0xb3bea883
xor ecx, ecx
mov dword [ebp - 0x1c], 0xf1abbab3
mov dword [ebp - 0x18], 0xabbebb
nop dword [eax]
movzx eax, byte [ebp + ecx - 0x20]
push eax
call fcn.00461130
mov byte [ebp + ecx - 0x20], al
inc ecx
cmp ecx, 0xb
jb 0x40fd20
sub esp, 0x18
lea eax, [ebp - 0x20]
mov ecx, esp
mov dword [ebp - 0x14], esp
lea edx, [ebp - 0x7c]
push eax
call fcn.00464140
add esp, 4
mov byte [ebp - 4], 7
mov byte [ebp - 4], 6
call fcn.0040b8a0
add esp, 0x18
mov esi, closesocket
test al, al
je 0x410079
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 0x40fd80
sub ecx, edx
mov eax, esi
mov edx, dword [ebp + 0x30]
sub eax, edx
cmp eax, ecx
jb 0x4104f2
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.004680d0
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.004623f0
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.0040b940
test al, al
jne 0x40fe5f
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 0x410029
mov dword [ebp - 0x20], 0xb3bea883
xor ecx, ecx
mov dword [ebp - 0x1c], 0xf1abbab3
mov dword [ebp - 0x18], 0xabbebb
nop word [eax + eax]
movzx eax, byte [ebp + ecx - 0x20]
push eax
call fcn.00461130
mov byte [ebp + ecx - 0x20], al
inc ecx
cmp ecx, 0xb
jb 0x40fe80
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x20]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40fea0
sub ecx, edx
mov eax, esi
mov edx, dword [ebp - 0x3c]
sub eax, edx
cmp eax, ecx
jb 0x4104f2
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.004680d0
or edi, 0x100
lea eax, [ebp - 0x94]
mov dword [ebp - 0x10], edi
cmp dword [ebp - 0x80], 0x10
mov dword [ebp - 0x20], 0xb3bea883
cmovae eax, dword [ebp - 0x94]
xor ecx, ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], 0xf1abbab3
mov dword [ebp - 0x18], 0xabbebb
nop dword [eax]
movzx eax, byte [ebp + ecx - 0x20]
push eax
call fcn.00461130
mov byte [ebp + ecx - 0x20], al
inc ecx
cmp ecx, 0xb
jb 0x40ff10
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x20]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40ff30
sub ecx, edx
mov eax, esi
mov edx, dword [ebp - 0x6c]
sub eax, edx
cmp eax, ecx
jb 0x4104f2
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.004680d0
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 0x40ffd0
mov eax, dword [ebp - 0x34]
mov byte [eax], 1
jmp 0x410024
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 0x40fff5
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.0040b990
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 0x410067
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41005d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4104f7
push ecx
push edx
call fcn.004bafb1
add esp, 8
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0xf
mov byte [ebp - 0x4c], 0
mov dword [ebp - 0x1d], 0xb3bea883
xor ecx, ecx
mov dword [ebp - 0x19], 0xacabbab3
mov byte [ebp - 0x15], 0
nop dword [eax]
movzx eax, byte [ebp + ecx - 0x1d]
push eax
call fcn.00461130
mov byte [ebp + ecx - 0x1d], al
inc ecx
cmp ecx, 8
jb 0x410090
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x1d]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4100b0
sub ecx, edx
mov eax, esi
mov edx, dword [ebp - 0x6c]
sub eax, edx
cmp eax, ecx
jb 0x4104fc
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.004680d0
or edi, 8
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x10], edi
cmp dword [ebp - 0x80], 0x10
cmovae ecx, dword [ebp - 0x94]
call fcn.0040b940
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 0x410476
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 0x410140
sub ecx, edx
mov eax, esi
mov edx, dword [ebp + 0x30]
sub eax, edx
cmp eax, ecx
jb 0x410501
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.004680d0
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.004623f0
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.0040b940
test al, al
jne 0x410222
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 0x410423
mov dword [ebp - 0x1d], 0xb3bea883
xor ecx, ecx
mov dword [ebp - 0x19], 0xacabbab3
mov byte [ebp - 0x15], 0
nop word [eax + eax]
movzx eax, byte [ebp + ecx - 0x1d]
push eax
call fcn.00461130
mov byte [ebp + ecx - 0x1d], al
inc ecx
cmp ecx, 8
jb 0x410240
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x1d]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x410260
sub ecx, edx
mov edx, dword [ebp - 0x54]
sub esi, edx
cmp esi, ecx
jb 0x410506
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.004680d0
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.0040b940
test al, al
jne 0x41030e
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 0x410423
sub esp, 0x18
mov byte [ebp - 0x11], 0
lea eax, [ebp - 0x64]
mov dword [ebp - 0xc8], esp
mov ecx, esp
push eax
call fcn.0045fe50
mov byte [ebp - 4], 0x13
xor ecx, ecx
mov dword [ebp - 0x1d], 0xb3bea883
mov dword [ebp - 0x19], 0xacabbab3
mov byte [ebp - 0x15], 0
nop
movzx eax, byte [ebp + ecx - 0x1d]
push eax
call fcn.00461130
mov byte [ebp + ecx - 0x1d], al
inc ecx
cmp ecx, 8
jb 0x410340
sub esp, 0x18
lea eax, [ebp - 0x1d]
mov ecx, esp
mov dword [ebp - 0xcc], esp
lea edx, [ebp - 0x7c]
push eax
call fcn.00464140
add esp, 4
mov byte [ebp - 4], 0x14
mov byte [ebp - 4], 0x11
mov cl, byte [ebp - 0x11]
call fcn.0040ea60
add esp, 0x30
test eax, eax
jne 0x410391
mov eax, dword [ebp - 0x34]
mov byte [eax], 1
jmp 0x410423
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 0x4103b6
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.0040b990
add esp, 4
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x38]
cmp ecx, 0x10
jb 0x410411
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x410407
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41050b
push ecx
push edx
call fcn.004bafb1
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 0x410464
mov edx, dword [ebp - 0x64]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41045a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410510
push ecx
push edx
call fcn.004bafb1
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 0x4104b0
mov edx, dword [ebp - 0x7c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4104a6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410515
push ecx
push edx
call fcn.004bafb1
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.004d64b0
call fcn.00402210
call fcn.004d64b0
call fcn.00402210
call fcn.00402210
call fcn.00402210
call fcn.004d64b0
call fcn.004d64b0
call fcn.004d64b0
int3