Function at 0x404410
Capabilities:
Copy file
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x42b410
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x437ae4]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x44]
push 0
push 0x42fd24
mov ecx, ebp
call fcn.00401470
push 0x42fd24
lea ecx, [esp + 0x28]
call fcn.00401590
push 0x42fd24
lea ecx, [esp + 0x24]
mov dword [esp + 0x40], 0
call fcn.00401590
push 0x42fd24
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], 1
call fcn.00401590
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x44], 2
call fcn.004049d0
add esp, 8
test eax, eax
je 0x4044b4
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [esp + 0x3c], 1
jmp 0x40493e
cmp byte [0x43bb8e], 0
jne 0x4046aa
call fcn.00407d39
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4044db
push 0x80004005
call fcn.00401230
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x2c], edi
mov bl, 3
mov byte [esp + 0x3c], bl
call fcn.00407d39
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40450b
push 0x80004005
call fcn.00401230
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x30], esi
push 0x84
mov byte [esp + 0x40], 4
call fcn.00407ce8
test eax, eax
je 0x404541
push 0x84
push eax
lea ecx, [esp + 0x34]
call fcn.004016f0
mov edi, dword [esp + 0x2c]
push 0x86
call fcn.00407ce8
test eax, eax
je 0x404562
push 0x86
push eax
lea ecx, [esp + 0x38]
call fcn.004016f0
mov esi, dword [esp + 0x30]
mov ecx, dword [0x43bae0]
mov edx, dword [ecx + 0x20]
push 0x44
push edi
push esi
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
je 0x404669
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [0x43bb9c], 0
jne 0x40459d
mov dword [0x43bb9c], 0xffff8ad0
lea eax, [esi - 0x10]
mov byte [esp + 0x3c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4045bd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x3c], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4045de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x3c], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404603
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x3c], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404628
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x3c], 0xffffffff
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 0x404650
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0xffff8ad0
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
lea eax, [esi - 0x10]
mov byte [esp + 0x3c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404689
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x3c], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4046aa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x43bb98]
test ecx, ecx
je 0x4046c0
mov edx, dword [ecx]
mov eax, dword [edx + 0x164]
push 2
call eax
push 0x42fd24
lea ecx, [esp + 0x20]
call fcn.00401590
lea ecx, [esp + 0x1c]
push ecx
mov edi, 0x4302d0
mov ecx, str.SOFTWAREFuji_XeroxNetwork_Scan30
mov byte [esp + 0x40], 5
call fcn.004019a0
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 4
test eax, eax
je 0x404706
push eax
push str.getLCIIniFileName_:__ld__getRegistryStringValue___
push 2
call fcn.00401920
add esp, 0xc
jmp 0x404728
push 0xc
push str.FxsLci30.ini
lea ecx, [esp + 0x24]
call fcn.00405cb0
mov edx, ebp
lea ecx, [esp + 0x1c]
call fcn.00404de0
mov edx, dword [esp + 0x1c]
push edx
call esi
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
lea ebx, [esp + 0x28]
mov dword [esp + 0x28], 0
call fcn.00401ca0
mov edi, eax
mov eax, dword [esp + 0x18]
push eax
call esi
mov ecx, dword [0x43bb98]
test ecx, ecx
mov ebx, 1
je 0x404764
mov edx, dword [ecx]
mov eax, dword [edx + 0x164]
push ebx
call eax
test edi, edi
je 0x404841
cmp dword [0x43bb9c], 0
jne 0x40477f
mov dword [0x43bb9c], 0xffff8acf
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebp]
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, dword [ebp]
push eax
call esi
mov byte [esp + 0x3c], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4047ba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x3c], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4047de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x3c], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404803
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x3c], 0xffffffff
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 0x40482b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
cmp dword [esp + 0x28], 0
je 0x404915
cmp dword [0x43bb9c], 0
jne 0x40485f
mov dword [0x43bb9c], 0xffff8ace
mov eax, dword [ebp]
push eax
call esi
mov esi, dword [esp + 0x28]
mov byte [esp + 0x3c], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40488e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x3c], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4048b2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x3c], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4048d7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x3c], 0xffffffff
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 0x4048ff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov byte [esp + 0x3c], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40493a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x3c], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40495e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x3c], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404983
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x3c], 0xffffffff
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4049ab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret