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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5260ae
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x57e9a8]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x13c], ecx
lea ecx, [ebp - 0x14]
call fcn.0041c850
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
je 0x4bb207
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x14]
call fcn.0041c950
jmp 0x4bb318
lea ecx, [ebp - 0x124]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x4bb231
lea edx, [ebp - 0x124]
push edx
lea ecx, [ebp - 0x14]
call fcn.0041c950
jmp 0x4bb318
push 0x104
lea eax, [ebp - 0x124]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bb25d
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0041c910
jmp 0x4bb461
lea ecx, [ebp - 0x124]
push ecx
lea ecx, [ebp - 0x12c]
call fcn.0041c890
mov byte [ebp - 4], 1
push 0x5c
lea ecx, [ebp - 0x12c]
call fcn.0041cab0
mov dword [ebp - 0x128], eax
lea ecx, [ebp - 0x12c]
call fcn.0041cef0
cmp dword [ebp - 0x128], eax
jl 0x4bb2bc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x12c]
call fcn.0041c910
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0041c910
jmp 0x4bb461
mov edx, dword [ebp - 0x128]
push edx
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x12c]
call fcn.0041cc20
mov dword [ebp - 0x140], eax
mov ecx, dword [ebp - 0x140]
mov dword [ebp - 0x144], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x144]
push edx
lea ecx, [ebp - 0x14]
call fcn.0041c930
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x134]
call fcn.0041c910
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x12c]
call fcn.0041c910
lea ecx, [ebp - 0x14]
call fcn.0041cef0
sub eax, 1
push eax
lea ecx, [ebp - 0x14]
call fcn.0041cd90
movsx eax, al
cmp eax, 0x5c
je 0x4bb33e
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.00438450
lea ecx, [ebp - 0x14]
call fcn.0042e470
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4bb379
lea ecx, [ebp - 0x14]
call fcn.0042e470
push eax
call dword [sym.imp.imagehlp.dll_MakeSureDirectoryPathExists]
test eax, eax
jne 0x4bb379
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0041c910
jmp 0x4bb461
mov ecx, dword [ebp - 0x13c]
call fcn.004bb160
push 0x105
mov ecx, dword [ebp - 0x13c]
add ecx, 4
call fcn.0041cea0
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x14]
call fcn.0042e470
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x15], al
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x13c]
add ecx, 4
call fcn.0041cf30
mov ecx, dword [ebp - 0x13c]
add ecx, 4
call fcn.0041cf10
movzx eax, al
test eax, eax
jne 0x4bb434
push 0x5c
mov ecx, dword [ebp - 0x13c]
add ecx, 4
call fcn.0041cab0
add eax, 1
mov dword [ebp - 0x130], eax
mov ecx, dword [ebp - 0x13c]
add ecx, 4
call fcn.0041cef0
cmp dword [ebp - 0x130], eax
jge 0x4bb434
mov ecx, dword [ebp - 0x13c]
add ecx, 4
call fcn.0042e470
add eax, dword [ebp - 0x130]
push eax
mov ecx, dword [ebp - 0x13c]
add ecx, 8
call fcn.0041c950
mov ecx, dword [ebp - 0x13c]
call fcn.004bb020
mov dword [ebp - 0x138], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0041c910
mov eax, dword [ebp - 0x138]
jmp 0x4bb463
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00509f49
mov esp, ebp
pop ebp
ret 8