Function at 0x4176e0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x360
mov eax, dword [0x4d9018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00467c70
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
xor eax, eax
mov dword [ebp - 0x28c], 0
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x288], 7
mov word [ebp - 0x29c], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417753
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x29c]
call fcn.00406130
push str._scan
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x284]
push eax
call fcn.004101b0
push str._scan.x64_
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x2b4]
push eax
call fcn.004101b0
movq xmm0, qword [str._wsfl3___._]
mov eax, dword [0x4bae54]
push 1
mov dword [ebp - 0x240], 0xf
mov dword [ebp - 0x244], 0xc
movq qword [ebp - 0x254], xmm0
mov dword [ebp - 0x24c], eax
mov byte [ebp - 0x248], 0
mov dword [ebp - 0x2e0], 0
call fcn.00427325
add esp, 0x1c
mov dword [ebp - 0x2d0], eax
lea ecx, [ebp - 0x2bc]
push 0
call fcn.00426e63
mov edi, dword [0x4dd140]
mov ebx, dword [0x4dd13c]
mov dword [ebp - 0x2c4], ebx
test edi, edi
jne 0x41784d
push edi
lea ecx, [ebp - 0x2cc]
call fcn.00426e63
cmp dword [0x4dd140], edi
jne 0x41783c
mov eax, dword [0x4dd270]
inc eax
mov dword [0x4dd270], eax
mov dword [0x4dd140], eax
lea ecx, [ebp - 0x2cc]
call fcn.00426eca
mov edi, dword [0x4dd140]
mov ecx, dword [ebp - 0x2d0]
cmp edi, dword [ecx + 0xc]
jae 0x417864
mov eax, dword [ecx + 8]
mov esi, dword [eax + edi*4]
test esi, esi
jne 0x4178c3
jmp 0x417866
xor esi, esi
cmp byte [ecx + 0x14], 0
je 0x41787c
call fcn.0042731f
cmp edi, dword [eax + 0xc]
jae 0x417880
mov eax, dword [eax + 8]
mov esi, dword [eax + edi*4]
test esi, esi
jne 0x4178c3
test ebx, ebx
je 0x417888
mov esi, ebx
jmp 0x4178c3
lea eax, [ebp - 0x2d4]
push eax
lea eax, [ebp - 0x2c4]
push eax
call fcn.0041c330
add esp, 8
cmp eax, 0xffffffff
je 0x418169
mov esi, dword [ebp - 0x2c4]
push esi
call fcn.004272f3
mov eax, dword [esi]
add esp, 4
mov ecx, esi
call dword [eax + 4]
mov dword [0x4dd13c], esi
lea ecx, [ebp - 0x2bc]
call fcn.00426eca
lea eax, [ebp - 0x2d4]
mov dword [ebp - 0x2dc], esi
push eax
call fcn.00413e30
add esp, 4
mov dword [ebp - 0x2d8], eax
cmp dword [ebp - 0x240], 0x10
lea ecx, [ebp - 0x254]
lea eax, [ebp - 0x254]
cmovae ecx, dword [ebp - 0x254]
push dword [ebp - 0x2bc]
add ecx, dword [ebp - 0x244]
cmp dword [ebp - 0x240], 0x10
push 1
cmovae eax, dword [ebp - 0x254]
push ecx
push eax
lea ecx, [ebp - 0x2e0]
call fcn.00411b00
cmp dword [ebp - 0x270], 8
lea eax, [ebp - 0x284]
push dword [ebp - 0x274]
cmovae eax, dword [ebp - 0x284]
xor ecx, ecx
mov word [ebp - 0x224], cx
lea ecx, [ebp - 0x224]
push eax
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 7
call fcn.00406130
push 0
lea eax, [ebp - 0x224]
mov dword [ebp - 0x2c0], 0
push eax
lea eax, [ebp - 0x2c0]
mov dword [ebp - 0x2bc], 0
push eax
call fcn.00411060
add esp, 0xc
test eax, eax
jne 0x41816e
mov edx, dword [ebp - 0x210]
cmp edx, 8
jb 0x4179e3
mov ecx, dword [ebp - 0x224]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4179d9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418180
push edx
push ecx
call fcn.00445172
add esp, 8
mov edi, dword [ebp - 0x2bc]
test edi, edi
je 0x4179f1
lock inc dword [edi + 4]
mov esi, dword [ebp - 0x2c0]
or ebx, 0xffffffff
mov dword [ebp - 0x2c8], esi
mov dword [ebp - 0x2c4], edi
test edi, edi
je 0x417a30
lea ecx, [edi + 4]
lock inc dword [ecx]
mov eax, ebx
lock xadd dword [ecx], eax
jne 0x417a30
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, ebx
lock xadd dword [edi + 8], eax
jne 0x417a30
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
nop
test esi, esi
je 0x417f83
lea eax, [esi + 0x20]
push eax
lea ecx, [ebp - 0x224]
call fcn.00415c20
cmp dword [ebp - 0x210], 8
lea ecx, [ebp - 0x224]
mov eax, dword [ebp - 0x214]
cmovae ecx, dword [ebp - 0x224]
lea esi, [ecx + eax*2]
push esi
push ecx
call fcn.0041c170
add esp, 8
mov dword [ebp - 0x22c], 0
sub esi, eax
mov dword [ebp - 0x228], 7
xor ecx, ecx
sar esi, 1
mov word [ebp - 0x23c], cx
lea ecx, [ebp - 0x23c]
push esi
push eax
call fcn.00406130
cmp dword [ebp - 0x228], 8
lea ecx, [ebp - 0x2b5]
push ecx
push dword [ebp - 0x22c]
lea eax, [ebp - 0x23c]
cmovae eax, dword [ebp - 0x23c]
push eax
call fcn.00428a77
push eax
lea eax, [ebp - 0x26c]
push eax
call fcn.00410760
mov ebx, dword [ebp - 0x258]
lea ecx, [ebp - 0x26c]
mov edx, dword [ebp - 0x26c]
add esp, 0x14
mov eax, dword [ebp - 0x25c]
cmp ebx, 0x10
mov esi, dword [ebp - 0x2e0]
cmovae ecx, edx
add eax, ecx
cmp ebx, 0x10
mov dword [ebp - 0x2bc], eax
lea eax, [ebp - 0x26c]
cmovae eax, edx
mov dword [ebp - 0x2cc], eax
test esi, esi
jne 0x417b21
mov byte [ebp - 0x2b5], 0
jmp 0x417dea
mov eax, dword [esi + 0x14]
xorps xmm0, xmm0
mov ecx, dword [esi + 0x1c]
mov edx, dword [ebp - 0x2bc]
mov dword [ebp - 0x304], eax
lea eax, [ebp - 0x2dc]
mov dword [ebp - 0x310], edx
mov edx, dword [ebp - 0x2cc]
mov dword [ebp - 0x35c], 0
mov dword [ebp - 0x358], 0
mov dword [ebp - 0x354], 0
mov dword [ebp - 0x350], 0
mov dword [ebp - 0x34c], 0
mov dword [ebp - 0x348], 0
mov dword [ebp - 0x344], 0
mov dword [ebp - 0x33c], 0
mov dword [ebp - 0x338], 0
mov dword [ebp - 0x334], 0
mov dword [ebp - 0x330], 0
movups xmmword [ebp - 0x32c], xmm0
mov dword [ebp - 0x31c], 0
mov dword [ebp - 0x318], 0
mov dword [ebp - 0x30c], edx
mov dword [ebp - 0x308], esi
mov dword [ebp - 0x300], 0x10
mov byte [ebp - 0x2fc], 0
mov dword [ebp - 0x2f8], ecx
mov byte [ebp - 0x2f4], 0
mov dword [ebp - 0x2f0], eax
mov eax, dword [esi + 0x18]
test eax, eax
je 0x417c20
lea ecx, [ebp - 0x2b5]
push ecx
push eax
lea ecx, [ebp - 0x320]
call fcn.00411f50
nop dword [eax + eax]
push 1
push 0
lea ecx, [ebp - 0x360]
call fcn.004116d0
mov edx, dword [ebp - 0x320]
mov byte [ebp - 0x2b5], al
test edx, edx
je 0x417c90
mov ecx, dword [ebp - 0x318]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffff8
cmp ecx, 0x1000
jb 0x417c68
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418180
push ecx
push edx
call fcn.00445172
add esp, 8
mov dword [ebp - 0x320], 0
mov dword [ebp - 0x31c], 0
mov dword [ebp - 0x318], 0
mov edx, dword [ebp - 0x32c]
test edx, edx
je 0x417ceb
mov ecx, dword [ebp - 0x324]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffff8
cmp ecx, 0x1000
jb 0x417cc3
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418180
push ecx
push edx
call fcn.00445172
add esp, 8
mov dword [ebp - 0x32c], 0
mov dword [ebp - 0x328], 0
mov dword [ebp - 0x324], 0
mov edx, dword [ebp - 0x33c]
test edx, edx
je 0x417d46
mov ecx, dword [ebp - 0x334]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x417d1e
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418180
push ecx
push edx
call fcn.00445172
add esp, 8
mov dword [ebp - 0x33c], 0
mov dword [ebp - 0x338], 0
mov dword [ebp - 0x334], 0
mov edx, dword [ebp - 0x34c]
test edx, edx
je 0x417da1
mov ecx, dword [ebp - 0x344]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffff8
cmp ecx, 0x1000
jb 0x417d79
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418180
push ecx
push edx
call fcn.00445172
add esp, 8
mov dword [ebp - 0x34c], 0
mov dword [ebp - 0x348], 0
mov dword [ebp - 0x344], 0
mov edx, dword [ebp - 0x35c]
test edx, edx
je 0x417dde
mov ecx, dword [ebp - 0x354]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x417dd4
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418180
push ecx
push edx
call fcn.00445172
add esp, 8
mov ebx, dword [ebp - 0x258]
mov edx, dword [ebp - 0x26c]
cmp ebx, 0x10
jb 0x417e1a
lea ecx, [ebx + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x417e10
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418180
push ecx
push edx
call fcn.00445172
add esp, 8
cmp byte [ebp - 0x2b5], 0
je 0x417ec4
cmp dword [ebp - 0x228], 8
lea eax, [ebp - 0x23c]
cmovae eax, dword [ebp - 0x23c]
push eax
lea eax, [ebp - 0x2b4]
push eax
lea eax, [ebp - 0x26c]
push eax
call fcn.004101b0
add esp, 0xc
lea ecx, [ebp - 0x26c]
cmp dword [ebp - 0x258], 8
lea eax, [ebp - 0x224]
cmovae ecx, dword [ebp - 0x26c]
cmp dword [ebp - 0x210], 8
push 0
cmovae eax, dword [ebp - 0x224]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edx, dword [ebp - 0x258]
cmp edx, 8
jb 0x417ec4
mov ecx, dword [ebp - 0x26c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x417eba
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418180
push edx
push ecx
call fcn.00445172
add esp, 8
mov edx, dword [ebp - 0x228]
cmp edx, 8
jb 0x417f04
mov ecx, dword [ebp - 0x23c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x417efa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418180
push edx
push ecx
call fcn.00445172
add esp, 8
mov edx, dword [ebp - 0x210]
xor eax, eax
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 7
mov word [ebp - 0x23c], ax
cmp edx, 8
jb 0x417f61
mov ecx, dword [ebp - 0x224]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x417f57
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418180
push edx
push ecx
call fcn.00445172
add esp, 8
lea eax, [ebp - 0x2c8]
push eax
call fcn.00419b20
add esp, 4
test eax, eax
jne 0x418185
mov esi, dword [ebp - 0x2c8]
jmp 0x417a30
mov esi, dword [ebp - 0x2c4]
or ebx, 0xffffffff
test esi, esi
je 0x417faf
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x417faf
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x417faf
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
test edi, edi
je 0x417fd2
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x417fd2
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, ebx
lock xadd dword [edi + 8], eax
jne 0x417fd2
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov eax, dword [ebp - 0x2e0]
test eax, eax
je 0x418005
lock xadd dword [eax + 0x20], ebx
dec ebx
jne 0x418005
mov esi, dword [ebp - 0x2e0]
test esi, esi
je 0x418005
mov ecx, esi
lea eax, [esi + 0xc]
mov esi, dword [eax]
mov dword [eax], 0
push 1
mov eax, dword [ecx]
call dword [eax]
test esi, esi
jne 0x417fee
mov ecx, dword [ebp - 0x2d0]
mov dword [ebp - 0x2e0], 0
test ecx, ecx
je 0x41802a
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x41802a
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov edx, dword [ebp - 0x240]
cmp edx, 0x10
jb 0x418064
mov ecx, dword [ebp - 0x254]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41805a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418190
push edx
push ecx
call fcn.00445172
add esp, 8
mov edx, dword [ebp - 0x2a0]
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x240], 0xf
mov byte [ebp - 0x254], 0
cmp edx, 8
jb 0x4180bf
mov ecx, dword [ebp - 0x2b4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4180b5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418190
push edx
push ecx
call fcn.00445172
add esp, 8
mov edx, dword [ebp - 0x270]
cmp edx, 8
jb 0x4180ff
mov ecx, dword [ebp - 0x284]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4180f5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418190
push edx
push ecx
call fcn.00445172
add esp, 8
mov edx, dword [ebp - 0x288]
xor eax, eax
mov dword [ebp - 0x274], 0
mov dword [ebp - 0x270], 7
mov word [ebp - 0x284], ax
cmp edx, 8
jb 0x418158
mov ecx, dword [ebp - 0x29c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41814e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418190
push edx
push ecx
call fcn.00445172
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044518e
mov esp, ebp
pop ebp
ret
call fcn.0040cab0
lea ecx, [ebp - 0x224]
push ecx
push eax
push str.directory_iterator::directory_iterator
call fcn.0041db80
call fcn.0047357c
push eax
push str.directory_iterator::operator
call fcn.0041db30
call fcn.0047357c
int3