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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5337e8
mov eax, dword fs:[0]
push eax
mov eax, 0x119c
call fcn.005101d0
mov eax, dword [0x56adc0]
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
xor eax, eax
push 0xffe
mov edi, ecx
push eax
lea ecx, [ebp - 0x100e]
mov ebx, edx
push ecx
mov dword [ebp - 0x1038], ebx
mov word [ebp - 0x1010], ax
call fcn.004fbb00
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x1010]
mov ecx, eax
add esp, 0xc
mov esi, 0x800
sub edx, ecx
lea esp, [esp]
lea ecx, [esi + 0x7ffff7fe]
test ecx, ecx
je 0x42b8ae
movzx ecx, word [edx + eax]
test cx, cx
je 0x42b8ae
mov word [eax], cx
add eax, 2
dec esi
jne 0x42b890
jmp 0x42b8b2
test esi, esi
jne 0x42b8b5
sub eax, 2
xor edx, edx
mov word [eax], dx
test edi, edi
je 0x42b8d2
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42b8d2
test al, 0x10
je 0x42b959
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x144
lea eax, [ebp - 0x10f0]
push eax
mov ebx, str.netboxprocess.cpp
call fcn.0041a6b0
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
cmp ebx, eax
je 0x42b940
lea esi, [ebx + 0x10]
cmp esi, eax
je 0x42b904
lea eax, [ebx + 0x20]
push str.ERROR:
push eax
call fcn.00407c44
add esp, 8
test esi, esi
je 0x42b91b
lea eax, [ebx + 0x20]
jmp 0x42b91d
xor eax, eax
push str.failed_to_find
push eax
call fcn.00407c44
add esp, 8
test esi, esi
je 0x42b934
lea eax, [ebx + 0x20]
jmp 0x42b936
xor eax, eax
push edi
push eax
call fcn.00407c44
add esp, 8
lea ecx, [ebp - 0x10f0]
mov dword [ebp - 4], 0xffffffff
call fcn.0041a760
xor al, al
jmp 0x42bca5
lea esi, [ebp - 0x102c]
call fcn.00425e60
mov dword [ebp - 4], 1
cmp dword [ebp - 0x101c], 0
jne 0x42ba17
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x14c
lea ecx, [ebp - 0x10f0]
push ecx
mov ebx, str.netboxprocess.cpp
call fcn.0041a6b0
mov esi, eax
mov byte [ebp - 4], 2
test esi, esi
je 0x42b9e9
lea ebx, [esi + 0x10]
test ebx, ebx
je 0x42b9ab
lea eax, [esi + 0x20]
jmp 0x42b9ad
xor eax, eax
push str.ERROR:
push eax
call fcn.00407c44
add esp, 8
test ebx, ebx
je 0x42b9c4
lea eax, [esi + 0x20]
jmp 0x42b9c6
xor eax, eax
push str.failed_to_get_shortname_for
push eax
call fcn.00407c44
add esp, 8
test ebx, ebx
je 0x42b9dd
lea eax, [esi + 0x20]
jmp 0x42b9df
xor eax, eax
push edi
push eax
call fcn.00407c44
add esp, 8
lea ecx, [ebp - 0x10f0]
mov byte [ebp - 4], 1
call fcn.0041a760
cmp dword [ebp - 0x1018], 8
jb 0x42ba10
mov edx, dword [ebp - 0x102c]
push edx
call fcn.004f77ab
add esp, 4
xor al, al
jmp 0x42bca5
cmp dword [ebp - 0x1018], 8
mov eax, dword [ebp - 0x102c]
mov dword [ebp - 0x1034], 0
jae 0x42ba36
lea eax, [ebp - 0x102c]
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x1034]
push edx
lea ecx, [ebp - 0x1010]
push ecx
push eax
call fcn.0042b230
mov edi, eax
add esp, 0x10
test edi, edi
je 0x42bb02
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x155
lea edx, [ebp - 0x10f0]
push edx
mov ebx, str.netboxprocess.cpp
call fcn.0041a6b0
mov esi, eax
mov byte [ebp - 4], 3
test esi, esi
je 0x42bac1
lea ebx, [esi + 0x10]
test ebx, ebx
je 0x42ba8e
lea eax, [esi + 0x20]
jmp 0x42ba90
xor eax, eax
push str.ERROR:
push eax
call fcn.00407c44
add esp, 8
test ebx, ebx
je 0x42baa7
lea eax, [esi + 0x20]
jmp 0x42baa9
xor eax, eax
push str.failed_to_deelevate_and_wait_error:
push eax
call fcn.00407c44
add esp, 8
push edi
lea eax, [esi + 0x20]
push eax
call fcn.00422730
call fcn.0042bdd0
test eax, eax
je 0x42b9e9
lea ecx, [eax + 0x10]
test ecx, ecx
je 0x42baec
add eax, 0x20
push eax
lea ecx, [ebp - 0x102c]
call fcn.00407e0a
add esp, 4
jmp 0x42b9e9
xor eax, eax
push eax
lea ecx, [ebp - 0x102c]
call fcn.00407e0a
add esp, 4
jmp 0x42b9e9
mov edi, dword [ebp - 0x1034]
push 0x927c0
push edi
mov byte [ebp - 0x102d], 0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x42bb79
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x160
lea eax, [ebp - 0x10f0]
push eax
mov ebx, str.netboxprocess.cpp
call fcn.0041a6b0
push str.Failed_to_wait_process:
push ecx
mov esi, eax
mov byte [ebp - 4], 4
call fcn.00405fba
add esp, 4
mov esi, eax
call fcn.00406075
test eax, eax
je 0x42bb65
push edi
add eax, 0x20
push eax
call fcn.00428d50
lea ecx, [ebp - 0x10f0]
mov byte [ebp - 4], 1
call fcn.0041a760
jmp 0x42bc7c
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x42bbb6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x166
lea ecx, [ebp - 0x10f0]
push ecx
mov ebx, str.netboxprocess.cpp
call fcn.0041a6b0
mov esi, eax
mov byte [ebp - 4], 5
call fcn.00405fba
mov esi, eax
call fcn.004289a0
jmp 0x42bb57
mov eax, dword [ebx]
cmp eax, 0x103
jne 0x42bbfc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x16c
lea edx, [ebp - 0x10f0]
push edx
mov ebx, str.netboxprocess.cpp
call fcn.0041a6b0
push str.Failed_to_waiting_end_of_process:
push ecx
mov esi, eax
mov byte [ebp - 4], 6
call fcn.00405fba
add esp, 4
mov esi, eax
call fcn.00406075
jmp 0x42bb57
test eax, eax
je 0x42bc75
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x172
lea eax, [ebp - 0x11a8]
push eax
mov ebx, str.netboxprocess.cpp
call fcn.0041a6b0
mov esi, eax
mov byte [ebp - 4], 7
call fcn.00405fba
mov ecx, str.Failed_in_process:
mov esi, eax
call fcn.004289e0
mov esi, eax
test esi, esi
je 0x42bc44
push edi
lea ecx, [esi + 0x20]
push ecx
call fcn.00428d50
push str._exitcode:
call fcn.00406075
test eax, eax
je 0x42bc64
mov edx, dword [ebp - 0x1038]
mov ecx, dword [edx]
push ecx
add eax, 0x20
push eax
call fcn.00422730
lea ecx, [ebp - 0x11a8]
mov byte [ebp - 4], 1
call fcn.0041a760
jmp 0x42bc7c
mov byte [ebp - 0x102d], 1
test edi, edi
je 0x42bc87
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1018], 8
jb 0x42bc9f
mov edx, dword [ebp - 0x102c]
push edx
call fcn.004f77ab
add esp, 4
mov al, byte [ebp - 0x102d]
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.004f6bad
mov esp, ebp
pop ebp
ret