Function at 0x41a350
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x489c7b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x270
mov eax, dword [0x4c0074]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x238], edx
mov dword [ebp - 0x234], ecx
mov eax, dword [ebx + 0xc]
mov edi, dword [ebx + 8]
mov dword [ebp - 0x23c], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x240], eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x25c], eax
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x244], edi
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x250], 0x4a4ec0
mov dword [ebp - 0x24c], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x228]
push 0x105
push eax
mov dword [ebp - 0x248], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x41a498
cmp eax, 0x105
jae 0x41a498
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x22c]
call fcn.00403990
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x22c]
push 1
push 0x4a5124
call fcn.00402280
push 0xc
push str.Kernel32.dll
lea ecx, [ebp - 0x22c]
call fcn.00402280
mov esi, dword [ebp - 0x22c]
push 0x5c
push esi
call fcn.0046dfaa
add esp, 8
test eax, eax
jne 0x41a467
xor esi, esi
jmp 0x41a474
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov byte [ebp - 4], 0
or ecx, 0xffffffff
mov edx, dword [ebp - 0x22c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x41a49a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41a49a
xor esi, esi
mov eax, dword [ebp - 0x24c]
cmp esi, eax
je 0x41a4bb
mov eax, dword [ebp - 0x250]
lea ecx, [ebp - 0x250]
call dword [eax + 4]
mov dword [ebp - 0x24c], esi
mov eax, esi
test eax, eax
jne 0x41a4cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x248], eax
mov dword [ebp - 4], 3
xorps xmm0, xmm0
mov eax, dword [ebp - 0x234]
movups xmmword [ebp - 0x280], xmm0
movups xmmword [ebp - 0x270], xmm0
mov eax, dword [eax]
mov ecx, dword [eax - 0x10]
lea esi, [eax - 0x10]
mov dword [ebp - 0x234], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
cmp dword [esi + 0xc], 0
mov ecx, eax
lea eax, [esi + 0xc]
jl 0x41a512
cmp ecx, dword [esi]
jne 0x41a512
lock inc dword [eax]
jmp 0x41a549
mov eax, dword [ecx]
lea edi, [esi + 4]
push 2
push dword [edi]
mov eax, dword [eax]
call eax
mov esi, eax
test esi, esi
je 0x41aa1e
mov eax, dword [edi]
lea ecx, [esi + 0x10]
mov dword [esi + 4], eax
mov edx, dword [edi]
inc edx
push edx
push dword [ebp - 0x234]
call fcn.004023d0
mov edi, dword [ebp - 0x244]
add esp, 8
lea eax, [esi + 0x10]
mov dword [ebp - 0x258], eax
mov byte [ebp - 4], 5
cmp dword [eax - 4], 1
jle 0x41a570
push dword [eax - 0xc]
lea ecx, [ebp - 0x258]
call fcn.00402140
mov eax, dword [ebp - 0x258]
mov esi, dword [ebp - 0x238]
mov dword [ebp - 0x270], eax
mov eax, dword [edi]
mov word [ebp - 0x272], ax
mov eax, dword [edi + 4]
mov word [ebp - 0x274], ax
mov eax, dword [edi + 8]
push 0x4a5ac8
push dword [esi]
mov word [ebp - 0x278], ax
mov eax, dword [edi + 0xc]
mov word [ebp - 0x276], ax
call fcn.00472182
add esp, 8
test eax, eax
jne 0x41a5be
mov dword [ebp - 0x27c], eax
jmp 0x41a602
push 0x4a5ad0
push dword [esi]
call fcn.00472182
add esp, 8
test eax, eax
jne 0x41a5dd
mov dword [ebp - 0x27c], 9
jmp 0x41a602
push str.neutral
push dword [esi]
call fcn.00472182
mov ecx, dword [ebp - 0x27c]
add esp, 8
test eax, eax
mov edx, 0xb
cmove ecx, edx
mov dword [ebp - 0x27c], ecx
mov eax, dword [ebp - 0x23c]
mov eax, dword [eax]
mov ecx, dword [eax - 0x10]
lea edi, [eax - 0x10]
mov dword [ebp - 0x23c], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
cmp dword [edi + 0xc], 0
mov ecx, eax
lea eax, [edi + 0xc]
jl 0x41a631
cmp ecx, dword [edi]
jne 0x41a631
lock inc dword [eax]
jmp 0x41a662
mov eax, dword [ecx]
lea esi, [edi + 4]
push 2
push dword [esi]
mov eax, dword [eax]
call eax
mov edi, eax
test edi, edi
je 0x41aa23
mov eax, dword [esi]
lea ecx, [edi + 0x10]
mov dword [edi + 4], eax
mov edx, dword [esi]
inc edx
push edx
push dword [ebp - 0x23c]
call fcn.004023d0
add esp, 8
add edi, 0x10
mov dword [ebp - 0x244], edi
mov byte [ebp - 4], 7
cmp dword [edi - 0xc], 0
je 0x41a695
cmp dword [edi - 4], 1
jle 0x41a68f
push dword [edi - 0xc]
lea ecx, [ebp - 0x244]
call fcn.00402140
mov edi, dword [ebp - 0x244]
mov dword [ebp - 0x26c], edi
mov eax, dword [ebp - 0x240]
mov eax, dword [eax]
mov ecx, dword [eax - 0x10]
lea esi, [eax - 0x10]
mov dword [ebp - 0x23c], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
cmp dword [esi + 0xc], 0
mov ecx, eax
lea eax, [esi + 0xc]
jl 0x41a6c4
cmp ecx, dword [esi]
jne 0x41a6c4
lock inc dword [eax]
jmp 0x41a701
mov eax, dword [ecx]
lea edx, [esi + 4]
push 2
push dword [edx]
mov dword [ebp - 0x240], edx
mov eax, dword [eax]
call eax
mov esi, eax
test esi, esi
je 0x41aa28
mov ecx, dword [ebp - 0x240]
mov eax, dword [ecx]
mov dword [esi + 4], eax
mov edx, dword [ecx]
lea ecx, [esi + 0x10]
inc edx
push edx
push dword [ebp - 0x23c]
call fcn.004023d0
add esp, 8
add esi, 0x10
mov dword [ebp - 0x234], esi
mov byte [ebp - 4], 9
cmp dword [esi - 0xc], 0
je 0x41a734
cmp dword [esi - 4], 1
jle 0x41a72e
push dword [esi - 0xc]
lea ecx, [ebp - 0x234]
call fcn.00402140
mov esi, dword [ebp - 0x234]
mov dword [ebp - 0x268], esi
mov eax, dword [ebp - 0x25c]
mov eax, dword [eax]
mov dword [ebp - 0x240], eax
add eax, 0xfffffff0
mov dword [ebp - 0x22c], eax
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov ecx, dword [ebp - 0x22c]
mov edx, eax
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
jl 0x41a76e
cmp edx, dword [ecx]
jne 0x41a76e
lock inc dword [eax]
jmp 0x41a7b9
mov eax, dword [edx]
add ecx, 4
push 2
mov dword [ebp - 0x25c], ecx
push dword [ecx]
mov eax, dword [eax]
mov ecx, edx
call eax
mov ecx, eax
mov dword [ebp - 0x22c], ecx
test ecx, ecx
je 0x41aa2d
mov edx, dword [ebp - 0x25c]
mov eax, dword [edx]
mov dword [ecx + 4], eax
add ecx, 0x10
mov edx, dword [edx]
inc edx
push edx
push dword [ebp - 0x240]
call fcn.004023d0
mov ecx, dword [ebp - 0x22c]
add esp, 8
lea eax, [ecx + 0x10]
mov dword [ebp - 0x238], eax
mov byte [ebp - 4], 0xb
cmp dword [eax - 4], 1
jle 0x41a7e0
push dword [eax - 0xc]
lea ecx, [ebp - 0x238]
call fcn.00402140
mov eax, dword [ebp - 0x238]
mov ecx, dword [ebp - 0x230]
mov dword [ebp - 0x264], eax
mov dword [ebp - 0x254], 0x104
mov edx, dword [ecx]
mov ecx, 1
mov dword [ebp - 0x22c], edx
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
jge 0x41a830
mov ecx, dword [ebp - 0x230]
push 0x104
call fcn.00402210
mov ecx, dword [ebp - 0x230]
mov eax, dword [ecx]
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp - 0x24c]
test eax, eax
je 0x41a907
push str.GetPackagePath
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41a8fa
push dword [ebp - 0x22c]
lea ecx, [ebp - 0x254]
push ecx
push 0
lea ecx, [ebp - 0x280]
push ecx
call eax
mov dword [ebp - 0x22c], eax
cmp eax, 0x7a
jne 0x41a911
mov edx, dword [ebp - 0x254]
test edx, edx
js 0x41aa32
mov eax, dword [ebp - 0x230]
mov ecx, 1
mov eax, dword [eax]
mov dword [ebp - 0x22c], eax
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edx
or ecx, eax
jge 0x41a8c0
mov ecx, dword [ebp - 0x230]
push edx
call fcn.00402210
mov ecx, dword [ebp - 0x230]
mov eax, dword [ecx]
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp - 0x24c]
test eax, eax
je 0x41a907
push str.GetPackagePath
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41a8fa
push dword [ebp - 0x22c]
lea ecx, [ebp - 0x254]
push ecx
push 0
lea ecx, [ebp - 0x280]
push ecx
call eax
mov dword [ebp - 0x22c], eax
jmp 0x41a911
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x22c], 1
mov edx, dword [ebp - 0x230]
mov eax, dword [edx]
test eax, eax
jne 0x41a921
xor ecx, ecx
jmp 0x41a93d
push dword [eax - 8]
push eax
call fcn.00471e3c
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x41aa32
mov edx, dword [ebp - 0x230]
mov eax, dword [edx]
cmp ecx, dword [eax - 8]
jg 0x41aa32
mov dword [eax - 0xc], ecx
mov eax, dword [edx]
xor edx, edx
mov word [eax + ecx*2], dx
mov byte [ebp - 4], 9
or eax, 0xffffffff
mov edx, dword [ebp - 0x238]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41a975
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 7
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41a991
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
or esi, 0xffffffff
add edi, 0xfffffff0
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x41a9af
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x258]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x41a9ce
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24c]
mov dword [ebp - 0x250], 0x4a4ec0
test eax, eax
je 0x41a9fa
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x24c], 0
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0046c8db
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004023c0
call fcn.004023c0
call fcn.004023c0
call fcn.004023c0
push 0x80070057
call fcn.004023a0
int3