Function at 0x43159f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x507e67
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.00431257
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 0x43166c
mov eax, edi
lea esi, [esp + 0x3c]
call fcn.00431a07
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x2c]
lea ebx, [edi + 0x9c]
mov dword [esp + 0x10], eax
cmp ebx, eax
je 0x431643
sub edi, ebx
lea esi, [edi + ebx]
mov eax, ebx
call fcn.00431a07
add ebx, 0x9c
cmp ebx, dword [esp + 0x10]
jne 0x43162d
mov edi, dword [esp + 0x14]
mov ebx, dword [edi + 0x2c]
lea esi, [ebx - 0x9c]
jmp 0x43165d
call fcn.00431464
add esi, 0x9c
cmp esi, ebx
jne 0x431652
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 0x431689
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4315f6
cmp dword [0x5500d4], 0
je 0x4316b8
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.0042749e
add esp, 0x14
mov esi, dword [esi + 0x24]
test esi, esi
jne 0x4316c9
push 0x3e8
jmp 0x4319d3
mov eax, dword [esp + 0x44]
sub eax, 0
je 0x43171a
dec eax
je 0x43170c
dec eax
je 0x4316fc
dec eax
je 0x4316ec
dec eax
jne 0x4319d1
call fcn.00430ec0
jmp 0x4319d1
push dword [esp + 0x40]
mov ebx, esi
call fcn.004310b0
jmp 0x4319d1
push dword [esp + 0x40]
mov ebx, esi
call fcn.00431038
jmp 0x4319d1
mov ecx, dword [esp + 0x40]
call fcn.00430de2
jmp 0x4319d1
mov ebx, dword [esp + 0xa0]
push 8
pop eax
cmp dword [esp + 0xb4], eax
jae 0x431734
lea ebx, [esp + 0xa0]
mov ecx, dword [esp + 0xbc]
cmp dword [esp + 0xd0], eax
jae 0x43174b
lea ecx, [esp + 0xbc]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x84]
cmp dword [esp + 0x98], eax
jae 0x431766
lea ecx, [esp + 0x84]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x68]
cmp dword [esp + 0x7c], eax
jae 0x431778
lea ecx, [esp + 0x68]
cmp dword [esp + 0x60], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x28], ecx
jae 0x43178a
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 0x4319d1
call fcn.00430de2
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.004d5fab
pop ecx
mov dword [esp + 0x1c], eax
mov byte [esp + 0x500], 2
test eax, eax
je 0x4317e7
push eax
call fcn.00431e06
jmp 0x4317e9
xor eax, eax
mov byte [esp + 0x500], 1
mov dword [esi + 4], eax
test eax, eax
jne 0x431805
mov byte [esp + 0x500], al
push edi
jmp 0x4319cb
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.00403b4c
mov edi, dword [esi + 4]
add edi, 0xa8
lea eax, [esp + 0x30]
mov byte [esp + 0x500], 3
call fcn.00402e7b
mov eax, edi
call fcn.00435040
mov byte [esp + 0x500], 1
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
call fcn.00403eb2
mov edi, 0x280c
push edi
call fcn.004d5fab
mov ebx, eax
pop ecx
test ebx, ebx
je 0x4319bf
push edi
push 0
push ebx
call fcn.004d8ce0
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 0x43189a
mov eax, dword [ecx]
inc dword [esp + 0x1c]
lea ecx, [eax + 0x2808]
cmp dword [ecx], edx
jne 0x431894
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.00403b4c
mov byte [esp + 0x500], 4
mov edi, dword [esi + 4]
lea edi, [edi + 0xb0]
call fcn.00402e7b
mov byte [esp + 0x500], 1
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
call fcn.00403eb2
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.004d8908
add esp, 0xc
cmp dword [esp + 0x28], 0
jne 0x431965
xor eax, eax
push 0x40e
push eax
mov word [esp + 0xe4], ax
lea eax, [esp + 0xe6]
push eax
call fcn.004d8ce0
add esp, 0xc
lea eax, [esp + 0xdc]
push eax
push 0x410
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, 0x410
ja 0x4319bf
test eax, eax
je 0x4319bf
lea ecx, [esp + 0xdc]
push ecx
jmp 0x431969
push dword [esp + 0x28]
lea eax, [ebx + 0x1004]
push edi
push eax
mov dword [esp + 0x1c], eax
call fcn.004d8908
add esp, 0xc
cmp dword [esp + 0x20], 0
je 0x43199c
push dword [esp + 0x20]
add ebx, 0x2004
push 0x400
push ebx
call fcn.004d8908
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.00432328
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 0x4315f6