Function at 0x413140
Capabilities:
Copy file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x47fed2
push eax
mov eax, dword [esp + 0x14]
mov dword fs:[0], esp
sub esp, 0x988
push ebx
push ebp
mov ebx, ecx
push esi
push edi
push eax
mov ecx, dword [ebx + 0xc]
call fcn.0040f160
mov edi, eax
test edi, edi
je 0x4138f7
mov esi, dword [esp + 0x9a8]
lea ecx, [esp + 0xa8]
push ecx
push edi
push esi
mov ecx, ebx
call fcn.00411d60
cmp word [esp + 0xfa], 0
je 0x4138f7
lea edx, [esp + 0xa8]
mov ecx, ebx
push edx
push edi
push esi
call fcn.00411d60
test al, al
je 0x4138f7
mov ecx, dword [esp + 0xfa]
cmp cx, 1
jne 0x4134be
lea eax, [esp + 0x38]
mov ecx, ebx
push eax
push 0
push edi
push esi
call fcn.00411da0
test al, al
je 0x4138f7
mov ecx, dword [esp + 0x8c]
add ecx, 0x400
push ecx
call fcn.0044dbfe
add esp, 4
mov ebp, eax
push 0
push 0
push 0
push edi
mov byte [ebp], 0
mov edx, dword [ebx + 0x34]
push esi
push ebp
push 0
push edx
call fcn.00443960
mov ax, word [esp + 0xf8]
cmp ax, 0x31
jne 0x4132fe
cmp byte [edi + 0xc8], 0x25
jne 0x41330a
cmp byte [ebp], 0
je 0x41330a
lea ecx, [esp + 0x24]
call fcn.00461ed4
lea eax, [esp + 0x24]
mov ecx, ebx
push eax
push edi
push esi
mov dword [esp + 0x9ac], 0
call fcn.00413f70
mov eax, dword [esp + 0x2c]
mov byte [ebp], 0
test eax, eax
jle 0x4132d5
mov edx, dword [esp + 0x28]
mov dword [esp + 0x10], eax
cmp byte [ebp], 0
je 0x4132a0
mov edi, 0x49ccf4
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 0x413270
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.00461f07
jmp 0x413320
cmp ax, 0x32
je 0x41330a
cmp ax, 0x30
jne 0x413320
test ebp, ebp
mov ecx, ebp
je 0x413320
mov al, byte [ecx]
test al, al
je 0x413320
cmp al, 0xff
jne 0x41331d
mov byte [ecx], 0x3b
inc ecx
jne 0x413310
mov ecx, dword [esp + 0x8c]
mov byte [ecx + ebp], 0
mov eax, dword [esp + 0x9c]
test eax, eax
jne 0x413345
mov eax, dword [esp + 0xa0]
test eax, eax
je 0x4134b7
mov ebx, dword [esp + 0x9b0]
lea edx, [esp + 0x68]
push ebx
push 0
lea eax, [esp + 0x18]
push edx
push eax
mov ecx, 0x4aaa70
call fcn.0041e4c0
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, 0x49ebc8
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 0x4133f6
cmp byte [ebx], 0
je 0x4133f6
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.0044d8ca
add esp, 0x14
lea edx, [esp + 0x118]
lea ecx, [esp + 0x10]
push edx
call fcn.00463140
lea eax, [esp + 0x218]
lea ecx, [esp + 0x10]
push eax
call fcn.00463393
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, 0x49e998
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 0x4134a3
mov edi, 0x49ec14
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.00462fb7
mov eax, ebp
jmp 0x413904
mov eax, dword [0x4a624c]
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 0x4137ea
jmp 0x4134f2
mov esi, dword [esp + 0x9a8]
lea eax, [esp + 0x38]
mov ecx, ebx
push eax
push ebp
push edi
push esi
call fcn.00411da0
mov eax, dword [esp + 0x9c]
test eax, eax
jne 0x413657
mov eax, dword [esp + 0xa0]
test eax, eax
jne 0x413657
cmp word [esp + 0xf8], 0x35
je 0x4135e1
mov ecx, dword [esp + 0x9b0]
lea edx, [esp + 0x20]
push ecx
push 0
push str..txt
push edx
mov ecx, 0x4aaa70
call fcn.0041e4c0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x9a4], 5
call fcn.004630f0
lea ecx, [esp + 0x20]
mov byte [esp + 0x9a0], 3
call fcn.00462fb7
mov eax, dword [esp + 0x18]
push 0x49cc44
push eax
call fcn.0044d7eb
add esp, 8
mov dword [esp + 0x1c], eax
xor esi, esi
mov ecx, dword [esp + 0x9a8]
mov eax, dword [ebx + 0x34]
push 0x3ff
push esi
push ebp
push edi
lea edx, [esp + 0x5a8]
push ecx
push edx
push 0
push eax
call fcn.00443960
test eax, eax
jle 0x4135cf
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x598]
push ecx
push edx
mov byte [esp + eax + 0x5a0], 0
add esi, eax
call fcn.0044d76c
add esp, 8
jmp 0x413587
mov eax, dword [esp + 0x1c]
push eax
call fcn.0044d6ef
add esp, 4
jmp 0x4137d5
mov ecx, dword [esp + 0x14]
push 0x4aa680
push ecx
call fcn.0044d292
add esp, 8
test eax, eax
je 0x413605
push 0x49ccf4
lea ecx, [esp + 0x18]
call fcn.00463393
mov edx, dword [esp + 0x8c]
add edx, 0xa
push edx
call fcn.0044dbfe
mov ecx, dword [esp + 0x9ac]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x8c]
push 0
push 0
push ebp
push edi
mov byte [esi + eax], 0
mov edx, dword [ebx + 0x34]
push ecx
push esi
push 0
push edx
call fcn.00443960
push esi
lea ecx, [esp + 0x18]
call fcn.00463393
push esi
call fcn.0044da11
add esp, 4
jmp 0x4137d5
mov eax, dword [esp + 0x14]
push 0x4aa680
push eax
call fcn.0044d292
add esp, 8
test eax, eax
je 0x41367b
push 0x49ccf4
lea ecx, [esp + 0x18]
call fcn.00463393
mov ecx, dword [esp + 0x8c]
add ecx, 0xa
push ecx
call fcn.0044dbfe
mov edx, dword [esp + 0x90]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x9a8]
push 0
push 0
push ebp
push edi
mov byte [esi + edx], 0
mov ecx, dword [ebx + 0x34]
push eax
push esi
push 0
push ecx
call fcn.00443960
mov edx, dword [esp + 0x9b0]
lea eax, [esp + 0x68]
push edx
push 0
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, 0x4aaa70
call fcn.0041e4c0
mov eax, dword [esp + 0xa0]
mov byte [esp + 0x9a0], 4
test eax, eax
je 0x4136f6
mov edx, dword [esp + 0x10]
push 0
push edx
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x413700
push esi
lea ecx, [esp + 0x14]
call fcn.00463140
push esi
call fcn.0044da11
add esp, 4
lea ecx, [esp + 0x14]
push 0x49ebc8
call fcn.00463393
mov eax, dword [esp + 0x9b0]
test eax, eax
je 0x413781
cmp byte [eax], 0
je 0x413781
mov eax, dword [esp + 0xa0]
test eax, eax
je 0x413781
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.0044d8ca
add esp, 0x14
lea edx, [esp + 0x118]
lea ecx, [esp + 0x10]
push edx
call fcn.00463140
lea eax, [esp + 0x218]
lea ecx, [esp + 0x10]
push eax
call fcn.00463393
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
call fcn.004633cf
push 0x49e998
lea ecx, [esp + 0x18]
call fcn.00463393
lea edx, [esp + 0x58]
lea ecx, [esp + 0x14]
push edx
call fcn.00463393
mov eax, dword [esp + 0x9c]
test eax, eax
je 0x4137c4
push 0x49ec14
lea ecx, [esp + 0x18]
call fcn.00463393
lea ecx, [esp + 0x10]
mov byte [esp + 0x9a0], 3
call fcn.00462fb7
mov eax, dword [esp + 0xfa]
inc ebp
and eax, 0xffff
cmp ebp, eax
jl 0x4134eb
mov ecx, dword [esp + 0x18]
push 0x4aa680
push ecx
call fcn.0044d292
add esp, 8
test eax, eax
je 0x413895
mov edx, dword [esp + 0x14]
push 0x4aa680
push edx
call fcn.0044d292
add esp, 8
test eax, eax
je 0x413828
push 0x49e948
lea ecx, [esp + 0x18]
call fcn.00463393
mov eax, dword [esp + 0x9b0]
test eax, eax
je 0x413887
cmp byte [eax], 0
je 0x413887
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.0044d8ca
add esp, 0x14
lea edx, [esp + 0x118]
lea ecx, [esp + 0x18]
push edx
call fcn.00463140
lea eax, [esp + 0x218]
lea ecx, [esp + 0x18]
push eax
call fcn.00463393
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x18]
call fcn.004633cf
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 8]
add eax, 0xa
push eax
call fcn.0044dbfe
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.00462fb7
lea ecx, [esp + 0x14]
mov dword [esp + 0x9a0], 0xffffffff
call fcn.00462fb7
mov eax, ebx
jmp 0x413904
push 0xa
call fcn.0044dbfe
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