Function at 0x43166a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x507dab
mov eax, dword fs:[0]
push eax
sub esp, 0x4e8
mov eax, dword [0x54b3f0]
xor eax, esp
mov dword [esp + 0x4e0], eax
push ebx
push esi
push edi
mov eax, dword [0x54b3f0]
xor eax, esp
push eax
lea eax, [esp + 0x4f8]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 0x3c]
mov dword [esp + 0x14], esi
call fcn.00431322
and dword [esp + 0x500], 0
push 0xffffffffffffffff
push dword [esi + 8]
xor bl, bl
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [esi + 0x28]
cmp edi, dword [esi + 0x2c]
je 0x431737
mov eax, edi
lea esi, [esp + 0x3c]
call fcn.00431ad2
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x2c]
lea ebx, [edi + 0x9c]
mov dword [esp + 0x10], eax
cmp ebx, eax
je 0x43170e
sub edi, ebx
lea esi, [edi + ebx]
mov eax, ebx
call fcn.00431ad2
add ebx, 0x9c
cmp ebx, dword [esp + 0x10]
jne 0x4316f8
mov edi, dword [esp + 0x14]
mov ebx, dword [edi + 0x2c]
lea esi, [ebx - 0x9c]
jmp 0x431728
call fcn.0043152f
add esi, 0x9c
cmp esi, ebx
jne 0x43171d
add dword [edi + 0x2c], 0xffffff64
mov bl, 1
mov esi, edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test bl, bl
jne 0x431754
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4316c1
cmp dword [0x5500d4], 0
je 0x431783
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x4c]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x5500d4]
push eax
push str._INFO___d___handle_type__d___pid__d___taskid__d_
call fcn.00427581
add esp, 0x14
mov esi, dword [esi + 0x24]
test esi, esi
jne 0x431794
push 0x3e8
jmp 0x431a9e
mov eax, dword [esp + 0x44]
sub eax, 0
je 0x4317e5
dec eax
je 0x4317d7
dec eax
je 0x4317c7
dec eax
je 0x4317b7
dec eax
jne 0x431a9c
call fcn.00430f8b
jmp 0x431a9c
push dword [esp + 0x40]
mov ebx, esi
call fcn.0043117b
jmp 0x431a9c
push dword [esp + 0x40]
mov ebx, esi
call fcn.00431103
jmp 0x431a9c
mov ecx, dword [esp + 0x40]
call fcn.00430ead
jmp 0x431a9c
mov ebx, dword [esp + 0xa0]
push 8
pop eax
cmp dword [esp + 0xb4], eax
jae 0x4317ff
lea ebx, [esp + 0xa0]
mov ecx, dword [esp + 0xbc]
cmp dword [esp + 0xd0], eax
jae 0x431816
lea ecx, [esp + 0xbc]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x84]
cmp dword [esp + 0x98], eax
jae 0x431831
lea ecx, [esp + 0x84]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x68]
cmp dword [esp + 0x7c], eax
jae 0x431843
lea ecx, [esp + 0x68]
cmp dword [esp + 0x60], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x28], ecx
jae 0x431855
lea eax, [esp + 0x4c]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], 0
mov al, byte [esp + 0x48]
mov byte [esp + 0x38], al
mov dword [esp + 0x2c], ecx
je 0x431a9c
call fcn.00430ead
lea edi, [esi + 0x10]
push edi
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0xb8
mov byte [esp + 0x504], 1
call fcn.004d5f1a
pop ecx
mov dword [esp + 0x1c], eax
mov byte [esp + 0x500], 2
test eax, eax
je 0x4318b2
push eax
call fcn.00431ed1
jmp 0x4318b4
xor eax, eax
mov byte [esp + 0x500], 1
mov dword [esi + 4], eax
test eax, eax
jne 0x4318d0
mov byte [esp + 0x500], al
push edi
jmp 0x431a96
mov ecx, dword [esi + 0x2c]
mov dword [eax + 0xa4], ecx
mov eax, dword [esi + 4]
mov byte [eax + 0x9c], 1
push ebx
lea eax, [esp + 0x34]
push eax
call fcn.00403b0d
mov edi, dword [esi + 4]
add edi, 0xa8
lea eax, [esp + 0x30]
mov byte [esp + 0x500], 3
call fcn.00402e04
mov eax, edi
call fcn.0043510a
mov byte [esp + 0x500], 1
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
call fcn.00403e7d
mov edi, 0x280c
push edi
call fcn.004d5f1a
mov ebx, eax
pop ecx
test ebx, ebx
je 0x431a8a
push edi
push 0
push ebx
call fcn.004d8c50
mov eax, dword [esi + 4]
add esp, 0xc
xor edx, edx
mov dword [ebx], eax
mov dword [ebx + 0x2808], edx
mov eax, dword [esi + 0xc]
mov dword [esp + 0x1c], 1
jmp 0x431965
mov eax, dword [ecx]
inc dword [esp + 0x1c]
lea ecx, [eax + 0x2808]
cmp dword [ecx], edx
jne 0x43195f
mov ecx, dword [esp + 0x2c]
push dword [esp + 0x10]
mov dword [eax + 0x2808], ebx
mov eax, dword [esi + 0xc]
mov eax, dword [eax]
inc dword [eax]
mov eax, dword [esi + 4]
mov dword [eax + 0xa0], ecx
lea eax, [esp + 0x38]
push eax
call fcn.00403b0d
mov byte [esp + 0x500], 4
mov edi, dword [esi + 4]
lea edi, [edi + 0xb0]
call fcn.00402e04
mov byte [esp + 0x500], 1
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
call fcn.00403e7d
mov eax, dword [esp + 0x2c]
push dword [esp + 0x18]
mov dword [ebx + 0x2804], eax
mov edi, 0x800
lea eax, [ebx + 4]
push edi
push eax
call fcn.004d8878
add esp, 0xc
cmp dword [esp + 0x28], 0
jne 0x431a30
xor eax, eax
push 0x40e
push eax
mov word [esp + 0xe4], ax
lea eax, [esp + 0xe6]
push eax
call fcn.004d8c50
add esp, 0xc
lea eax, [esp + 0xdc]
push eax
push 0x410
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, 0x410
ja 0x431a8a
test eax, eax
je 0x431a8a
lea ecx, [esp + 0xdc]
push ecx
jmp 0x431a34
push dword [esp + 0x28]
lea eax, [ebx + 0x1004]
push edi
push eax
mov dword [esp + 0x1c], eax
call fcn.004d8878
add esp, 0xc
cmp dword [esp + 0x20], 0
je 0x431a67
push dword [esp + 0x20]
add ebx, 0x2004
push 0x400
push ebx
call fcn.004d8878
add esp, 0xc
push dword [esp + 0x38]
mov ecx, dword [esp + 0x14]
push dword [esp + 0x30]
mov edx, dword [esp + 0x20]
push dword [esp + 0x28]
push dword [esi + 4]
call fcn.004323f2
mov eax, dword [esp + 0x1c]
mov dword [esi + 8], eax
mov byte [esp + 0x500], 0
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [esp + 0x14]
jmp 0x4316c1