Function at 0x30032170
Capabilities:
Get common file path

Disassembly:
sub esp, 0x68c
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ecx, 0x14
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x48]
mov eax, 5
push edx
xor ebx, ebx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x54], eax
push 0x4b
lea eax, [esp + 0x64]
xor ebp, ebp
push ebx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], ebx
xor esi, esi
mov dword [esp + 0x68], 4
mov dword [esp + 0x80], 1
mov dword [esp + 0x8c], 3
mov dword [esp + 0x98], 2
mov dword [esp + 0x58], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], eax
call dword [0x30335884]
test eax, eax
je 0x30032485
mov eax, dword [esp + 0x74]
and al, 4
sub al, 4
neg al
sbb eax, eax
inc eax
mov ebp, eax
mov eax, dword [esp + 0x5c]
cmp eax, ebx
je 0x30032227
push eax
call fcn.30075310
mov ecx, dword [esp + 0x60]
add esp, 4
push ecx
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x80]
cmp eax, ebx
je 0x30032253
mov edx, dword [esp + 0x6a0]
push edx
push eax
call fcn.30031870
mov esi, eax
mov eax, dword [esp + 0x88]
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x8c]
cmp eax, ebx
je 0x3003228e
cmp esi, ebx
jne 0x30032281
push eax
call fcn.30075310
mov esi, eax
mov eax, dword [esp + 0x90]
add esp, 4
push eax
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x30032292
mov esi, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x30032292
mov esi, dword [esp + 0x14]
cmp ebp, ebx
je 0x30032465
cmp dword [edi], ebx
je 0x30032465
cmp dword [esp + 0x10], ebx
jne 0x300322e1
push 3
push 0x400
lea ecx, [esp + 0x2a4]
push ecx
call dword [0x30335878]
test eax, eax
je 0x30032476
lea edx, [esp + 0x29c]
push edx
call fcn.30075310
add esp, 4
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x30032476
lea eax, [esp + 0x34]
mov dword [esp + 0x30], eax
mov eax, dword [0x3033588c]
cmp eax, ebx
mov dword [esp + 0x34], 0x30032020
mov dword [esp + 0x38], 0x30032060
mov dword [esp + 0x3c], fcn.30031ea0
mov dword [esp + 0x40], 0x300320b0
jne 0x300323b7
lea ecx, [esp + 0x198]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x300323aa
lea edx, [esp + 0x94]
push edx
push ebx
push ebx
lea eax, [esp + 0x1a4]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x300323aa
mov eax, dword [0x30335888]
cmp eax, ebx
je 0x300323aa
mov edx, dword [esp + 0x10]
push ebx
push ebx
lea ecx, [esp + 0x9c]
push ecx
push edx
push ebx
call eax
test eax, eax
jne 0x300323aa
lea eax, [esp + 0x94]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x30032372
sub eax, edx
inc eax
push eax
call fcn.3007a1f0
add esp, 4
cmp eax, ebx
mov dword [0x3033588c], eax
je 0x30032465
lea ecx, [esp + 0x94]
mov edx, eax
jmp 0x300323a0
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
cmp al, bl
jne 0x300323a0
mov eax, dword [0x3033588c]
cmp eax, ebx
je 0x30032465
push ebx
lea ecx, [esp + 0x34]
push ecx
push ebx
push eax
push ebx
call dword [0x30335880]
test eax, eax
je 0x30032465
mov ebp, dword [esp + 0x6a0]
mov edi, dword [esp + 0x6a4]
push ebp
lea esi, [esp + 0x20]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call fcn.300317f0
mov eax, ebp
add esp, 4
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x30032402
sub eax, edx
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x1c]
push ecx
push eax
mov eax, dword [esp + 0x28]
push ebp
push edx
push eax
call dword [0x30335874]
test eax, eax
je 0x30032450
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x30032450
push eax
call fcn.30075310
add esp, 4
call fcn.300319b0
mov ecx, dword [esp + 0x18]
push ecx
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
push ebx
call dword [0x3033587c]
lea ecx, [esp + 0x1c]
call fcn.30025af0
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x30032476
push eax
call fcn.30208320
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x68c
ret 8
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x68c
ret 8