Function at 0x42e490
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b13e1
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x4e506c]
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
push 0x200
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.004864f0
xor eax, eax
mov dword [ebp - 0x228], 0
add esp, 0xc
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x210]
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x42e5e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x250]
mov esi, eax
call fcn.0045e700
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x42e548
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4e94e0
call fcn.004104f0
add esp, 4
mov edx, str.c:jenkinsworkspacembam_windows_a_mb4_mbsetup_srcmbsetupmbsetup.cpp
mov ecx, eax
call fcn.0040f6d0
mov edx, 0x4c8124
mov ecx, eax
call fcn.0040f6d0
push 0xa52
mov ecx, eax
call fcn.0040dcd0
mov edx, str.:_Error_calling_GetSystemDirectory:
mov ecx, eax
call fcn.0040f6d0
push esi
mov ecx, eax
call fcn.004194b0
push eax
call fcn.0040fa40
mov edx, dword [ebp - 0x23c]
add esp, 4
cmp edx, 8
jb 0x42e5d9
mov ecx, dword [ebp - 0x250]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42e5cf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42e7ec
push edx
push ecx
call fcn.0046e3a3
add esp, 8
mov bl, 1
jmp 0x42e6fa
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42e5f0
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x238]
call fcn.004078c0
push 0xd
push str.wintrust.dll
lea ecx, [ebp - 0x238]
call fcn.0040c200
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
lea edx, [ebp - 0x214]
lea ecx, [ebp - 0x238]
call fcn.0044e1a0
add esp, 0xc
test al, al
jne 0x42e73d
lea ecx, [ebp - 0x250]
call fcn.0045e700
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x42e66f
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4e94e0
call fcn.004104f0
add esp, 4
mov edx, str.c:jenkinsworkspacembam_windows_a_mb4_mbsetup_srcmbsetupmbsetup.cpp
mov ecx, eax
call fcn.0040f6d0
mov edx, 0x4c8124
mov ecx, eax
call fcn.0040f6d0
push 0xa5e
mov ecx, eax
call fcn.0040dcd0
mov edx, str.:_Error_getting_WinTrust_version
mov ecx, eax
call fcn.0040f6d0
push eax
call fcn.0040fa40
mov edx, dword [ebp - 0x23c]
add esp, 4
cmp edx, 8
jb 0x42e6f8
mov ecx, dword [ebp - 0x250]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42e6ee
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42e7f1
push edx
push ecx
call fcn.0046e3a3
add esp, 8
xor bl, bl
mov edx, dword [ebp - 0x224]
cmp edx, 8
jb 0x42e7ce
mov ecx, dword [ebp - 0x238]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42e7c4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42e7f6
jmp 0x42e7c4
push ecx
mov edx, 1
call fcn.0040bf70
add esp, 4
test al, al
je 0x42e760
mov ecx, 1
mov eax, 0x1db1
mov edx, 0x5f3e
jmp 0x42e76c
xor ecx, ecx
mov eax, 0x1773
mov edx, 0x504b
mov esi, dword [ebp - 0x214]
cmp si, 6
jb 0x42e6f8
mov edi, 6
cmp di, si
jb 0x42e5d9
mov esi, dword [ebp - 0x218]
cmp si, cx
jb 0x42e6f8
ja 0x42e5d9
mov ecx, dword [ebp - 0x21c]
cmp cx, ax
jb 0x42e6f8
ja 0x42e5d9
cmp word [ebp - 0x220], dx
jb 0x42e6f8
mov bl, 1
jmp 0x42e6fa
push edx
push ecx
call fcn.0046e3a3
add esp, 8
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.0046de82
mov esp, ebp
pop ebp
ret
call fcn.004892fc
call fcn.004892fc
call fcn.004892fc
int3