Function at 0x41e500
Capabilities:
Check if file exists
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ace86
mov eax, dword fs:[0]
push eax
sub esp, 0x19c
mov eax, dword [0x4e23d4]
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 ebx, dword [ebp + 8]
push ebx
mov dword [ebp - 0x74], ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41e604
call fcn.0043bfd0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x41e5fd
push 0x66
push str.d:jenkins.jenkinsworkspacelib_commonwin11_update_assistantwin11_update_assistant_srcmain_wnd.cc
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], al
call fcn.0040daa0
push 3
push 0x4b5b84
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.0040daa0
mov byte [ebp - 4], 1
call fcn.0043bfd0
mov edi, eax
lea ecx, [ebp - 0x110]
push 0x3f6
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00405060
mov esi, eax
push str.file_not_exists
push esi
mov byte [ebp - 4], 2
call fcn.00402ea0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x110]
call fcn.00406570
lea ecx, [ebp - 0x28]
call fcn.00405b30
lea ecx, [ebp - 0x40]
call fcn.00405b30
xor al, al
jmp 0x41e7db
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41e719
call fcn.0043bfd0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x41e5fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x66
push str.d:jenkins.jenkinsworkspacelib_commonwin11_update_assistantwin11_update_assistant_srcmain_wnd.cc
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x60], 0
mov ebx, eax
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
call fcn.0040daa0
push 3
push 0x4b5b84
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 3
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
call fcn.0040daa0
mov byte [ebp - 4], 4
call fcn.0043bfd0
mov edi, eax
lea ecx, [ebp - 0x1a8]
push 0x3fe
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00405060
mov esi, eax
push str.Open
push esi
mov byte [ebp - 4], 5
call fcn.00402ea0
mov eax, dword [ebp - 0x74]
mov ecx, 0x4b59e4
test eax, eax
cmovne ecx, eax
push ecx
push esi
call fcn.00402ea0
push str._failed___error_code:
push esi
call fcn.00402ea0
add esp, 0x18
mov ecx, esi
push ebx
call fcn.00411e30
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x1a8]
call fcn.00406570
lea ecx, [ebp - 0x58]
call fcn.00405b30
lea ecx, [ebp - 0x70]
call fcn.00405b30
xor al, al
jmp 0x41e7db
push 0x41
call fcn.0045c78d
mov esi, eax
add esp, 4
test esi, esi
je 0x41e79e
mov dword [esi + 1], 0
mov dword [esi + 5], 0
mov dword [esi + 9], 0
mov dword [esi + 0xd], 0
mov dword [esi + 0x11], 0
mov dword [esi + 0x15], 0
mov dword [esi + 0x19], 0
mov dword [esi + 0x1d], 0
mov dword [esi + 0x21], 0
mov dword [esi + 0x25], 0
mov dword [esi + 0x29], 0
mov dword [esi + 0x2d], 0
mov dword [esi + 0x31], 0
mov dword [esi + 0x35], 0
mov dword [esi + 0x39], 0
mov dword [esi + 0x3d], 0
mov byte [esi], 0
jmp 0x41e7a0
xor esi, esi
push 0
lea eax, [ebp - 0x78]
mov dword [ebp - 0x78], 0
push eax
push 0x41
push esi
push edi
xor bl, bl
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41e7c9
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x41e7c9
mov bl, 1
push esi
call fcn.0045bfc4
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
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.0045c263
mov esp, ebp
pop ebp
ret 4