Function at 0x402dd0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x406325
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x409004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xac], ecx
mov dword [ebp - 0x8c], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x70], 0
xor eax, eax
mov dword [ebp - 0x60], 0
mov byte [ebp - 4], al
lea ecx, [ebp - 0x70]
mov esi, 1
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
mov dword [ebp - 0x8c], esi
call fcn.00402c70
test eax, eax
jne 0x40335e
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
push ecx
lea edx, [ebp - 0x70]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00404050
add esp, 4
test eax, eax
jne 0x40336a
mov ecx, dword [ebp - 0x14]
xorps xmm0, xmm0
movlpd qword [ebp - 0x20], xmm0
test ecx, ecx
je 0x402e81
lock inc dword [ecx + 4]
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], ecx
test ecx, ecx
je 0x402e92
lock inc dword [ecx + 4]
movlpd qword [ebp - 0x58], xmm0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
test ecx, ecx
je 0x402ec9
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
jne 0x402ec9
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x14]
or eax, 0xffffffff
lock xadd dword [ecx + 8], eax
jne 0x402ec9
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
test edi, edi
je 0x4032a5
lea eax, [edi + 0x20]
push eax
lea ecx, [ebp - 0x88]
call fcn.004038b0
lea eax, [ebp - 0xc8]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x88]
call fcn.00401c80
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 7
call fcn.004038b0
or esi, 0x10
mov dword [ebp - 0x8c], esi
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0xb4]
cmp edx, 8
jb 0x402f54
mov ecx, dword [ebp - 0xc8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402f4a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403333
push edx
push ecx
call fcn.004052b9
add esp, 8
xor eax, eax
mov dword [ebp - 0xb8], 0
lea ecx, [ebp - 0x88]
mov dword [ebp - 0xb4], 7
mov word [ebp - 0xc8], ax
call fcn.00402b30
test al, al
jne 0x403213
mov edx, dword [ebp - 0xac]
mov eax, 0x7ffffffe
mov ecx, dword [edx + 0x10]
sub eax, ecx
cmp eax, 1
jb 0x40337a
cmp dword [edx + 0x14], 8
mov eax, edx
jb 0x402fa7
mov eax, dword [edx]
push 1
push 0x40739c
push ecx
push eax
push ecx
push dword [ebp - 0x90]
lea ecx, [ebp - 0xa8]
call fcn.00404c60
or esi, 0x20
mov dword [ebp - 0x8c], esi
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x38]
cmp dword [ebp - 0x24], 8
mov edi, dword [ebp - 0x98]
cmovae ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x94]
mov edx, dword [ebp - 0x28]
sub eax, edi
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0xb0], edi
cmp edx, eax
ja 0x403047
mov eax, dword [ebp - 0xb0]
lea esi, [ebp - 0xa8]
add edi, edx
cmp dword [ebp - 0x94], 8
mov dword [ebp - 0x98], edi
cmovae esi, dword [ebp - 0xa8]
lea ecx, [esi + eax*2]
lea eax, [edx + edx]
push eax
push dword [ebp - 0x90]
push ecx
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
lea eax, [ebp - 0xa8]
mov esi, dword [ebp - 0x8c]
jmp 0x40305b
push edx
push ecx
push dword [ebp - 0x90]
lea ecx, [ebp - 0xa8]
push edx
call fcn.004044f0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x50], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x40], xmm0
xor ecx, ecx
mov dword [eax + 0x10], 0
or esi, 0x40
mov dword [eax + 0x14], 7
mov word [eax], cx
mov dword [ebp - 0x8c], esi
mov byte [ebp - 4], 0xe
mov edx, dword [ebp - 0x94]
cmp edx, 8
jb 0x4030e1
mov ecx, dword [ebp - 0xa8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4030d7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403333
push edx
push ecx
call fcn.004052b9
add esp, 8
xor eax, eax
mov dword [ebp - 0x98], 0
cmp dword [ebp - 0x3c], 8
lea ecx, [ebp - 0x50]
mov word [ebp - 0xa8], ax
lea eax, [ebp - 0x88]
cmovae ecx, dword [ebp - 0x50]
cmp dword [ebp - 0x74], 8
push 0
cmovae eax, dword [ebp - 0x88]
push ecx
push eax
mov dword [ebp - 0x94], 7
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4031d5
mov ecx, dword [ebp - 0x28]
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 0x13
jb 0x40337a
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
push ecx
cmovae eax, dword [ebp - 0x38]
push eax
push 0x13
push 0x4073a8
push ecx
push dword [ebp - 0x90]
lea ecx, [ebp - 0xc8]
call fcn.00404c60
or esi, 0x80
lea eax, [ebp - 0xc8]
cmp dword [ebp - 0xb4], 8
push 0x10
cmovae eax, dword [ebp - 0xc8]
push 0x4073a0
push eax
push 0
mov dword [ebp - 0x8c], esi
call dword [sym.imp.USER32.dll_MessageBoxW]
mov edx, dword [ebp - 0xb4]
cmp edx, 8
jb 0x4031d5
mov ecx, dword [ebp - 0xc8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4031cb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403333
push edx
push ecx
call fcn.004052b9
add esp, 8
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x3c]
cmp edx, 8
jb 0x403213
mov ecx, dword [ebp - 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403209
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403333
push edx
push ecx
call fcn.004052b9
add esp, 8
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x24]
cmp edx, 8
jb 0x403251
mov ecx, dword [ebp - 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403247
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403333
push edx
push ecx
call fcn.004052b9
add esp, 8
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x74]
cmp edx, 8
jb 0x403292
mov ecx, dword [ebp - 0x88]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403288
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403333
push edx
push ecx
call fcn.004052b9
add esp, 8
lea ecx, [ebp - 0x20]
call fcn.00402a20
mov edi, dword [ebp - 0x20]
test edi, edi
jne 0x402ed5
mov esi, dword [ebp - 0x1c]
or edi, 0xffffffff
test esi, esi
je 0x4032ce
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x4032ce
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x4032ce
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x4032f3
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x4032f3
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x4032f3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
push 0x40
push 0x4073d0
push 0x407400
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov edx, dword [ebp - 0x5c]
cmp edx, 8
jb 0x403343
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403339
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x403339
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004052b9
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00405276
mov esp, ebp
pop ebp
ret
mov edx, eax
mov ecx, str.current_path__
call fcn.00402520
lea ecx, [ebp - 0x70]
mov edx, eax
push ecx
mov ecx, str.directory_iterator::directory_iterator
call fcn.00402660
call fcn.00401160
int3