Function at 0x40937e
Capabilities:
Check if file exists
Create directory
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48a45c
mov eax, dword fs:[0]
push eax
mov eax, 0x12d0
call fcn.0044ca80
mov eax, dword [0x4be3b8]
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]
lea ecx, [ebp - 0x1260]
xor eax, eax
mov dword [ebp - 0x12d0], ebx
xor edi, edi
mov dword [ebp - 0x124c], 7
push str.instGPC_Initialize
mov dword [ebp - 0x1250], edi
mov word [ebp - 0x1260], ax
call fcn.0040f8cf
push 7
pop esi
xor eax, eax
mov dword [ebp - 4], edi
push 0x4948f0
lea ecx, [ebp - 0x1248]
mov dword [ebp - 0x1238], edi
mov dword [ebp - 0x1234], esi
mov word [ebp - 0x1248], ax
call fcn.0040f8cf
lea eax, [ebp - 0x1260]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x1248]
push eax
lea ecx, [ebp - 0x12c0]
call fcn.0041a4f9
mov eax, dword [ebp - 0x1234]
cmp eax, 8
jb 0x409481
mov ecx, dword [ebp - 0x1248]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x12c8], eax
mov dword [ebp - 0x12c4], ecx
cmp eax, 0x1000
jb 0x409478
lea eax, [ebp - 0x12c8]
push eax
lea eax, [ebp - 0x12c4]
push eax
call fcn.004017b0
mov eax, dword [ebp - 0x12c8]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x12c4]
push eax
push ecx
call fcn.0044c6c2
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x1238], edi
mov dword [ebp - 0x1234], esi
mov word [ebp - 0x1248], ax
mov eax, dword [ebp - 0x124c]
mov byte [ebp - 4], 4
cmp eax, 8
jb 0x4094ef
mov ecx, dword [ebp - 0x1260]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x12c4], eax
mov dword [ebp - 0x12c8], ecx
cmp eax, 0x1000
jb 0x4094e6
lea eax, [ebp - 0x12c4]
push eax
lea eax, [ebp - 0x12c8]
push eax
call fcn.004017b0
mov eax, dword [ebp - 0x12c4]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x12c8]
push eax
push ecx
call fcn.0044c6c2
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x1250], edi
mov word [ebp - 0x1260], ax
test ebx, ebx
mov eax, 0x494e9c
mov dword [ebp - 0x124c], esi
cmovne eax, ebx
push eax
push str.GPC_Initialize_enter__Command_Line___s
call fcn.0040ea07
mov esi, dword [0x4c1214]
pop ecx
pop ecx
test esi, esi
je 0x409acd
push 0x208
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.00465e50
add esp, 0xc
mov ecx, esi
call fcn.00410d38
mov ebx, 0x4be01c
push eax
mov ecx, ebx
call fcn.0040f8cf
cmp dword [0x4be030], 8
mov eax, ebx
cmovae eax, dword [0x4be01c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40972c
sub esp, 0x18
mov dword [ebp - 0x12dc], 0xc
mov ecx, esp
push ebx
mov dword [ecx + 0x10], edi
mov dword [ecx + 0x14], edi
call fcn.0040ea96
call fcn.00412f85
add esp, 0x18
test eax, eax
jne 0x4095a0
mov dword [ebp - 0x12d8], edi
jmp 0x4095ad
push eax
call fcn.00412f04
pop ecx
mov dword [ebp - 0x12d8], eax
cmp dword [0x4be030], 8
lea ecx, [ebp - 0x12dc]
mov eax, ebx
mov dword [ebp - 0x12d4], edi
cmovae eax, dword [0x4be01c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x409720
push str.CreateDirectory__err_
push 0x4c1250
call fcn.00407662
pop ecx
pop ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.__path:
push eax
mov ecx, esi
call fcn.00408474
push eax
call fcn.00407662
cmp dword [0x4be030], 8
mov ecx, ebx
cmovae ecx, dword [0x4be01c]
push ecx
push eax
call fcn.00407662
add esp, 0x10
lea eax, [ebp - 0x1230]
mov ecx, 0x4c1258
push eax
call fcn.004103a3
cmp dword [ebp - 0x121c], 8
lea eax, [ebp - 0x1230]
mov byte [ebp - 4], 5
cmovae eax, dword [ebp - 0x1230]
push eax
call fcn.0040ea24
pop ecx
lea ecx, [ebp - 0x1230]
mov byte [ebp - 4], 4
call fcn.00406a00
mov ecx, dword [0x4c1214]
push edi
call fcn.00410a66
push eax
mov ecx, ebx
call fcn.0040f8cf
mov ecx, dword [0x4c1214]
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00410fdf
xor eax, eax
mov dword [ebp - 0x1220], edi
mov word [ebp - 0x1230], ax
lea ecx, [ebp - 0x1230]
lea eax, [ebp - 0x218]
mov dword [ebp - 0x121c], 7
push eax
call fcn.0040f8cf
lea eax, [ebp - 0x1230]
mov byte [ebp - 4], 6
push edi
push eax
call int.00426bb8
mov eax, dword [ebp - 0x121c]
mov byte [ebp - 4], 4
pop ecx
pop ecx
cmp eax, 8
jb 0x409720
mov ecx, dword [ebp - 0x1230]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x12c4], eax
mov dword [ebp - 0x12c8], ecx
cmp eax, 0x1000
jb 0x409717
lea eax, [ebp - 0x12c4]
push eax
lea eax, [ebp - 0x12c8]
push eax
call fcn.004017b0
mov eax, dword [ebp - 0x12c4]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x12c8]
push eax
push ecx
call fcn.0044c6c2
pop ecx
pop ecx
push dword [ebp - 0x12d8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [0x4be030], 8
mov eax, ebx
cmovae eax, dword [0x4be01c]
push eax
push str.InstallFolder__s__created_or_found
call fcn.0040ea07
pop ecx
pop ecx
mov ecx, dword [0x4c1214]
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00410fdf
mov esi, eax
test esi, esi
je 0x409898
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x409898
push esi
lea ecx, [ebp - 0x1230]
call fcn.00407faf
lea eax, [ebp - 0x1230]
mov byte [ebp - 4], 7
push edi
push eax
call int.00426bb8
pop ecx
pop ecx
lea ecx, [ebp - 0x1230]
mov byte [ebp - 4], 4
call fcn.00406a00
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov dword [ebp - 0x12c4], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x409898
push esi
push dword [ebp - 0x12c4]
push str.Make_dir_fail__d___s_
call fcn.0040ea24
mov ecx, dword [0x4c1214]
add esp, 0xc
push edi
call fcn.00410a66
push eax
mov ecx, ebx
call fcn.0040f8cf
mov ecx, dword [0x4c1214]
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00410fdf
xor eax, eax
mov dword [ebp - 0x1220], edi
mov word [ebp - 0x1230], ax
lea ecx, [ebp - 0x1230]
lea eax, [ebp - 0x218]
mov dword [ebp - 0x121c], 7
push eax
call fcn.0040f8cf
lea eax, [ebp - 0x1230]
mov byte [ebp - 4], 8
push edi
push eax
call int.00426bb8
mov eax, dword [ebp - 0x121c]
mov byte [ebp - 4], 4
pop ecx
pop ecx
cmp eax, 8
jb 0x409898
mov ecx, dword [ebp - 0x1230]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x12c4], eax
mov dword [ebp - 0x12c8], ecx
cmp eax, 0x1000
jb 0x40988f
lea eax, [ebp - 0x12c4]
push eax
lea eax, [ebp - 0x12c8]
push eax
call fcn.004017b0
mov eax, dword [ebp - 0x12c4]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x12c8]
push eax
push ecx
call fcn.0044c6c2
pop ecx
pop ecx
lea eax, [ebp - 0x1290]
push eax
call fcn.00424ccb
pop ecx
xor eax, eax
mov dword [ebp - 0x1268], edi
mov dword [ebp - 0x1264], 7
mov word [ebp - 0x1278], ax
mov ecx, dword [0x4c1214]
mov byte [ebp - 4], 0xa
call fcn.00411512
mov esi, 0x4be034
push eax
mov ecx, esi
call fcn.0040f8cf
push esi
mov ecx, 0x4be04c
call fcn.00408324
lea eax, [ebp - 0x12cc]
mov dword [ebp - 0x12cc], edi
push eax
push 0x4957ac
push dword [ebp - 0x12d0]
call fcn.004691f8
add esp, 0xc
test eax, eax
je 0x409966
cmp word [eax], di
je 0x409966
cmp dword [0x4be048], 8
mov eax, esi
cmovae eax, dword [0x4be034]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x4948f0
push str.PluginPath
push str.Vista
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x218], 0
je 0x409966
lea eax, [ebp - 0x218]
mov ecx, 0x4be07c
push eax
call fcn.0040f8cf
mov dword [section..data], edi
jmp 0x409a51
push 0x1000
lea eax, [ebp - 0x1218]
push edi
push eax
call fcn.00465e50
add esp, 0xc
mov eax, esi
cmp dword [0x4be048], 8
cmovae eax, dword [0x4be034]
push eax
push 0x800
lea eax, [ebp - 0x1218]
push eax
push 0x4948f0
push 0x4957b0
push str.WebEx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x1218]
mov ecx, 0x4be094
push eax
call fcn.0040f8cf
cmp dword [0x4be030], 8
lea eax, [ebp - 0x1218]
push 0x4be064
cmovae ebx, dword [0x4be01c]
push eax
push ebx
call fcn.00409c4a
cmp dword [ebp - 0x127c], 8
lea ecx, [ebp - 0x1278]
push ecx
lea ecx, [ebp - 0x1218]
lea eax, [ebp - 0x1290]
cmovae eax, dword [ebp - 0x1290]
push ecx
push eax
call fcn.00409c4a
add esp, 0x18
cmp dword [0x4be048], 8
cmovae esi, dword [0x4be034]
push esi
push 1
push str.UseLocallow
push str.Vista
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
je 0x409a46
push str.gpc_download_files_to_locallow_folder
call fcn.0040ea07
call fcn.00408fc8
mov dword [esp], str.GPC_Initialize_Success
jmp 0x409a4b
push str.gpc_download_files_to_programdata_folder
call fcn.0040ea07
pop ecx
mov eax, dword [ebp - 0x1264]
cmp eax, 8
jb 0x409aa6
mov ecx, dword [ebp - 0x1278]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x12c4], eax
mov dword [ebp - 0x12c8], ecx
cmp eax, 0x1000
jb 0x409a9d
lea eax, [ebp - 0x12c4]
push eax
lea eax, [ebp - 0x12c8]
push eax
call fcn.004017b0
mov eax, dword [ebp - 0x12c4]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x12c8]
push eax
push ecx
call fcn.0044c6c2
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x1268], edi
lea ecx, [ebp - 0x1290]
mov dword [ebp - 0x1264], 7
mov word [ebp - 0x1278], ax
call fcn.00406a00
xor edi, edi
inc edi
lea ecx, [ebp - 0x12c0]
call fcn.0041a5a1
mov eax, edi
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.0044c567
leave
ret