Function at 0x41cf6e
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x4706f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x18], ecx
xor esi, esi
mov dword [esp + 0x30], esi
call fcn.00460104
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebp, [eax + 0x10]
mov dword [esp + 0x14], ebp
mov byte [esp + 0x30], 1
call fcn.00460104
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x38]
mov ecx, dword [eax*4 + 0x495278]
cmp dword [0x4dee70], esi
mov edx, dword [ecx + 0x24]
mov ebx, dword [esp + 0x40]
mov byte [esp + 0x30], 2
mov dword [esp + 0x1c], edx
jle 0x41d0b4
jmp 0x41cfb0
mov eax, dword [esi*4 + 0x4ae128]
mov ecx, dword [esp + 0x1c]
cmp dword [eax + 0x20], ecx
jne 0x41d0a6
mov eax, dword [eax + 0x14]
push 0x473a35
push eax
call fcn.00447da8
mov edx, dword [esi*4 + 0x4ae128]
add esp, 8
test eax, eax
mov eax, dword [edx]
push eax
push ebx
je 0x41d03b
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 0x118]
push edx
lea eax, [esp + 0x20]
push 0x475300
push eax
call fcn.00402a00
mov ebp, dword [esp + 0x28]
add esp, 0x10
lea eax, [ebp - 0x10]
mov dword [esp + 0x28], esp
mov edi, esp
push eax
call fcn.00401fc0
mov ecx, dword [esp + 0x20]
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.0041cbe0
mov ecx, dword [esi*4 + 0x4ae128]
mov eax, dword [ecx + 0x14]
push 0
push ebp
push eax
call dword [sym.imp.kernel32.dll_CopyFileA]
jmp 0x41d0a6
lea ecx, [esp + 0x1c]
push 0x47451c
push ecx
call fcn.00402a00
mov edi, dword [esp + 0x4c]
mov edx, dword [esi*4 + 0x4ae128]
push edi
push 4
add edx, 8
push 1
push edx
call fcn.0044853d
mov eax, dword [esi*4 + 0x4ae128]
push edi
push 4
add eax, 0x10
push 1
push eax
call fcn.0044853d
mov ebp, dword [esp + 0x44]
mov ecx, dword [ebp - 0xc]
push edi
push 4
lea edx, [esp + 0x70]
push 1
push edx
mov dword [esp + 0x78], ecx
call fcn.0044853d
mov eax, dword [esp + 0x78]
add esp, 0x40
push edi
push eax
push 1
push ebp
call fcn.0044853d
add esp, 0x10
mov eax, dword [0x4dee70]
inc esi
cmp esi, eax
jl 0x41cfb0
mov esi, dword [esp + 0x10]
lea eax, [ebx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x41d10e
mov ecx, dword [esi + 0xc]
test ecx, ecx
lea edi, [esi + 0xc]
jl 0x41d100
mov ecx, dword [eax]
cmp ecx, dword [esi]
jne 0x41d100
push eax
call fcn.00401fc0
add esp, 4
mov dword [esp + 0x20], eax
or edx, 0xffffffff
lock xadd dword [edi], edx
dec edx
test edx, edx
jg 0x41d0f3
mov ecx, dword [esi]
mov eax, dword [ecx]
push esi
call dword [eax + 4]
mov ecx, dword [esp + 0x20]
add ecx, 0x10
mov dword [esp + 0x10], ecx
jmp 0x41d10e
mov eax, dword [ebx - 0xc]
push eax
push ebx
lea ecx, [esp + 0x18]
call fcn.00401800
mov eax, dword [0x4ad91c]
xor edi, edi
test eax, eax
mov dword [esp + 0x20], edi
jle 0x41d1ea
mov eax, dword [edi*4 + 0x495278]
mov ecx, dword [esp + 0x1c]
cmp dword [eax + 0x20], ecx
jne 0x41d1d8
cmp dword [eax + 0x24], ecx
je 0x41d1d8
mov edx, dword [eax]
mov eax, dword [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0x48]
push 0x47451c
push ecx
call fcn.00402a00
mov ebx, dword [esp + 0x50]
mov ecx, dword [ebx - 0x10]
mov edx, dword [ecx]
add esp, 0xc
lea esi, [ebx - 0x10]
mov dword [esp + 0x28], esp
mov dword [esp + 0x28], esp
call dword [edx + 0x10]
mov ecx, dword [esi + 0xc]
test ecx, ecx
lea edx, [esi + 0xc]
jl 0x41d18a
cmp eax, dword [esi]
jne 0x41d18a
mov eax, esi
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x41d1c0
mov ecx, dword [esi + 4]
mov edx, dword [eax]
push 1
push ecx
mov ecx, eax
call dword [edx]
test eax, eax
je 0x41d264
mov edx, dword [esi + 4]
mov dword [eax + 4], edx
mov ecx, dword [esi + 4]
inc ecx
mov edx, ecx
shr ecx, 2
add esi, 0x10
lea edi, [eax + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add eax, 0x10
push edx
mov dword [ecx], eax
mov ecx, dword [esp + 0x20]
push edi
call fcn.0041cf30
mov eax, dword [0x4ad91c]
inc edi
cmp edi, eax
mov dword [esp + 0x20], edi
jl 0x41d121
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x30], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d20d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
add ebp, 0xfffffff0
mov byte [esp + 0x30], 0
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41d22d
mov ecx, dword [ebp]
mov edx, dword [ecx]
push ebp
call dword [edx + 4]
add ebx, 0xfffffff0
mov dword [esp + 0x30], 0xffffffff
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41d24f
mov ecx, dword [ebx]
mov edx, dword [ecx]
push ebx
call dword [edx + 4]
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x24
ret 0xc
call fcn.004014e0
int3