Function at 0x416640
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44d20c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x660
mov eax, dword [0x46420c]
push ebx
push esi
mov esi, dword [ecx + 0x44]
mov dword [esp + 0x660], eax
mov eax, dword [0x46532c]
push edi
mov dword [esp + 0x58], ecx
mov ecx, dword [eax + 0x14]
lea ebx, [esi + 0x18]
push ebx
add ecx, 0x224
push ecx
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x28], esi
call fcn.00408560
push 0x452f4c
push eax
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x680], 0
call fcn.00403e70
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4166da
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov dword [esp + 0x674], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416703
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov edi, dword [esi + 0x80]
cmp edi, dword [esi + 0x84]
mov dword [esp + 0x20], edi
je 0x416e00
jmp 0x416720
mov edi, dword [esp + 0x20]
nop
call fcn.0043f04a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
push 0x44fd64
lea ecx, [esp + 0x1c]
mov dword [esp + 0x678], 1
call fcn.004028f0
push 0x44fd64
lea ecx, [esp + 0x14]
mov byte [esp + 0x678], 2
call fcn.004028f0
mov eax, dword [edi]
push eax
lea ecx, [esp + 0x18]
push 0x44fd08
push ecx
mov byte [esp + 0x680], 3
call fcn.00402810
mov edi, dword [esp + 0x20]
mov eax, dword [edi - 0xc]
add esp, 0xc
test eax, eax
jle 0x4167ac
push 0x7c
push edi
call fcn.0042c1c4
add esp, 8
test eax, eax
je 0x4167ac
sub eax, edi
sar eax, 1
mov esi, eax
cmp esi, 0xffffffff
jne 0x4169a3
mov esi, dword [esp + 0x1c]
mov eax, dword [0x46532c]
mov ecx, dword [eax + 0x14]
lea edx, [esp + 0x14]
push edx
mov edx, dword [ecx + 0x2b4]
add edx, 0x48
push edx
lea eax, [esp + 0x4c]
push eax
call fcn.00408560
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x678], 4
call fcn.00402760
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
mov byte [esp + 0x674], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416805
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esi + 0x58]
test eax, eax
jne 0x4168f2
mov eax, dword [esi + 0x54]
test eax, eax
jne 0x4168f2
mov eax, dword [0x46532c]
mov ecx, dword [eax + 0x14]
push ebx
add ecx, 0x224
push ecx
lea edx, [esp + 0x44]
push edx
call fcn.00408560
push 0x44fef0
push eax
lea eax, [esp + 0x5c]
push eax
mov byte [esp + 0x680], 8
call fcn.00403e70
lea ecx, [esp + 0x14]
push ecx
push eax
lea edx, [esp + 0x3c]
push edx
mov byte [esp + 0x680], 9
call fcn.00408560
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x678], 0xa
call fcn.00402760
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x674], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41689d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
mov byte [esp + 0x674], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4168c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
mov byte [esp + 0x674], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416c19
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x416c19
mov eax, dword [0x46532c]
mov ecx, dword [eax + 0x14]
push ebx
add ecx, 0x228
push ecx
lea edx, [esp + 0x64]
push edx
call fcn.00408560
push 0x44fef0
push eax
lea eax, [esp + 0x34]
push eax
mov byte [esp + 0x680], 5
call fcn.00403e70
lea ecx, [esp + 0x14]
push ecx
push eax
lea edx, [esp + 0x68]
push edx
mov byte [esp + 0x680], 6
call fcn.00408560
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x678], 7
call fcn.00402760
mov eax, dword [esp + 0x60]
add eax, 0xfffffff0
mov byte [esp + 0x674], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416974
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x674], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41699a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x5c]
jmp 0x4168c7
push esi
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x1c]
call fcn.00408500
mov eax, dword [edi - 0xc]
sub eax, esi
dec eax
push eax
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x67c], 0xb
call fcn.00403b10
mov eax, dword [0x46532c]
mov ecx, dword [eax + 0x14]
lea edx, [esp + 0x24]
push edx
mov edx, dword [ecx + 0x2b4]
add edx, 0x48
push edx
lea eax, [esp + 0x54]
push eax
mov byte [esp + 0x680], 0xc
call fcn.00408560
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x678], 0xd
call fcn.00402760
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
mov byte [esp + 0x674], 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416a30
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x58]
test ecx, ecx
jne 0x416afb
mov ecx, dword [eax + 0x54]
test ecx, ecx
jne 0x416afb
mov eax, dword [0x46532c]
mov ecx, dword [eax + 0x14]
push ebx
add ecx, 0x224
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.00408560
push 0x44fef0
push eax
lea eax, [esp + 0x38]
push eax
mov byte [esp + 0x680], 0x11
call fcn.00403e70
lea ecx, [esp + 0x28]
push ecx
push eax
lea edx, [esp + 0x6c]
push edx
mov byte [esp + 0x680], 0x12
call fcn.00408560
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x678], 0x13
call fcn.00402760
mov eax, dword [esp + 0x64]
add eax, 0xfffffff0
mov byte [esp + 0x674], 0x12
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416acc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0x674], 0x11
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416af2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x38]
jmp 0x416ba7
mov eax, dword [0x46532c]
mov ecx, dword [eax + 0x14]
push ebx
add ecx, 0x228
push ecx
lea edx, [esp + 0x58]
push edx
call fcn.00408560
push 0x44fef0
push eax
lea eax, [esp + 0x50]
push eax
mov byte [esp + 0x680], 0xe
call fcn.00403e70
lea ecx, [esp + 0x28]
push ecx
push eax
lea edx, [esp + 0x48]
push edx
mov byte [esp + 0x680], 0xf
call fcn.00408560
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x678], 0x10
call fcn.00402760
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
mov byte [esp + 0x674], 0xf
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416b7d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
mov byte [esp + 0x674], 0xe
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416ba3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
mov byte [esp + 0x674], 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416bc9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x674], 0xb
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416bef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x674], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416c15
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
mov ecx, dword [0x46532c]
mov ecx, dword [ecx + 0x28]
push eax
call fcn.004095b0
mov edx, dword [0x46532c]
mov eax, dword [edx + 0x14]
cmp esi, dword [eax + 0x29c]
jne 0x416d64
mov esi, dword [eax + 0x264]
cmp esi, dword [eax + 0x268]
je 0x416c7a
nop
mov eax, dword [esi]
push edi
push eax
call fcn.0042bea1
add esp, 8
test eax, eax
je 0x416c95
mov eax, dword [0x46532c]
mov eax, dword [eax + 0x14]
mov ecx, dword [eax + 0x268]
add eax, 0x260
add esi, 4
cmp esi, ecx
jne 0x416c50
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, dword [esp + 0x1c]
jmp 0x416d76
xor eax, eax
mov byte [esp + 0x260], 0
mov ecx, 0x7c
lea edi, [esp + 0x261]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [esp + 0x68], 0
xor eax, eax
mov ecx, 0x7c
lea edi, [esp + 0x69]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x18]
push ecx
stosw word es:[edi], ax
lea edx, [esp + 0x45c]
push 0x44fd08
push edx
stosb byte es:[edi], al
call fcn.0042b87a
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
add esp, 0xc
push 0
push 0
push 0x104
lea eax, [esp + 0x26c]
push eax
push 0x104
lea ecx, [esp + 0x46c]
push ecx
push 0
push 1
call esi
mov edx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x45c]
push 0x44fd08
push eax
call fcn.0042b87a
add esp, 0xc
push 0
push 0
push 0x104
lea ecx, [esp + 0x74]
push ecx
push 0x104
lea edx, [esp + 0x46c]
push edx
push 0
push 1
call esi
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x264]
push ecx
mov ecx, dword [esp + 0x60]
call fcn.00414fd0
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
jmp 0x416d76
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x674], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416d9c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x674], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416dc2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [edi - 0x10]
mov dword [esp + 0x674], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416de7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 0x84]
add eax, 4
cmp eax, ecx
mov dword [esp + 0x20], eax
jne 0x41671b
mov ecx, dword [esp + 0x66c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x664]
call fcn.0042b3a1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret