Function at 0x10054cc5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push esi
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x1005511d
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x78], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0xec], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0x38]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp + 0x3c]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0xc0]
movzx eax, byte [eax]
test eax, eax
je 0x10054f98
mov eax, dword [ebp - 0xec]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0x34], 0x3363
mov dword [ebp - 0x98], 0x1000d154
cmp dword [ebp - 0x34], 0x33bc
jle 0x10054e5c
and dword [ebp - 0x10], 0
jmp 0x10054dc8
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x39d2
jge 0x10054e5c
and dword [ebp - 0x18], 0
jmp 0x10054de2
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x5a24
jge 0x10054e57
and dword [ebp - 0xc], 0
jmp 0x10054df8
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x5968
jge 0x10054e55
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0xc]
or eax, dword [ebp - 0x10]
cdq
mov dword [ebp - 0xe8], eax
mov dword [ebp - 0xe4], edx
push dword [ebp - 0xe4]
push dword [ebp - 0xe8]
lea ecx, [ebp - 0x114]
call fcn.10010ffe
pop ecx
pop ecx
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x90]
call fcn.1001fbf4
push eax
call fcn.100714f3
pop ecx
lea ecx, [ebp - 0x114]
call fcn.1001fbea
jmp 0x10054df1
jmp 0x10054ddb
jmp 0x10054dc1
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x34], 0x3028
jge 0x10054e7a
push dword [ebp - 0x98]
call fcn.100714f3
pop ecx
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
cmp dword [eax], ecx
jge 0x10054f25
mov eax, dword [ebp - 4]
cmp dword [eax], 0xffffffff
je 0x10054eba
mov dword [ebp - 0xd0], 1
jmp 0x10054ec1
and dword [ebp - 0xd0], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 0xf8], eax
mov esi, 0x8bd921b0
add esi, 0x82ca9683
push 1
mov ecx, dword [ebp - 0x44]
call fcn.1001ffcc
mov dword [eax], esi
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 0xfc], eax
push 1
mov ecx, dword [ebp - 0x44]
call fcn.1001ffcc
mov ecx, dword [ebp - 0x2c]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
mov dword [ebp - 0x54], eax
push 2
mov ecx, dword [ebp - 0xa8]
call fcn.1001ffcc
mov ecx, dword [ebp - 0x54]
mov dword [eax], ecx
cmp dword [ebp - 0x54], 0
jne 0x10054f25
and dword [ebp - 0x20], 0
jmp 0x10054f2c
mov dword [ebp - 0x20], 1
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x20]
sub ecx, dword [eax]
je 0x10054f48
mov eax, 0x3fd52a42
test eax, eax
je 0x10054f48
mov dword [ebp - 0x4c], 1
jmp 0x10054f4c
and dword [ebp - 0x4c], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [ebp - 0x4c], eax
jg 0x10054f5f
mov dword [ebp - 0x3c], 1
jmp 0x10054f63
and dword [ebp - 0x3c], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
add eax, dword [ebp - 0x3c]
cmp eax, 6
ja 0x10054f81
mov eax, dword [ebp - 0xe0]
cmp dword [eax], 0
jne 0x10054f81
and dword [ebp - 0x5c], 0
jmp 0x10054f88
mov dword [ebp - 0x5c], 1
mov eax, dword [ebp - 0xb0]
mov ecx, dword [ebp - 0x5c]
mov dword [eax], ecx
jmp 0x1005511b
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
je 0x100550f5
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp - 0xb4]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
mov dword [eax], ecx
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0xffffffff
ja 0x10055033
mov dword [ebp - 0x24], 1
jmp 0x10055037
and dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
cmp dword [ebp - 0x24], eax
je 0x1005504a
mov dword [ebp - 0x28], 1
jmp 0x1005504e
and dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x28]
neg eax
cmp eax, 5
jne 0x10055061
mov dword [ebp - 0x30], 1
jmp 0x10055065
and dword [ebp - 0x30], 0
cmp dword [ebp - 0x30], 0xfc3
je 0x10055077
mov dword [ebp - 0x38], 1
jmp 0x1005507b
and dword [ebp - 0x38], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x38]
jle 0x1005508e
mov dword [ebp - 0x40], 1
jmp 0x10055092
and dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x40]
jge 0x100550a5
mov dword [ebp - 0x48], 1
jmp 0x100550a9
and dword [ebp - 0x48], 0
cmp dword [ebp - 0x48], 0xffffffff
jl 0x100550b8
mov dword [ebp - 0x50], 1
jmp 0x100550bc
and dword [ebp - 0x50], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax]
add eax, dword [ebp - 0x50]
jne 0x100550d0
xor eax, eax
jne 0x100550d0
and dword [ebp - 0x1c], 0
jmp 0x100550d7
mov dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0xbc]
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp dword [ebp - 0x1c], eax
jne 0x100550f5
mov dword [ebp - 0x58], 1
jmp 0x100550f9
and dword [ebp - 0x58], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp dword [ebp - 0x58], eax
jne 0x1005510c
mov dword [ebp - 0x60], 1
jmp 0x10055110
and dword [ebp - 0x60], 0
mov eax, dword [ebp - 0xc4]
mov ecx, dword [ebp - 0x60]
mov dword [eax], ecx
jmp 0x10055149
lea eax, [ebp + 0x18]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0xcc]
movzx eax, byte [eax]
test eax, eax
je 0x1005513f
push 0
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x10055149
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
pop esi
mov esp, ebp
pop ebp
ret