Function at 0x41de40
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44c7c5
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x463188]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [edi + 0x30], 0
je 0x41deae
push 0x27
lea esi, [edi + 0x18]
push 0x45c8b8
mov ecx, esi
call fcn.00402d80
mov ecx, esi
call fcn.00427500
test al, al
je 0x41dea7
cmp dword [esi + 0x14], 8
jb 0x41de97
mov esi, dword [esi]
mov ecx, esi
call fcn.0040a960
test eax, eax
setne al
test al, al
jne 0x41deae
xor al, al
jmp 0x41e102
mov ecx, dword [edi + 0x28]
lea ebx, [edi + 0x18]
mov eax, 0x7ffffffe
mov dword [ebp - 0x48], ecx
sub eax, ecx
cmp eax, 1
jb 0x41e11e
cmp dword [ebx + 0x14], 8
jb 0x41decf
mov ebx, dword [ebx]
inc ecx
mov dword [ebp - 0x40], 0
mov esi, 7
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x40]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x44], eax
cmp ecx, esi
jbe 0x41df2a
mov esi, ecx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x41df0b
mov esi, 0x7ffffffe
jmp 0x41df15
cmp esi, 0xa
jae 0x41df15
mov esi, 0xa
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x40]
call fcn.00402d20
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x2c], esi
mov esi, dword [ebp - 0x48]
add esi, esi
mov dword [ebp - 0x30], ecx
push esi
push ebx
push eax
call fcn.0042bb60
mov eax, dword [ebp - 0x44]
mov ecx, 0x5c
xor edx, edx
add esp, 0xc
mov word [esi + eax], cx
mov ecx, dword [ebp - 0x48]
mov word [eax + ecx*2 + 2], dx
lea ebx, [edi + 0x4c]
mov dword [ebp - 4], edx
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x41df66
mov eax, dword [ebx]
push dword [ebx + 0x10]
lea ecx, [ebp - 0x40]
push eax
call fcn.00402600
mov edx, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov ecx, dword [edx]
mov dword [ebp - 0x28], ecx
mov ecx, dword [edx + 4]
mov dword [ebp - 0x24], ecx
mov ecx, dword [edx + 8]
mov dword [ebp - 0x20], ecx
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov word [edx], ax
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x41dffd
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41dff3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41e123
push edx
push ecx
call fcn.00429a23
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
cmp dword [ebp - 0x14], 8
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], 7
jb 0x41e01d
mov eax, dword [ebp - 0x28]
cmp dword [edi + 0x48], 8
lea esi, [edi + 0x34]
mov ecx, esi
jb 0x41e02a
mov ecx, dword [esi]
push 1
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x41e07a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x13a
ja 0x41e051
je 0x41e069
cmp eax, 0x27
je 0x41e069
cmp eax, 0x70
jmp 0x41e056
cmp eax, 0x50f
je 0x41e069
cmp dword [edi + 0x10], 8
ja 0x41e076
mov dword [edi + 0x10], 0x3f4
xor bl, bl
jmp 0x41e0ca
cmp dword [edi + 0x10], 8
ja 0x41e076
mov dword [edi + 0x10], 0x3f8
xor bl, bl
jmp 0x41e0ca
lea eax, [ebp - 0x28]
cmp esi, eax
je 0x41e095
cmp dword [ebp - 0x14], 8
jb 0x41e08a
mov eax, dword [ebp - 0x28]
push dword [ebp - 0x18]
mov ecx, esi
push eax
call fcn.00402d80
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x41e0a1
mov eax, dword [ebp - 0x28]
push eax
call dword [0x463090]
mov edx, eax
lea esi, [edx + 2]
lea ecx, [ecx]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x41e0b0
sub edx, esi
mov ecx, ebx
sar edx, 1
push edx
push eax
call fcn.00402d80
mov bl, 1
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x41e100
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41e0f6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41e128
push edx
push ecx
call fcn.00429a23
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004299ea
mov esp, ebp
pop ebp
ret
call fcn.00402bc0
call fcn.0042e9c4
call fcn.0042e9c4
int3