Function at 0x42e340
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5d9aa0
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push ebp
mov ebp, dword [esp + 0x80]
xor ebx, ebx
push esi
cmp ebp, ebx
push edi
je 0x42e397
mov esi, dword [esp + 0x8c]
cmp esi, ebx
je 0x42e397
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push ebp
call edi
cmp eax, 0xffffffff
je 0x42e397
push esi
call edi
cmp eax, 0xffffffff
jne 0x42e3ac
mov eax, dword [esp + 0x90]
mov dword [eax], 1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
add esp, 0x74
ret
mov eax, dword [0x5f1c04]
mov edi, 1
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov word [esp + 0x44], bx
mov word [esp + 0x46], bx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov word [esp + 0x10], bx
mov word [esp + 0x12], bx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
lea ecx, [esp + 0x44]
push ebx
push ecx
push ebp
mov byte [esp + 0x8c], 1
call fcn.0055b480
lea edx, [esp + 0x1c]
push ebx
push edx
push esi
call fcn.0055b480
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x2c]
add esp, 0x18
cmp eax, ecx
jne 0x42e46a
mov edx, dword [esp + 0x4c]
cmp edx, dword [esp + 0x18]
je 0x42e46c
xor edi, edi
mov edx, dword [esp + 0x90]
cmp ecx, eax
mov dword [edx], ebx
ja 0x42e487
jne 0x42e48d
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x4c]
cmp eax, ecx
jbe 0x42e48d
mov dword [edx], 1
mov eax, dword [0x6646f8]
cmp eax, ebx
je 0x42e4b1
push esi
push ebp
push str.CUpAgentFileMgr::CheckFilesVer___s___s_
push str.Update
push 0xf
push 0x66468c
call fcn.00427530
add esp, 0x18
lea ecx, [esp + 0x40]
mov byte [esp + 0x80], 8
call fcn.0045b0a0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x80], 7
call fcn.0045b0a0
lea ecx, [esp + 0x38]
mov byte [esp + 0x80], 6
call fcn.0045b0a0
lea ecx, [esp + 0x34]
mov byte [esp + 0x80], 5
call fcn.0045b0a0
lea ecx, [esp + 0x30]
mov byte [esp + 0x80], 4
call fcn.0045b0a0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x80], 3
call fcn.0045b0a0
lea ecx, [esp + 0x28]
mov byte [esp + 0x80], 2
call fcn.0045b0a0
lea ecx, [esp + 0x24]
mov byte [esp + 0x80], bl
call fcn.0045b0a0
lea ecx, [esp + 0x74]
mov dword [esp + 0x80], 0xf
call fcn.0045b0a0
lea ecx, [esp + 0x70]
mov byte [esp + 0x80], 0xe
call fcn.0045b0a0
lea ecx, [esp + 0x6c]
mov byte [esp + 0x80], 0xd
call fcn.0045b0a0
lea ecx, [esp + 0x68]
mov byte [esp + 0x80], 0xc
call fcn.0045b0a0
lea ecx, [esp + 0x64]
mov byte [esp + 0x80], 0xb
call fcn.0045b0a0
lea ecx, [esp + 0x60]
mov byte [esp + 0x80], 0xa
call fcn.0045b0a0
lea ecx, [esp + 0x5c]
mov byte [esp + 0x80], 9
call fcn.0045b0a0
lea ecx, [esp + 0x58]
mov dword [esp + 0x80], 0xffffffff
call fcn.0045b0a0
mov ecx, dword [esp + 0x78]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x74
ret