Function at 0x4c4e30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xc4
push 0
push 0
dec ecx
jne 0x4c4e39
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404c88
xor eax, eax
push ebp
push 0x4c57e2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x7c]
xor ecx, ecx
mov edx, 0x44
call fcn.0040338c
mov dword [ebp - 0x7c], 0x44
mov dword [ebp - 0x50], 1
mov word [ebp - 0x4c], 0
lea eax, [ebp - 0x47d]
push eax
push 0x400
call sub.kernel32.dll_GetTempPathA
lea eax, [ebp - 0x47d]
call fcn.0040b270
mov ecx, eax
lea edx, [ebp - 0x47d]
lea eax, [ebp - 0x28]
call fcn.004048b8
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x24]
mov edx, 0x4c5800
mov eax, 0x4c580c
call fcn.004c4d84
pop ecx
mov edx, 1
mov eax, dword [ebp - 0x24]
call fcn.0040aa08
mov dword [ebp - 0x20], eax
jmp 0x4c4eee
lea eax, [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
mov edx, 0x4c5820
call fcn.00404ae4
mov eax, dword [ebp - 0x24]
call fcn.00404a98
cmp eax, 5
jl 0x4c4ede
push dword [ebp - 0x28]
lea eax, [ebp - 0x584]
push eax
lea edx, [ebp - 0x588]
mov eax, dword [ebp - 8]
call fcn.0040b0ac
mov eax, dword [ebp - 0x588]
call fcn.00404a98
sub eax, 4
push eax
lea edx, [ebp - 0x58c]
mov eax, dword [ebp - 8]
call fcn.0040b0ac
mov eax, dword [ebp - 0x58c]
mov edx, 1
pop ecx
call fcn.00404cf8
push dword [ebp - 0x584]
push 0x4c582c
push dword [ebp - 0x24]
push 0x4c5838
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00404b58
push dword [ebp - 0x28]
lea eax, [ebp - 0x590]
push eax
lea edx, [ebp - 0x594]
mov eax, dword [ebp - 8]
call fcn.0040b0ac
mov eax, dword [ebp - 0x594]
call fcn.00404a98
sub eax, 4
push eax
lea edx, [ebp - 0x598]
mov eax, dword [ebp - 8]
call fcn.0040b0ac
mov eax, dword [ebp - 0x598]
mov edx, 1
pop ecx
call fcn.00404cf8
push dword [ebp - 0x590]
push 0x4c582c
push dword [ebp - 0x24]
push 0x4c5848
lea eax, [ebp - 0x1c]
mov edx, 5
call fcn.00404b58
mov dl, 1
mov eax, dword [0x418240]
call fcn.004039a4
mov esi, eax
mov dl, 1
mov eax, dword [0x418240]
call fcn.004039a4
mov dword [ebp - 0x30], eax
mov dl, 1
mov eax, dword [0x4b9c5c]
call fcn.004ba88c
mov ebx, eax
push 0
lea eax, [ebp - 0x59c]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 4]
mov ecx, 0x4c5858
mov edx, 0x4c586c
mov edi, dword [eax]
call dword [edi]
mov edx, dword [ebp - 0x59c]
mov eax, ebx
call fcn.004be1c0
mov edx, 0x4c5880
mov eax, ebx
call fcn.004baa04
mov eax, ebx
call fcn.004bdf24
test al, al
je 0x4c506e
lea ecx, [ebp - 0x5a4]
mov edx, 1
mov eax, ebx
call fcn.004baabc
mov eax, dword [ebp - 0x5a4]
lea edx, [ebp - 0x5a0]
call fcn.004bf9ec
mov edx, dword [ebp - 0x5a0]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, ebx
call fcn.004be180
test al, al
jne 0x4c5033
mov eax, ebx
call fcn.004039d4
mov dl, 1
mov eax, dword [0x4b9c5c]
call fcn.004ba88c
mov ebx, eax
push 0
lea eax, [ebp - 0x5a8]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 4]
mov ecx, 0x4c5890
mov edx, 0x4c586c
mov edi, dword [eax]
call dword [edi]
mov edx, dword [ebp - 0x5a8]
mov eax, ebx
call fcn.004be1c0
mov edx, 0x4c5880
mov eax, ebx
call fcn.004baa04
mov eax, ebx
call fcn.004bdf24
test al, al
je 0x4c50ef
lea ecx, [ebp - 0x5ac]
mov edx, 1
mov eax, ebx
call fcn.004baabc
mov edx, dword [ebp - 0x5ac]
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, ebx
call fcn.004be180
test al, al
jne 0x4c50c4
mov eax, ebx
call fcn.004039d4
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
call dword [edx + 0x14]
cmp ebx, eax
je 0x4c511a
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x5b0]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 4]
mov ecx, 0x4c58a8
mov edx, 0x4c586c
mov ebx, dword [eax]
call dword [ebx]
mov eax, dword [ebp - 0x5b0]
lea edx, [ebp - 0x34]
call fcn.0040a268
mov dl, 1
mov eax, dword [0x4befe0]
call fcn.004bf0d8
mov ebx, eax
push 0x4c58c4
mov eax, dword [ebp + 0xc]
push dword [eax - 0x1c]
push 0x4c58c4
lea eax, [ebp - 0x5b4]
mov edx, 3
call fcn.00404b58
mov eax, dword [ebp - 0x5b4]
push eax
push 0x4c58c4
lea edx, [ebp - 0x5bc]
mov eax, dword [ebp - 8]
call fcn.0040b024
push dword [ebp - 0x5bc]
push 0x4c58c4
lea eax, [ebp - 0x5b8]
mov edx, 3
call fcn.00404b58
mov ecx, dword [ebp - 0x5b8]
mov eax, dword [0x4e8ec8]
mov eax, dword [eax]
mov edx, dword [ebp - 0x34]
call fcn.004bf150
lea eax, [ebp - 0x14]
push eax
mov eax, dword [0x4e8ec8]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
call fcn.004bf714
mov eax, ebx
call fcn.004039d4
push 0
lea eax, [ebp - 0x5c0]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 4]
mov ecx, 0x4c58d0
mov edx, 0x4c58ec
mov ebx, dword [eax]
call dword [ebx]
cmp dword [ebp - 0x5c0], 0
je 0x4c522f
push 0
lea eax, [ebp - 0x5c4]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 4]
mov ecx, 0x4c58fc
mov edx, 0x4c58ec
mov ebx, dword [eax]
call dword [ebx]
mov edx, dword [ebp - 0x5c4]
lea eax, [ebp - 0x2c]
call fcn.0040505c
jmp 0x4c5237
lea eax, [ebp - 0x2c]
call fcn.00404eb8
push 0xc8
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 4]
mov ecx, 0x4c5910
mov edx, 0x4c586c
mov ebx, dword [eax]
call dword [ebx + 8]
mov edi, eax
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x14]
call fcn.00404860
lea edx, [ebp - 0x5c8]
mov eax, dword [ebp - 0x10]
call fcn.0040b024
push dword [ebp - 0x5c8]
lea edx, [ebp - 0x5cc]
mov eax, edi
call fcn.0040a890
push dword [ebp - 0x5cc]
push 0x4c5930
lea eax, [ebp - 0x5d0]
push eax
lea edx, [ebp - 0x5d4]
mov eax, dword [ebp - 0x10]
call fcn.0040b0ac
mov eax, dword [ebp - 0x5d4]
call fcn.00404a98
sub eax, 4
push eax
lea edx, [ebp - 0x5d8]
mov eax, dword [ebp - 0x10]
call fcn.0040b0ac
mov eax, dword [ebp - 0x5d8]
mov edx, 1
pop ecx
call fcn.00404cf8
push dword [ebp - 0x5d0]
push 0x4c5848
lea eax, [ebp - 0x1c]
mov edx, 5
call fcn.00404b58
xor esi, esi
lea edx, [ebp - 0x5e0]
mov eax, dword [ebp - 0x10]
call fcn.0040b024
push dword [ebp - 0x5e0]
lea edx, [ebp - 0x5e4]
mov eax, edi
call fcn.0040a890
push dword [ebp - 0x5e4]
push 0x4c5930
lea eax, [ebp - 0x5dc]
mov edx, 3
call fcn.00404b58
mov eax, dword [ebp - 0x5dc]
call fcn.0040ae20
test al, al
jne 0x4c5379
lea edx, [ebp - 0x5ec]
mov eax, dword [ebp - 0x10]
call fcn.0040b024
push dword [ebp - 0x5ec]
lea edx, [ebp - 0x5f0]
mov eax, edi
call fcn.0040a890
push dword [ebp - 0x5f0]
push 0x4c5930
lea eax, [ebp - 0x5e8]
mov edx, 3
call fcn.00404b58
mov eax, dword [ebp - 0x5e8]
call fcn.0040ae44
mov bl, 1
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.0040b0ac
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x24]
mov eax, 0x4c580c
mov edx, 0x4c5800
call fcn.004c4d84
pop ecx
mov edx, 1
mov eax, dword [ebp - 0x24]
call fcn.0040aa08
mov dword [ebp - 0x20], eax
jmp 0x4c53bf
lea eax, [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
mov edx, 0x4c5820
call fcn.00404ae4
mov eax, dword [ebp - 0x24]
call fcn.00404a98
cmp eax, 4
jl 0x4c53af
push 0x4c593c
lea eax, [ebp - 0x5f4]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00404a98
mov ecx, eax
sub ecx, 4
mov edx, 1
mov eax, dword [ebp - 0x10]
call fcn.00404cf8
push dword [ebp - 0x5f4]
push 0x4c594c
push dword [ebp - 0x24]
push 0x4c5838
lea eax, [ebp - 0x10]
mov edx, 5
call fcn.00404b58
mov eax, dword [ebp - 0x10]
call fcn.00404c98
mov edx, eax
lea eax, [ebp - 0x57d]
mov ecx, 0xfa
call fcn.0040b2d4
mov edx, 0x4c5950
lea eax, [ebp - 0x57d]
call fcn.0046c55c
lea edx, [ebp - 0x57d]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 0x20]
mov eax, dword [eax + 0x845]
call sub.IRBIS64.DLL_Irbisfind
test eax, eax
jne 0x4c54c6
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 0x20]
mov eax, dword [eax + 0x845]
call sub.IRBIS64.DLL_Irbisinitpost
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 0x20]
mov eax, dword [eax + 0x845]
call sub.IRBIS64.DLL_Irbisnxtpost
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 0x20]
mov eax, dword [eax + 0x845]
mov dx, 1
call sub.IRBIS64.DLL_Irbisposting
mov edx, dword [ebp + 0xc]
mov edx, dword [edx - 0x20]
mov edx, dword [edx + 0x845]
mov ecx, eax
xor eax, eax
xchg edx, eax
call sub.IRBIS64.DLL_IrbisRecord
test eax, eax
jne 0x4c54c6
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 0x20]
mov eax, dword [eax + 0x845]
mov ecx, 1
xor edx, edx
call sub.IRBIS64.DLL_Irbisnocc
test eax, eax
jle 0x4c54c6
xor ebx, ebx
mov eax, dword [ebp - 0x1c]
call fcn.0040ae10
xor al, 1
or al, bl
je 0x4c55ec
xor eax, eax
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x14]
call fcn.0040ae10
test al, al
jne 0x4c5527
lea eax, [ebp - 0x5f8]
mov edx, dword [ebp - 0x14]
call fcn.0040505c
mov eax, dword [ebp - 0x5f8]
push eax
push 1
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x5fc]
mov edx, dword [ebp - 8]
call fcn.0040505c
mov eax, dword [ebp - 0x5fc]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x2c]
call fcn.004b67d8
mov esi, eax
jmp 0x4c5529
xor esi, esi
cmp esi, 0xffffffff
jne 0x4c5573
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x44]
lea edx, [ebp - 0x604]
mov eax, dword [0x4e8e20]
mov eax, dword [eax]
call fcn.0046113c
mov eax, dword [ebp - 0x604]
lea edx, [ebp - 0x600]
call fcn.0040b024
mov edx, dword [ebp - 0x600]
lea eax, [ebp - 0x1c]
mov ecx, 0x4c595c
call fcn.00404ae4
mov eax, dword [ebp + 0xc]
mov byte [eax - 0x21], 0
mov eax, dword [ebp - 0x14]
call fcn.0040ae10
test al, al
je 0x4c55ec
cmp esi, 0xffffffff
je 0x4c55ec
mov eax, dword [ebp - 0x1c]
call fcn.0040ae10
test al, al
jne 0x4c55ec
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x44]
push edi
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x608]
mov edx, dword [ebp - 0x1c]
call fcn.0040505c
mov eax, dword [ebp - 0x608]
push eax
lea eax, [ebp - 0x60c]
mov edx, dword [ebp - 0x14]
call fcn.0040505c
mov eax, dword [ebp - 0x60c]
mov edx, dword [ebp - 0x2c]
pop ecx
call fcn.004b79a0
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp + 0xc]
mov byte [eax - 0x21], 0
mov eax, dword [ebp - 0x1c]
call fcn.0040ae10
test al, al
jne 0x4c5608
mov eax, dword [ebp - 0x14]
call fcn.0040ae10
test al, al
je 0x4c570e
test esi, esi
jne 0x4c570e
call fcn.00402e40
lea eax, [ebp - 0x610]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404a98
mov ecx, eax
sub ecx, 4
mov edx, 1
mov eax, dword [ebp - 0x14]
call fcn.00404cf8
push dword [ebp - 0x610]
mov eax, 0x2710
call fcn.004033ac
lea edx, [ebp - 0x614]
call fcn.0040a890
push dword [ebp - 0x614]
push 0x4c5974
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404b58
test bl, bl
jne 0x4c56b0
lea eax, [ebp - 0x618]
mov edx, dword [ebp - 0x18]
call fcn.0040505c
mov eax, dword [ebp - 0x618]
push eax
push edi
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x61c]
mov edx, dword [ebp - 0x1c]
call fcn.0040505c
mov ecx, dword [ebp - 0x61c]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 0x20]
mov eax, dword [eax + 0x845]
xor edx, edx
call fcn.004b8b24
jmp 0x4c56fc
lea eax, [ebp - 0x620]
mov edx, dword [ebp - 0x18]
call fcn.0040505c
mov eax, dword [ebp - 0x620]
push eax
push edi
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x624]
mov edx, dword [ebp - 0x1c]
call fcn.0040505c
mov eax, dword [ebp - 0x624]
push eax
lea eax, [ebp - 0x628]
mov edx, dword [ebp - 0x14]
call fcn.0040505c
mov eax, dword [ebp - 0x628]
mov edx, dword [ebp - 0x2c]
pop ecx
call fcn.004b7a90
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
call fcn.00404860
mov eax, dword [ebp + 0xc]
mov byte [eax - 0x21], 1
mov eax, dword [ebp - 0x1c]
call fcn.0040ae10
test al, al
je 0x4c5732
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
call fcn.0040481c
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
call fcn.0040481c
jmp 0x4c5742
mov eax, dword [ebp + 8]
call fcn.004047c8
mov eax, dword [ebp - 4]
call fcn.004047c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c57ec
lea eax, [ebp - 0x628]
mov edx, 5
call fcn.00404ed0
lea eax, [ebp - 0x614]
mov edx, 2
call fcn.004047ec
lea eax, [ebp - 0x60c]
mov edx, 2
call fcn.00404ed0
lea eax, [ebp - 0x604]
mov edx, 2
call fcn.004047ec
lea eax, [ebp - 0x5fc]
mov edx, 2
call fcn.00404ed0
lea eax, [ebp - 0x5f4]
mov edx, 0x1d
call fcn.004047ec
lea eax, [ebp - 0x34]
call fcn.004047c8
lea eax, [ebp - 0x2c]
call fcn.00404eb8
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.004047ec
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.004047ec
lea eax, [ebp - 8]
call fcn.004047c8
ret