Function at 0x46f2c4
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x19
push 0
push 0
dec ecx
jne 0x46f2cd
push ecx
xchg dword [ebp - 4], ecx
push ebx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404824
mov eax, dword [ebp - 8]
call fcn.00404824
mov eax, dword [ebp - 0x44]
call fcn.00404824
xor eax, eax
push ebp
push 0x46f9f5
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
je 0x46f947
mov eax, dword [ebp - 4]
call fcn.00404670
mov edx, dword [ebp - 4]
cmp byte [edx + eax - 1], 0x5c
je 0x46f331
lea eax, [ebp - 4]
mov edx, 0x46fa0c
call fcn.00404678
lea eax, [ebp - 0x4c]
mov ecx, 0x46fa18
mov edx, dword [ebp - 4]
call fcn.004046bc
mov eax, dword [ebp - 0x4c]
call fcn.00465534
test al, al
je 0x46f947
cmp dword [ebp - 8], 0
je 0x46f947
mov eax, dword [ebp - 8]
call fcn.00404670
mov edx, dword [ebp - 8]
cmp byte [edx + eax - 1], 0x5c
je 0x46f37a
lea eax, [ebp - 8]
mov edx, 0x46fa0c
call fcn.00404678
lea eax, [ebp - 0x50]
mov ecx, 0x46fa18
mov edx, dword [ebp - 4]
call fcn.004046bc
mov ecx, dword [ebp - 0x50]
mov dl, 1
mov eax, dword [0x41a074]
call fcn.0041a11c
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x46f940
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov ecx, 0x46fa2c
mov edx, 0x46fa40
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
dec eax
test eax, eax
jl 0x46f4cc
inc eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x58]
mov eax, dword [ebp - 0x10]
call fcn.00409094
mov ecx, dword [ebp - 0x58]
lea eax, [ebp - 0x54]
mov edx, 0x46fa4c
call fcn.004046bc
mov ecx, dword [ebp - 0x54]
mov edx, 0x46fa40
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx]
push 0
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 0x10]
call fcn.00409094
mov ecx, dword [ebp - 0x60]
lea eax, [ebp - 0x5c]
mov edx, 0x46fa60
call fcn.004046bc
mov ecx, dword [ebp - 0x5c]
mov edx, 0x46fa40
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx]
mov eax, dword [0x474a24]
mov eax, dword [eax]
call fcn.0046ae98
dec eax
test eax, eax
jl 0x46f4c0
inc eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x68]
mov eax, dword [0x474a24]
mov eax, dword [eax]
mov edx, dword [ebp - 0x18]
call fcn.0046adc0
mov eax, dword [ebp - 0x68]
mov edx, dword [ebp - 0x24]
call fcn.00404780
jne 0x46f4b8
lea ecx, [ebp - 0x70]
mov eax, dword [0x474a24]
mov eax, dword [eax]
mov edx, dword [ebp - 0x18]
call fcn.0046adc0
mov edx, dword [ebp - 0x6c]
lea eax, [ebp - 0x1c]
call fcn.00404460
cmp dword [ebp - 0x2c], 0
je 0x46f4b8
push dword [ebp - 0x1c]
push 0x46fa0c
push dword [ebp - 0x2c]
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.00404730
mov dl, 1
mov eax, dword [ebp - 0x2c]
call fcn.004655e4
inc dword [ebp - 0x18]
dec dword [ebp - 0x40]
jne 0x46f454
inc dword [ebp - 0x10]
dec dword [ebp - 0x3c]
jne 0x46f3d8
push 0
mov ecx, 0x46fa78
mov edx, 0x46fa40
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
dec eax
test eax, eax
jl 0x46f622
inc eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 0x20]
push eax
lea edx, [ebp - 0x78]
mov eax, dword [ebp - 0x10]
call fcn.00409094
mov ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x74]
mov edx, 0x46fa88
call fcn.004046bc
mov ecx, dword [ebp - 0x74]
mov edx, 0x46fa40
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx]
push 0
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x10]
call fcn.00409094
mov ecx, dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
mov edx, 0x46fa98
call fcn.004046bc
mov ecx, dword [ebp - 0x7c]
mov edx, 0x46fa40
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx]
cmp dword [ebp - 0x20], 0
je 0x46f5fb
lea eax, [ebp - 0x20]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 4]
call fcn.004046bc
cmp dword [ebp - 0x24], 0
je 0x46f616
mov eax, dword [0x474a24]
mov eax, dword [eax]
call fcn.0046ae98
dec eax
test eax, eax
jl 0x46f616
inc eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x88]
mov eax, dword [0x474a24]
mov eax, dword [eax]
mov edx, dword [ebp - 0x18]
call fcn.0046adc0
mov eax, dword [ebp - 0x88]
mov edx, dword [ebp - 0x24]
call fcn.00404780
jne 0x46f5f1
lea ecx, [ebp - 0x90]
mov eax, dword [0x474a24]
mov eax, dword [eax]
mov edx, dword [ebp - 0x18]
call fcn.0046adc0
mov edx, dword [ebp - 0x8c]
lea eax, [ebp - 0x1c]
call fcn.00404460
mov cl, 1
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
call fcn.0046f1a8
inc dword [ebp - 0x18]
dec dword [ebp - 0x40]
jne 0x46f59c
jmp 0x46f616
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 8]
call fcn.004046bc
mov cl, 1
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
call fcn.0046f1a8
inc dword [ebp - 0x10]
dec dword [ebp - 0x3c]
jne 0x46f4fa
push 0
mov ecx, 0x46fa78
mov edx, 0x46faac
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
dec eax
test eax, eax
jl 0x46f7ff
inc eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 0x20]
push eax
lea edx, [ebp - 0x98]
mov eax, dword [ebp - 0x10]
call fcn.00409094
mov ecx, dword [ebp - 0x98]
lea eax, [ebp - 0x94]
mov edx, 0x46fa88
call fcn.004046bc
mov ecx, dword [ebp - 0x94]
mov edx, 0x46faac
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx]
push 0
lea eax, [ebp - 0x1c]
push eax
lea edx, [ebp - 0xa0]
mov eax, dword [ebp - 0x10]
call fcn.00409094
mov ecx, dword [ebp - 0xa0]
lea eax, [ebp - 0x9c]
mov edx, 0x46fabc
call fcn.004046bc
mov ecx, dword [ebp - 0x9c]
mov edx, 0x46faac
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx]
push 0
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0xa8]
mov eax, dword [ebp - 0x10]
call fcn.00409094
mov ecx, dword [ebp - 0xa8]
lea eax, [ebp - 0xa4]
mov edx, 0x46fa98
call fcn.004046bc
mov ecx, dword [ebp - 0xa4]
mov edx, 0x46faac
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx]
cmp dword [ebp - 0x20], 0
je 0x46f7f3
cmp dword [ebp - 0x1c], 0
je 0x46f7f3
cmp dword [ebp - 0x24], 0
je 0x46f7be
lea eax, [ebp - 0x20]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 4]
call fcn.004046bc
mov eax, dword [0x474a24]
mov eax, dword [eax]
call fcn.0046ae98
dec eax
test eax, eax
jl 0x46f7f3
inc eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0xb0]
mov eax, dword [0x474a24]
mov eax, dword [eax]
mov edx, dword [ebp - 0x18]
call fcn.0046adc0
mov eax, dword [ebp - 0xb0]
mov edx, dword [ebp - 0x24]
call fcn.00404780
jne 0x46f7b4
lea ecx, [ebp - 0xb8]
mov eax, dword [0x474a24]
mov eax, dword [eax]
mov edx, dword [ebp - 0x18]
call fcn.0046adc0
mov edx, dword [ebp - 0xb4]
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
call fcn.004046bc
push 0
mov eax, dword [ebp - 0x1c]
call fcn.00404834
push eax
mov eax, dword [ebp - 0x20]
call fcn.00404834
push eax
call sub.kernel32.dll_CopyFileA
inc dword [ebp - 0x18]
dec dword [ebp - 0x40]
jne 0x46f750
jmp 0x46f7f3
lea eax, [ebp - 0x20]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 4]
call fcn.004046bc
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 8]
call fcn.004046bc
push 0
mov eax, dword [ebp - 0x1c]
call fcn.00404834
push eax
mov eax, dword [ebp - 0x20]
call fcn.00404834
push eax
call sub.kernel32.dll_CopyFileA
inc dword [ebp - 0x10]
dec dword [ebp - 0x3c]
jne 0x46f650
push 0
mov ecx, 0x46fa78
mov edx, 0x46facc
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
dec eax
test eax, eax
jl 0x46f92a
inc eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 0x30]
push eax
lea edx, [ebp - 0xc0]
mov eax, dword [ebp - 0x10]
call fcn.00409094
mov ecx, dword [ebp - 0xc0]
lea eax, [ebp - 0xbc]
mov edx, 0x46fadc
call fcn.004046bc
mov ecx, dword [ebp - 0xbc]
mov edx, 0x46facc
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx]
push 0
lea eax, [ebp - 0x34]
push eax
lea edx, [ebp - 0xc8]
mov eax, dword [ebp - 0x10]
call fcn.00409094
mov ecx, dword [ebp - 0xc8]
lea eax, [ebp - 0xc4]
mov edx, 0x46faec
call fcn.004046bc
mov ecx, dword [ebp - 0xc4]
mov edx, 0x46facc
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx]
push 0
lea eax, [ebp - 0x38]
push eax
lea edx, [ebp - 0xd0]
mov eax, dword [ebp - 0x10]
call fcn.00409094
mov ecx, dword [ebp - 0xd0]
lea eax, [ebp - 0xcc]
mov edx, 0x46fb00
call fcn.004046bc
mov ecx, dword [ebp - 0xcc]
mov edx, 0x46facc
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx]
cmp dword [ebp - 0x30], 0
je 0x46f91e
cmp dword [ebp - 0x34], 0
je 0x46f91e
cmp dword [ebp - 0x38], 0
je 0x46f91e
lea eax, [ebp - 0x30]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 8]
call fcn.004046bc
mov eax, dword [ebp - 0x30]
call fcn.00465534
test al, al
je 0x46f91e
mov eax, dword [ebp - 0x38]
push eax
mov cl, 2
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x30]
call fcn.0046afc0
inc dword [ebp - 0x10]
dec dword [ebp - 0x3c]
jne 0x46f82d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46f947
mov eax, dword [ebp - 0xc]
call fcn.00403578
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46f9ff
lea eax, [ebp - 0xd0]
mov edx, 6
call fcn.004043ec
lea eax, [ebp - 0xb8]
mov edx, dword [0x46acac]
mov ecx, 2
call fcn.00404cf0
lea eax, [ebp - 0xa8]
mov edx, 6
call fcn.004043ec
lea eax, [ebp - 0x90]
mov edx, dword [0x46acac]
mov ecx, 2
call fcn.00404cf0
lea eax, [ebp - 0x80]
mov edx, 4
call fcn.004043ec
lea eax, [ebp - 0x70]
mov edx, dword [0x46acac]
mov ecx, 2
call fcn.00404cf0
lea eax, [ebp - 0x60]
mov edx, 8
call fcn.004043ec
lea eax, [ebp - 0x38]
mov edx, 4
call fcn.004043ec
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.004043ec
lea eax, [ebp - 8]
mov edx, 2
call fcn.004043ec
ret