Function at 0x433130
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x4d044c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x34], eax
mov esi, ecx
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x38], eax
xor edi, edi
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x28], eax
test esi, esi
je 0x433414
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x433167
sub ecx, edx
lea eax, [ecx + 1]
push eax
call fcn.0048b928
mov ebx, eax
add esp, 4
mov dword [ebp - 0x24], ebx
test ebx, ebx
je 0x433414
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x433190
sub ecx, edx
lea eax, [ecx + 1]
push eax
push esi
push ebx
call fcn.0046c5d0
push 0x3d
push ebx
call fcn.00463740
mov ebx, eax
add esp, 0x14
mov esi, ebx
mov dword [ebp - 0x18], esi
test ebx, ebx
je 0x4333f5
push 0xb
mov byte [ebx], 0
inc ebx
push str.SystemRoot
push ebx
mov dword [ebp - 0x2c], ebx
call fcn.0048e4b1
add esp, 0xc
test eax, eax
jne 0x4332c0
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4331e2
sub ecx, edx
lea edi, [ecx + 0x14]
push edi
call fcn.0048b928
mov ebx, eax
add esp, 4
mov dword [ebp - 0x20], ebx
test ebx, ebx
je 0x4332c3
push edi
push 0
push ebx
call fcn.004644e0
add esp, 0xc
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x433234
lea eax, [esi + 0xd]
push eax
push str.C:Windows_s
push edi
push ebx
call fcn.00431b30
add esp, 0x10
jmp 0x4332c3
xor ecx, ecx
test edi, edi
je 0x433242
cmp edi, 0x7fffffff
jbe 0x433247
mov ecx, 0x80070057
test ecx, ecx
js 0x433276
mov esi, edi
mov eax, ebx
test edi, edi
je 0x43325e
cmp byte [eax], 0
je 0x43325e
inc eax
sub esi, 1
jne 0x433253
xor eax, eax
mov ecx, 0x80070057
test esi, esi
cmovne ecx, eax
mov eax, edi
sub eax, esi
neg esi
sbb esi, esi
and esi, eax
jmp 0x433278
xor esi, esi
test ecx, ecx
js 0x4332c3
mov edx, edi
lea ecx, [esi + ebx]
sub edx, esi
je 0x4332b3
mov ebx, dword [ebp - 0x18]
mov eax, edx
sub eax, edi
add eax, 0x7ffffffe
add eax, esi
sub ebx, ecx
mov dword [ebp - 0x18], ebx
test eax, eax
je 0x4332b0
mov bl, byte [ebx + ecx + 0xc]
test bl, bl
je 0x4332b0
mov byte [ecx], bl
dec eax
mov ebx, dword [ebp - 0x18]
inc ecx
sub edx, 1
jne 0x433298
mov ebx, dword [ebp - 0x20]
test edx, edx
lea eax, [ecx - 1]
cmovne eax, ecx
mov byte [eax], 0
jmp 0x4332c3
mov dword [ebp - 0x20], ebx
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
xor esi, esi
cmp byte [ebx], 0
movups xmmword [ebp - 0x14], xmm0
je 0x4333ac
push str.IsWow64Process
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
mov dword [ebp - 0x1c], esi
test edi, edi
je 0x43334b
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
cmp dword [ebp - 0x1c], esi
je 0x43334b
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x43334b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Wow64DisableWow64FsRedirection
push edi
call esi
push str.Wow64RevertWow64FsRedirection
push edi
mov dword [ebp - 0x1c], eax
call esi
mov esi, eax
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x43334b
lea ecx, [ebp - 0x18]
push ecx
call eax
mov edi, eax
jmp 0x43334d
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4333ac
lea eax, [ebp - 0x14]
push eax
push ebx
call fcn.0045d520
cmp eax, 1
jne 0x4333ac
test edi, edi
je 0x43337c
test esi, esi
je 0x43337c
push dword [ebp - 0x18]
call esi
mov dword [ebp - 0x18], 0
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
xor esi, esi
mov ebx, dword [ebp - 0x28]
nop word [eax + eax]
movzx eax, byte [ebp + esi - 0x14]
push eax
push str._02X
push ebx
call edi
inc esi
add esp, 0xc
add ebx, eax
cmp esi, 0x10
jl 0x433390
mov ebx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x24]
push 0x7c
push esi
call fcn.00463740
add esp, 8
test eax, eax
je 0x4333c2
mov byte [eax], 0
inc eax
mov edx, dword [ebp - 0x30]
mov edi, 1
mov ecx, dword [ebp - 0x2c]
push ebx
mov dword [edx], ecx
mov ecx, dword [ebp - 0x34]
mov dword [ecx], esi
mov ecx, dword [ebp - 0x38]
mov dword [ecx], eax
call fcn.0048b923
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004606ac
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x24]
push ebx
call fcn.0048b923
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004606ac
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004606ac
mov esp, ebp
pop ebp
ret