Function at 0x5019a012
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x4c0
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp + 0x6c], ecx
push 9
xor eax, eax
cmp dword [0x50297b28], esi
pop ecx
lea edi, [ebp - 0x24]
mov dword [ebp + 0x64], esi
mov dword [ebp + 0x58], esi
mov dword [ebp + 0x5c], esi
rep stosd dword es:[edi], eax
jne 0x5019a098
push dword [0x50297d50]
push 0x420
call fcn.50040c9c
cmp eax, esi
pop ecx
pop ecx
je 0x5019a05f
mov ecx, eax
call fcn.500a785c
jmp 0x5019a061
xor eax, eax
cmp eax, esi
mov dword [0x50297b28], eax
jne 0x5019a074
push 0x8007000e
jmp 0x5019a38e
push 0x104
lea eax, [ebp - 0x44c]
push eax
call dword [sym.imp.vsansi.dll_GetSystemDirectoryW]
mov ecx, dword [0x50297b28]
lea eax, [ebp - 0x44c]
push eax
call fcn.500a6ec8
mov ebx, 0x3338
push ebx
call fcn.5005698e
shr eax, 0x10
test ax, ax
push ebx
je 0x5019a0dd
call fcn.5005698e
mov edi, eax
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ecx + ecx + 2]
add eax, 3
and eax, 0xfffffffc
call fcn.50260700
mov esi, esp
push ebx
call fcn.5005698e
push eax
push esi
call fcn.5024c7db
jmp 0x5019a0e2
call fcn.5005698e
push eax
call fcn.500a0492
push 0xc
mov esi, eax
pop ecx
xor eax, eax
lea edi, [ebp]
rep stosd dword es:[edi], eax
and dword [ebp + 4], eax
mov ebx, 0x32ce
push ebx
mov dword [ebp], 0x30
call fcn.5005698e
shr eax, 0x10
test ax, ax
push ebx
je 0x5019a143
call fcn.5005698e
mov edi, eax
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ecx + ecx + 2]
add eax, 3
and eax, 0xfffffffc
call fcn.50260700
mov edi, esp
push ebx
call fcn.5005698e
push eax
push edi
call fcn.5024c7db
jmp 0x5019a148
call fcn.5005698e
mov ecx, dword [0x50297b28]
mov dword [ebp + 8], eax
lea eax, [ebp - 0x244]
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], 0x104
call fcn.50272bbe
and dword [ebp + 0x28], 0
and dword [ebp + 0x2c], 0
mov dword [ebp + 0x14], eax
lea eax, [ebp]
push eax
mov dword [ebp + 0x18], esi
call fcn.5009c936
xor ecx, ecx
test eax, eax
setge cl
push esi
mov edi, ecx
call fcn.50258d3a
test edi, edi
je 0x5019a393
mov ecx, dword [0x50297b28]
lea eax, [ebp - 0x244]
push eax
call fcn.500a6e2f
mov ecx, dword [0x50297b28]
call fcn.50272bbe
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.OLEAUT32.dll_LoadRegTypeLib]
test eax, eax
mov dword [ebp + 0x68], eax
jl 0x5019a360
push 0
lea eax, [ebp - 0x244]
push eax
push dword [ebp + 0x64]
call dword [sym.imp.OLEAUT32.dll_QueryPathOfRegTypeLib]
test eax, eax
mov dword [ebp + 0x68], eax
jl 0x5019a360
push dword [ebp + 0x64]
lea ebx, [ebp - 0x24]
call fcn.50272bbe
test eax, eax
mov dword [ebp + 0x68], eax
jl 0x5019a360
mov ecx, dword [ebp + 0x6c]
push 2
pop ebx
push ebx
push 4
lea eax, [ebp - 0x24]
push eax
call fcn.50272bbe
test eax, eax
mov dword [ebp + 0x68], eax
jl 0x5019a360
push dword [ebp - 0x12]
mov ecx, dword [ebp + 0x6c]
push dword [ebp - 0x14]
lea eax, [ebp - 0x24]
push eax
call fcn.50272bbe
push 9
pop ecx
mov esi, eax
xor eax, eax
push eax
push eax
push 0xb
push dword [ebp + 0x7c]
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
call edi
push 0
push 0
push 0x1004
push dword [ebp + 0x7c]
call edi
and dword [ebp + 0x70], 0
test eax, eax
mov dword [ebp + 0x60], eax
jle 0x5019a286
and dword [ebp + 0x3c], 0
lea eax, [ebp + 0x30]
push eax
push dword [ebp + 0x70]
mov dword [ebp + 0x40], ebx
push 0x102b
push dword [ebp + 0x7c]
call edi
inc dword [ebp + 0x70]
mov eax, dword [ebp + 0x70]
cmp eax, dword [ebp + 0x60]
jl 0x5019a263
lea eax, [ebp - 0x3c]
push eax
push 0xffffffffffffffff
push 0x100d
push dword [ebp + 0x7c]
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x34], esi
call edi
cmp eax, 0xffffffff
mov dword [ebp + 0x6c], eax
jne 0x5019a31d
and dword [ebp + 0x70], 0
cmp dword [ebp + 0x60], 0
jle 0x5019a33f
push dword [ebp + 0x70]
push dword [ebp + 0x7c]
call fcn.50259832
test eax, eax
je 0x5019a2d2
inc dword [ebp + 0x70]
mov eax, dword [ebp + 0x70]
cmp eax, dword [ebp + 0x60]
jl 0x5019a2b6
jmp 0x5019a33f
mov eax, dword [ebp + 0x70]
push dword [esi + 0x1c]
and dword [ebp + 0x38], 0
lea ecx, [ebp + 0x58]
mov dword [ebp + 0x30], 0xf
mov dword [ebp + 0x3c], ebx
mov dword [ebp + 0x34], eax
call fcn.5003edd6
lea ecx, [ebp + 0x58]
call fcn.5003ee05
mov dword [ebp + 0x44], eax
mov eax, dword [esi + 0x18]
shr eax, 1
and eax, 1
mov dword [ebp + 0x4c], eax
push 1
lea eax, [ebp + 0x30]
push eax
push dword [ebp + 0x7c]
mov dword [ebp + 0x50], esi
call fcn.50259890
mov dword [ebp + 0x6c], eax
jmp 0x5019a33f
push 1
push eax
push dword [ebp + 0x7c]
call fcn.50272bbe
lea eax, [ebp + 0x30]
push eax
push dword [ebp + 0x6c]
mov dword [ebp + 0x40], ebx
push 0x102b
push dword [ebp + 0x7c]
mov dword [ebp + 0x3c], ebx
call edi
push 0
push 1
push 0xb
push dword [ebp + 0x7c]
call edi
mov eax, dword [ebp + 0x6c]
test eax, eax
jge 0x5019a353
xor eax, eax
push 0
push eax
push 0x1013
push dword [ebp + 0x7c]
call edi
mov eax, dword [ebp + 0x64]
test eax, eax
je 0x5019a36d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea esi, [ebp - 0x24]
call fcn.50199357
cmp dword [ebp + 0x68], 0
jge 0x5019a393
lea eax, [ebp - 0x244]
push eax
mov esi, 0x800a0017
push esi
call fcn.500694e6
push esi
call fcn.50069672
lea ecx, [ebp + 0x58]
call fcn.5003ed37
lea esp, [ebp - 0x458]
pop edi
pop esi
pop ebx
add ebp, 0x74
leave
ret 4