Function at 0x4107f0
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x48aef2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x988
push ebx
mov ebx, dword [esp + 0x9a0]
push ebp
push esi
push edi
mov edi, ecx
push ebx
mov ecx, dword [edi + 0xc]
call fcn.0040d010
mov esi, dword [esp + 0x9a8]
mov ebp, eax
lea eax, [esp + 0xa8]
mov ecx, edi
push eax
push ebx
push esi
mov dword [esp + 0x28], ebp
call fcn.0040fb90
test ebp, ebp
je 0x410f8f
cmp word [esp + 0xfa], 0
je 0x410f8f
lea ecx, [esp + 0xa8]
push ecx
push ebx
push esi
mov ecx, edi
call fcn.0040fb90
test al, al
je 0x410f8f
mov ecx, dword [esp + 0xfa]
cmp cx, 1
jne 0x410b78
lea edx, [esp + 0x38]
mov ecx, edi
push edx
push 0
push ebx
push esi
call fcn.0040fbc0
test al, al
je 0x410f8f
mov eax, dword [esp + 0x8c]
add eax, 0x400
push eax
call fcn.00458bae
add esp, 4
mov ebp, eax
push 0
push 0
push 0
push ebx
mov byte [ebp], 0
mov ecx, dword [edi + 0x34]
push esi
push ebp
push 0
push ecx
call fcn.004437b0
mov ax, word [esp + 0xf8]
cmp ax, 0x31
jne 0x4109b8
mov edx, dword [esp + 0x1c]
cmp byte [edx + 0xc8], 0x25
jne 0x4109c4
cmp byte [ebp], 0
je 0x4109c4
lea ecx, [esp + 0x24]
call fcn.0046d670
lea eax, [esp + 0x24]
mov ecx, edi
push eax
push ebx
push esi
mov dword [esp + 0x9ac], 0
call fcn.004115d0
mov eax, dword [esp + 0x2c]
mov byte [ebp], 0
test eax, eax
jle 0x41098f
mov edx, dword [esp + 0x28]
mov dword [esp + 0x10], eax
cmp byte [ebp], 0
je 0x41095a
mov edi, 0x4b0e5c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [edx]
or ecx, 0xffffffff
xor eax, eax
add edx, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x10]
mov ecx, ebx
and ecx, 3
dec eax
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x10], eax
jne 0x41092a
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x9a0], 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x8c], ecx
lea ecx, [esp + 0x24]
call fcn.0046d6a3
jmp 0x4109da
cmp ax, 0x32
je 0x4109c4
cmp ax, 0x30
jne 0x4109da
test ebp, ebp
mov ecx, ebp
je 0x4109da
mov al, byte [ecx]
test al, al
je 0x4109da
cmp al, 0xff
jne 0x4109d7
mov byte [ecx], 0x3b
inc ecx
jne 0x4109ca
mov ecx, dword [esp + 0x8c]
mov byte [ecx + ebp], 0
mov eax, dword [esp + 0x9c]
test eax, eax
jne 0x4109ff
mov eax, dword [esp + 0xa0]
test eax, eax
je 0x410b71
mov ebx, dword [esp + 0x9b0]
lea edx, [esp + 0x68]
push ebx
push 0
lea eax, [esp + 0x18]
push edx
push eax
mov ecx, 0x4bfe38
call fcn.0041bc10
mov ecx, dword [esp + 0x10]
push 0
push ecx
push ebp
mov dword [esp + 0x9ac], 1
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov edi, 0x4b1b08
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
test ebx, ebx
rep movsb byte es:[edi], byte [esi]
je 0x410ab0
cmp byte [ebx], 0
je 0x410ab0
lea eax, [esp + 0x218]
lea ecx, [esp + 0x118]
push eax
lea edx, [esp + 0x39c]
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x320]
push edx
push eax
push ecx
call fcn.0045887a
add esp, 0x14
lea edx, [esp + 0x118]
lea ecx, [esp + 0x10]
push edx
call fcn.0046e8dc
lea eax, [esp + 0x218]
lea ecx, [esp + 0x10]
push eax
call fcn.0046eb2f
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, ebp
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4b1804
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x58]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x9c]
test eax, eax
je 0x410b5d
mov edi, 0x4b1b00
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
mov dword [esp + 0x9a0], 0xffffffff
call fcn.0046e753
mov eax, ebp
jmp 0x410f9c
mov eax, dword [0x4bb604]
mov dword [esp + 0x14], eax
mov dword [esp + 0x9a0], 2
mov dword [esp + 0x18], eax
xor ebp, ebp
mov byte [esp + 0x9a0], 3
test cx, cx
jbe 0x410e82
jmp 0x410bac
mov esi, dword [esp + 0x9a8]
lea eax, [esp + 0x38]
mov ecx, edi
push eax
push ebp
push ebx
push esi
call fcn.0040fbc0
mov eax, dword [esp + 0x9c]
test eax, eax
jne 0x410d11
mov eax, dword [esp + 0xa0]
test eax, eax
jne 0x410d11
cmp word [esp + 0xf8], 0x35
je 0x410c9b
mov ecx, dword [esp + 0x9b0]
lea edx, [esp + 0x20]
push ecx
push 0
push str..txt
push edx
mov ecx, 0x4bfe38
call fcn.0041bc10
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x9a4], 5
call fcn.0046e88c
lea ecx, [esp + 0x20]
mov byte [esp + 0x9a0], 3
call fcn.0046e753
mov eax, dword [esp + 0x18]
push 0x4afbec
push eax
call fcn.0045879b
add esp, 8
mov dword [esp + 0x1c], eax
xor esi, esi
mov ecx, dword [esp + 0x9a8]
mov eax, dword [edi + 0x34]
push 0x3ff
push esi
push ebp
push ebx
lea edx, [esp + 0x5a8]
push ecx
push edx
push 0
push eax
call fcn.004437b0
test eax, eax
jle 0x410c89
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x598]
push ecx
push edx
mov byte [esp + eax + 0x5a0], 0
add esi, eax
call fcn.0045871c
add esp, 8
jmp 0x410c41
mov eax, dword [esp + 0x1c]
push eax
call fcn.0045869f
add esp, 4
jmp 0x410e6d
mov ecx, dword [esp + 0x14]
push 0x4bfab8
push ecx
call fcn.00458301
add esp, 8
test eax, eax
je 0x410cbf
push 0x4b0e5c
lea ecx, [esp + 0x18]
call fcn.0046eb2f
mov edx, dword [esp + 0x8c]
add edx, 0xa
push edx
call fcn.00458bae
mov ecx, dword [esp + 0x9ac]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x8c]
push 0
push 0
push ebp
push ebx
mov byte [esi + eax], 0
mov edx, dword [edi + 0x34]
push ecx
push esi
push 0
push edx
call fcn.004437b0
push esi
lea ecx, [esp + 0x18]
call fcn.0046eb2f
push esi
call fcn.004589c1
add esp, 4
jmp 0x410e6d
mov eax, dword [esp + 0x14]
push 0x4bfab8
push eax
call fcn.00458301
add esp, 8
test eax, eax
je 0x410d35
push 0x4b0e5c
lea ecx, [esp + 0x18]
call fcn.0046eb2f
mov ecx, dword [esp + 0x8c]
add ecx, 0xa
push ecx
call fcn.00458bae
mov edx, dword [esp + 0x90]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x9a8]
push 0
push 0
push ebp
push ebx
mov byte [esi + edx], 0
mov ecx, dword [edi + 0x34]
push eax
push esi
push 0
push ecx
call fcn.004437b0
mov edx, dword [esp + 0x9b0]
lea eax, [esp + 0x68]
push edx
push 0
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, 0x4bfe38
call fcn.0041bc10
mov edx, dword [esp + 0x10]
push 0
push edx
push esi
mov byte [esp + 0x9ac], 4
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push esi
call fcn.004589c1
add esp, 4
lea ecx, [esp + 0x14]
push 0x4b1b08
call fcn.0046eb2f
mov eax, dword [esp + 0x9b0]
test eax, eax
je 0x410e19
cmp byte [eax], 0
je 0x410e19
lea eax, [esp + 0x218]
lea ecx, [esp + 0x118]
push eax
lea edx, [esp + 0x39c]
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x320]
push edx
push eax
push ecx
call fcn.0045887a
add esp, 0x14
lea edx, [esp + 0x118]
lea ecx, [esp + 0x10]
push edx
call fcn.0046e8dc
lea eax, [esp + 0x218]
lea ecx, [esp + 0x10]
push eax
call fcn.0046eb2f
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
call fcn.0046eb6b
push 0x4b1804
lea ecx, [esp + 0x18]
call fcn.0046eb2f
lea edx, [esp + 0x58]
lea ecx, [esp + 0x14]
push edx
call fcn.0046eb2f
mov eax, dword [esp + 0x9c]
test eax, eax
je 0x410e5c
push 0x4b1b00
lea ecx, [esp + 0x18]
call fcn.0046eb2f
lea ecx, [esp + 0x10]
mov byte [esp + 0x9a0], 3
call fcn.0046e753
mov eax, dword [esp + 0xfa]
inc ebp
and eax, 0xffff
cmp ebp, eax
jl 0x410ba5
mov ecx, dword [esp + 0x18]
push 0x4bfab8
push ecx
call fcn.00458301
add esp, 8
test eax, eax
je 0x410f2d
mov edx, dword [esp + 0x14]
push 0x4bfab8
push edx
call fcn.00458301
add esp, 8
test eax, eax
je 0x410ec0
push 0x4b17b4
lea ecx, [esp + 0x18]
call fcn.0046eb2f
mov eax, dword [esp + 0x9b0]
test eax, eax
je 0x410f1f
cmp byte [eax], 0
je 0x410f1f
lea eax, [esp + 0x218]
lea ecx, [esp + 0x118]
push eax
lea edx, [esp + 0x39c]
push ecx
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x320]
push edx
push eax
push ecx
call fcn.0045887a
add esp, 0x14
lea edx, [esp + 0x118]
lea ecx, [esp + 0x18]
push edx
call fcn.0046e8dc
lea eax, [esp + 0x218]
lea ecx, [esp + 0x18]
push eax
call fcn.0046eb2f
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x18]
call fcn.0046eb6b
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 8]
add eax, 0xa
push eax
call fcn.00458bae
mov ebx, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
mov byte [ebx], 0
mov edi, dword [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x9a0], 2
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.0046e753
lea ecx, [esp + 0x14]
mov dword [esp + 0x9a0], 0xffffffff
call fcn.0046e753
mov eax, ebx
jmp 0x410f9c
push 0xa
call fcn.00458bae
add esp, 4
mov byte [eax], 0
mov ecx, dword [esp + 0x998]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x994
ret 0xc