Function at 0x49f95c
Capabilities:
Copy file
Move file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x48
push 0
push 0
dec ecx
jne 0x49f964
push ebx
push esi
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x188]
mov edx, dword [0x407d08]
call fcn.004050b0
xor eax, eax
push ebp
push 0x4a0342
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [0x4a97d4]
mov edx, dword [edx]
lea eax, [ebp - 0x1c]
mov ecx, 0x4a0358
call fcn.004049f4
lea eax, [ebp - 0x18c]
call fcn.0049aa74
lea eax, [ebp - 0x18c]
mov edx, 0x4a036c
call fcn.004049b0
mov eax, dword [ebp - 0x18c]
call fcn.004096a0
test al, al
je 0x49fa2a
mov eax, dword [0x4a97d4]
push dword [eax]
mov eax, dword [0x4a9d70]
push dword [eax]
push 0x4a0394
lea eax, [ebp - 0x190]
mov edx, 3
call fcn.00404a68
mov eax, dword [ebp - 0x190]
call fcn.00404ba8
push eax
lea eax, [ebp - 0x194]
call fcn.0049aa74
lea eax, [ebp - 0x194]
mov edx, 0x4a036c
call fcn.004049b0
mov eax, dword [ebp - 0x194]
call fcn.00404ba8
push eax
call sub.kernel32.dll_MoveFileA
lea eax, [ebp - 0x198]
call fcn.0049ab98
lea eax, [ebp - 0x198]
mov edx, 0x4a036c
call fcn.004049b0
mov eax, dword [ebp - 0x198]
call fcn.004096a0
test al, al
je 0x49faf3
push 0
mov eax, dword [0x4a97d4]
push dword [eax]
mov eax, dword [0x4a9d70]
push dword [eax]
push 0x4a0394
lea eax, [ebp - 0x19c]
mov edx, 3
call fcn.00404a68
mov eax, dword [ebp - 0x19c]
call fcn.00404ba8
push eax
lea eax, [ebp - 0x1a0]
call fcn.0049ab98
lea eax, [ebp - 0x1a0]
mov edx, 0x4a036c
call fcn.004049b0
mov eax, dword [ebp - 0x1a0]
call fcn.00404ba8
push eax
call sub.kernel32.dll_CopyFileA
lea eax, [ebp - 0x1a8]
call fcn.0049ab98
lea eax, [ebp - 0x1a8]
mov edx, 0x4a036c
call fcn.004049b0
mov eax, dword [ebp - 0x1a8]
call fcn.00404ba8
mov edx, eax
lea eax, [ebp - 0x1a4]
call fcn.004048e0
mov eax, dword [ebp - 0x1a4]
call fcn.004098b8
lea eax, [ebp - 0x1ac]
mov ecx, 0x4a03bc
mov edx, dword [ebp - 0x1c]
call fcn.004049f4
mov eax, dword [ebp - 0x1ac]
lea ecx, [ebp - 0x188]
mov edx, 0x3f
call fcn.00409828
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x49fecf
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x17c]
call fcn.004049a8
mov ecx, eax
sub ecx, 4
mov edx, 1
mov eax, dword [ebp - 0x17c]
call fcn.00404c08
lea eax, [ebp - 0x1b0]
push eax
mov edx, dword [0x4a9d70]
mov edx, dword [edx]
mov eax, dword [0x4a970c]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x10]
call fcn.0049c90c
mov eax, dword [ebp - 0x1b0]
mov edx, 0x4a03cc
call fcn.00404af4
jne 0x49feb7
mov dl, 1
mov eax, dword [0x417e74]
call fcn.004037a4
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1b8]
mov ecx, dword [ebp - 0x17c]
mov edx, dword [ebp - 0x1c]
call fcn.004049f4
mov eax, dword [ebp - 0x1b8]
lea edx, [ebp - 0x1b4]
call fcn.0049c764
mov edx, dword [ebp - 0x1b4]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov dl, 1
mov eax, dword [0x417e74]
call fcn.004037a4
mov ebx, eax
lea ecx, [ebp - 0x1bc]
mov edx, 0x4a03d8
mov eax, dword [ebp - 0x14]
call fcn.00499e1c
mov edx, dword [ebp - 0x1bc]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x14]
call fcn.004037d4
mov byte [ebp - 0x1d], 1
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x49fdbf
inc eax
mov dword [ebp - 0x30], eax
xor esi, esi
lea ecx, [ebp - 0x1c0]
mov edx, esi
mov eax, ebx
call fcn.0041b9f0
cmp dword [ebp - 0x1c0], 0
je 0x49fdb1
lea ecx, [ebp - 0x1c4]
mov edx, esi
mov eax, ebx
call fcn.0041b9f0
mov edx, dword [ebp - 0x1c4]
lea ecx, [ebp - 0x24]
mov eax, ebx
call fcn.0041bbd0
mov edx, dword [ebp - 0x24]
mov eax, 0x4a03e8
call fcn.00404cec
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x24]
call fcn.004049a8
mov ecx, eax
sub ecx, 4
mov edx, dword [ebp - 0x2c]
inc edx
mov eax, dword [ebp - 0x24]
call fcn.00404c08
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x2c]
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x24]
call fcn.00404c08
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x1cc]
mov edx, esi
mov eax, ebx
call fcn.0041b9f0
push dword [ebp - 0x1cc]
push 0x4a03f4
lea eax, [ebp - 0x1c8]
mov edx, 3
call fcn.00404a68
mov eax, dword [ebp - 0x1c8]
call fcn.004096a0
test al, al
je 0x49fd6e
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x1d8]
mov edx, esi
mov eax, ebx
call fcn.0041b9f0
push dword [ebp - 0x1d8]
push 0x4a03f4
lea eax, [ebp - 0x1d4]
mov edx, 3
call fcn.00404a68
mov eax, dword [ebp - 0x1d4]
call fcn.00490b94
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x1d0]
call fcn.00409284
mov eax, dword [ebp - 0x1d0]
mov edx, dword [ebp - 0x24]
call fcn.00404af4
je 0x49fdb5
lea ecx, [ebp - 0x1e0]
mov edx, esi
mov eax, ebx
call fcn.0041b9f0
push dword [ebp - 0x1e0]
push 0x4a0404
push dword [ebp - 0x28]
lea eax, [ebp - 0x1dc]
mov edx, 3
call fcn.00404a68
mov edx, dword [ebp - 0x1dc]
mov eax, dword [0x4ac0a4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov byte [ebp - 0x1d], 0
jmp 0x49fdb5
lea ecx, [ebp - 0x1e8]
mov edx, esi
mov eax, ebx
call fcn.0041b9f0
push dword [ebp - 0x1e8]
push 0x4a0404
push dword [ebp - 0x28]
lea eax, [ebp - 0x1e4]
mov edx, 3
call fcn.00404a68
mov edx, dword [ebp - 0x1e4]
mov eax, dword [0x4ac0a4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov byte [ebp - 0x1d], 0
jmp 0x49fdb5
mov byte [ebp - 0x1d], 0
inc esi
dec dword [ebp - 0x30]
jne 0x49fc13
cmp byte [ebp - 0x1d], 0
je 0x49feb0
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x49fe54
inc eax
mov dword [ebp - 0x30], eax
xor esi, esi
lea ecx, [ebp - 0x1ec]
mov edx, esi
mov eax, ebx
call fcn.0041b9f0
cmp dword [ebp - 0x1ec], 0
je 0x49fe4e
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x1f4]
mov edx, esi
mov eax, ebx
call fcn.0041b9f0
push dword [ebp - 0x1f4]
push 0x4a03f4
lea eax, [ebp - 0x1f0]
mov edx, 3
call fcn.00404a68
mov eax, dword [ebp - 0x1f0]
push eax
mov ecx, dword [0x4a9d70]
mov ecx, dword [ecx]
mov edx, dword [0x4a97d4]
mov edx, dword [edx]
lea eax, [ebp - 0x1f8]
call fcn.004049f4
mov edx, dword [ebp - 0x1f8]
pop eax
call fcn.00496d3c
inc esi
dec dword [ebp - 0x30]
jne 0x49fddb
push 0
mov eax, dword [0x4a97d4]
push dword [eax]
mov eax, dword [0x4a9d70]
push dword [eax]
push 0x4a0410
push dword [ebp - 0x17c]
lea eax, [ebp - 0x1fc]
mov edx, 4
call fcn.00404a68
mov eax, dword [ebp - 0x1fc]
call fcn.00404ba8
push eax
lea eax, [ebp - 0x200]
mov ecx, dword [ebp - 0x17c]
mov edx, dword [ebp - 0x1c]
call fcn.004049f4
mov eax, dword [ebp - 0x200]
call fcn.00404ba8
push eax
call sub.kernel32.dll_CopyFileA
mov eax, ebx
call fcn.004037d4
lea eax, [ebp - 0x188]
call fcn.00409878
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x49fb29
mov eax, dword [0x4a97d4]
push dword [eax]
mov eax, dword [0x4a9d70]
push dword [eax]
push 0x4a0394
lea eax, [ebp - 0x204]
mov edx, 3
call fcn.00404a68
mov eax, dword [ebp - 0x204]
call fcn.004096a0
test al, al
jne 0x49ff2f
mov eax, dword [0x4a97d4]
push dword [eax]
mov eax, dword [0x4a9d70]
push dword [eax]
push 0x4a041c
lea eax, [ebp - 0x208]
mov edx, 3
call fcn.00404a68
mov eax, dword [ebp - 0x208]
call fcn.004098b8
mov dl, 1
mov eax, dword [0x417e74]
call fcn.004037a4
mov dword [ebp - 0xc], eax
mov eax, dword [0x4a97d4]
push dword [eax]
mov eax, dword [0x4a9d70]
push dword [eax]
push 0x4a0430
lea eax, [ebp - 0x20c]
mov edx, 3
call fcn.00404a68
mov eax, dword [ebp - 0x20c]
lea ecx, [ebp - 0x188]
mov edx, 0x3f
call fcn.00409828
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4a0027
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x17c]
call fcn.004049a8
mov ecx, eax
sub ecx, 4
mov edx, 1
mov eax, dword [ebp - 0x17c]
call fcn.00404c08
lea eax, [ebp - 0x210]
push eax
mov edx, dword [0x4a9d70]
mov edx, dword [edx]
mov eax, dword [0x4a970c]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x10]
call fcn.0049c90c
mov eax, dword [ebp - 0x210]
mov edx, 0x4a03cc
call fcn.00404af4
jne 0x4a000f
mov eax, dword [0x4a97d4]
push dword [eax]
mov eax, dword [0x4a9d70]
push dword [eax]
push 0x4a0410
push dword [ebp - 0x17c]
lea eax, [ebp - 0x214]
mov edx, 4
call fcn.00404a68
mov edx, dword [ebp - 0x214]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x188]
call fcn.00409878
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x49ff84
lea eax, [ebp - 0x188]
call fcn.0040989c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
mov eax, dword [eax + 0x22c]
call fcn.0043fce8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2fc]
call fcn.00462674
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x4a02ce
inc eax
mov dword [ebp - 0x30], eax
xor esi, esi
mov dl, 1
mov eax, dword [0x417e74]
call fcn.004037a4
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x21c]
mov edx, esi
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x21c]
lea edx, [ebp - 0x218]
call fcn.0049c764
mov edx, dword [ebp - 0x218]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov edx, dword [0x49ee34]
mov eax, 0x18
call fcn.004055f4
mov ebx, eax
lea ecx, [ebp - 0x220]
mov edx, 0x4a0440
mov eax, dword [ebp - 0x14]
call fcn.0041bbd0
mov edx, dword [ebp - 0x220]
mov eax, ebx
call fcn.0040473c
lea ecx, [ebp - 0x224]
mov edx, 0x4a044c
mov eax, dword [ebp - 0x14]
call fcn.0041bbd0
mov edx, dword [ebp - 0x224]
lea eax, [ebx + 8]
call fcn.0040473c
lea ecx, [ebp - 0x228]
mov edx, 0x4a045c
mov eax, dword [ebp - 0x14]
call fcn.0041bbd0
mov edx, dword [ebp - 0x228]
lea eax, [ebx + 4]
call fcn.0040473c
lea ecx, [ebp - 0x22c]
mov edx, 0x4a046c
mov eax, dword [ebp - 0x14]
call fcn.0041bbd0
mov edx, dword [ebp - 0x22c]
lea eax, [ebx + 0x14]
call fcn.0040473c
lea ecx, [ebp - 0x230]
mov edx, 0x4a047c
mov eax, dword [ebp - 0x14]
call fcn.0041bbd0
mov edx, dword [ebp - 0x230]
lea eax, [ebx + 0xc]
call fcn.0040473c
lea ecx, [ebp - 0x234]
mov edx, 0x4a048c
mov eax, dword [ebp - 0x14]
call fcn.0041bbd0
mov edx, dword [ebp - 0x234]
lea eax, [ebx + 0x10]
call fcn.0040473c
mov eax, dword [ebx]
mov edx, 0x4a049c
call fcn.00404af4
jne 0x4a01dc
lea eax, [ebp - 0x238]
push eax
mov edx, dword [0x4a9d70]
mov edx, dword [edx]
mov eax, dword [0x4a970c]
mov eax, dword [eax]
mov ecx, 0x4a04a8
call fcn.0049c90c
mov eax, dword [ebp - 0x238]
mov edx, 0x4a03cc
call fcn.00404af4
jne 0x4a01cf
lea eax, [ebx + 4]
mov edx, 0x4a04bc
call fcn.0040473c
jmp 0x4a01dc
lea eax, [ebx + 4]
mov edx, 0x4a04dc
call fcn.0040473c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
mov eax, dword [eax + 0x22c]
call fcn.0043fb98
mov edi, eax
mov edx, dword [ebx + 4]
mov eax, edi
call fcn.0043f638
mov edx, ebx
mov eax, edi
call fcn.0043f6e8
or ecx, 0xffffffff
xor edx, edx
mov eax, edi
call fcn.0043f7f0
mov eax, dword [0x4a97d4]
push dword [eax]
mov eax, dword [0x4a9d70]
push dword [eax]
push 0x4a0410
push dword [ebx + 8]
lea eax, [ebp - 0x23c]
mov edx, 4
call fcn.00404a68
mov eax, dword [ebp - 0x23c]
call fcn.004096a0
test al, al
je 0x4a02bc
mov dl, 1
mov eax, dword [0x425918]
call fcn.0042ce20
mov dword [ebp - 0x18], eax
mov eax, dword [0x4a97d4]
push dword [eax]
mov eax, dword [0x4a9d70]
push dword [eax]
push 0x4a0410
push dword [ebx + 8]
lea eax, [ebp - 0x240]
mov edx, 4
call fcn.00404a68
mov edx, dword [ebp - 0x240]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x4c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2fc]
mov edx, dword [ebp - 0x18]
call fcn.00462514
mov eax, dword [ebp - 0x18]
call fcn.004037d4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2fc]
call fcn.004625c4
mov ecx, eax
dec ecx
xor edx, edx
mov eax, edi
call fcn.0043f7f0
mov eax, dword [ebp - 0x14]
call fcn.004037d4
inc esi
dec dword [ebp - 0x30]
jne 0x4a006b
mov eax, dword [ebp - 0xc]
call fcn.004037d4
mov eax, dword [0x4ac0a4]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x4a02f6
mov eax, dword [0x4a9590]
cmp byte [eax], 0
je 0x4a02f6
mov eax, dword [ebp - 4]
call fcn.004a0518
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a0349
lea eax, [ebp - 0x240]
mov edx, 0x2e
call fcn.0040470c
lea eax, [ebp - 0x188]
mov edx, dword [0x407d08]
call fcn.00405180
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.0040470c
lea eax, [ebp - 0x1c]
call fcn.004046e8
lea eax, [ebp - 0x10]
call fcn.004046e8
ret