Function at 0x490d63
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50568e
mov eax, dword fs:[0]
push eax
sub esp, 0x378
mov eax, dword [0x5466b0]
xor eax, esp
mov dword [esp + 0x370], eax
push ebx
push esi
push edi
mov eax, dword [0x5466b0]
xor eax, esp
push eax
lea eax, [esp + 0x388]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
xor edi, edi
inc edi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x28], edx
mov dword [esp + 0x30], edi
cmp eax, edi
jne 0x490faf
cmp dword [ebp + 0x10], edi
jb 0x491701
test esi, esi
je 0x491701
push 0x54cfe0
push 0x10
call fcn.004cba2a
pop ecx
mov edi, eax
pop ecx
mov dword [esp + 0x2c], edi
and dword [esp + 0x390], 0
test edi, edi
je 0x490e07
and dword [edi], 0
mov ebx, 0x514d70
call fcn.0040c040
jmp 0x490e09
xor edi, edi
or dword [esp + 0x390], 0xffffffff
push edi
mov edi, dword [esp + 0x2c]
mov ecx, edi
call fcn.0040ed50
xor ebx, ebx
cmp dword [edi + 4], ebx
je 0x491701
mov ecx, dword [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.00417170
mov dword [esp + 0x390], 1
mov eax, dword [esp + 0x1c]
cmp dword [eax - 0xc], ebx
je 0x490fa1
lea ecx, [esp + 0x10]
call fcn.00408850
cmp dword [ebp + 0x10], 2
mov byte [esp + 0x390], 2
jb 0x490e71
mov ebx, dword [esi + 4]
lea eax, [esp + 0x10]
call fcn.0040beb0
jmp 0x490ec8
push 0x208
lea eax, [esp + 0x178]
push ebx
push eax
call fcn.004d7710
add esp, 0xc
lea eax, [esp + 0x174]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edi, [esp + 0x10]
call fcn.00429bb0
push eax
push 0
push str.objnet
lea eax, [esp + 0x180]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
or eax, 0xffffffff
mov esi, edi
call fcn.004080c0
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
cmp dword [edi - 0xc], 0
je 0x490f98
cmp dword [ebp + 0x10], 3
push 2
pop ebx
jb 0x490eed
mov esi, dword [esi + 8]
call fcn.004312d0
mov esi, dword [esp + 0x18]
mov ebx, eax
cmp dword [ebp + 0x10], 4
jb 0x490efb
mov esi, dword [esi + 0xc]
call fcn.004312d0
lea eax, [esp + 0x58]
push 3
push dword [esp + 0x20]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x5c]
call fcn.004180d0
mov byte [esp + 0x390], 3
cmp dword [esp + 0x54], 0
je 0x490f31
push edi
push dword [esp + 0x58]
call fcn.00475f6f
pop ecx
pop ecx
mov esi, eax
jmp 0x490f33
xor esi, esi
lea eax, [esp + 0x58]
mov byte [esp + 0x390], 2
cmp dword [esp + 0x54], eax
je 0x490f4f
push dword [esp + 0x54]
call fcn.004cc15e
pop ecx
test esi, esi
jne 0x490f58
dec ebx
jne 0x490efb
jmp 0x490f98
lea eax, [esp + 0x58]
push 3
mov dword [esp + 0x58], eax
push edi
lea eax, [esp + 0x5c]
call fcn.00418470
mov eax, dword [esp + 0x28]
mov byte [esp + 0x390], 4
mov ebx, dword [esp + 0x54]
mov eax, dword [eax + 4]
call fcn.0040c040
lea eax, [esp + 0x58]
cmp dword [esp + 0x54], eax
je 0x490f98
push dword [esp + 0x54]
call fcn.004cc15e
pop ecx
lea ecx, [esp + 0x10]
call fcn.004087f0
lea eax, [esp + 0x1c]
call fcn.0042afc0
jmp 0x491701
cmp eax, 3
jne 0x491209
push 0x54cfe0
push 0x10
mov dword [esp + 0x398], 5
call fcn.004cba2a
pop ecx
pop ecx
xor ecx, ecx
cmp eax, ecx
je 0x490fe8
mov dword [eax], vtable.varstream.0
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
jmp 0x490fea
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
cmp eax, ecx
je 0x4911e9
mov ebx, dword [ebp + 0x10]
cmp ebx, edi
jb 0x4911b7
test esi, esi
je 0x4911b7
mov ecx, dword [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.00417170
mov byte [esp + 0x390], 6
mov eax, dword [esp + 0x1c]
cmp dword [eax - 0xc], 0
je 0x4911a6
push 0x514d70
lea ecx, [esp + 0x15c]
call fcn.00401110
push 2
pop edi
mov byte [esp + 0x390], 7
cmp ebx, edi
jb 0x49105d
mov esi, dword [esi + 4]
call fcn.004312d0
mov esi, dword [esp + 0x18]
mov edi, eax
cmp ebx, 3
jb 0x491071
push dword [esi + 8]
lea ecx, [esp + 0x15c]
call fcn.00401150
cmp ebx, 4
jb 0x49107e
mov esi, dword [esi + 0xc]
call fcn.004312d0
lea eax, [esp + 0x3c]
push eax
call fcn.00417860
mov byte [esp + 0x390], 8
cmp dword [esp + 0x170], 0x10
mov eax, dword [esp + 0x15c]
jae 0x4910a8
lea eax, [esp + 0x15c]
push 3
lea ecx, [esp + 0x17c]
push eax
lea eax, [esp + 0x17c]
mov dword [esp + 0x17c], ecx
call fcn.004180d0
mov byte [esp + 0x390], 9
lea eax, [esp + 0x58]
push 3
push dword [esp + 0x20]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x5c]
call fcn.004180d0
mov byte [esp + 0x390], 0xa
cmp dword [esp + 0x54], 0
jne 0x4910f7
xor esi, esi
jmp 0x491111
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x178]
push dword [esp + 0x5c]
call fcn.00476055
add esp, 0xc
mov esi, eax
lea eax, [esp + 0x58]
cmp dword [esp + 0x54], eax
je 0x491125
push dword [esp + 0x54]
call fcn.004cc15e
pop ecx
lea eax, [esp + 0x178]
cmp dword [esp + 0x174], eax
je 0x491142
push dword [esp + 0x174]
call fcn.004cc15e
pop ecx
test esi, esi
jne 0x491162
lea esi, [esp + 0x3c]
dec edi
mov byte [esp + 0x390], 7
call fcn.00417930
test edi, edi
jne 0x49107e
jmp 0x49119a
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x48]
je 0x491191
mov ecx, dword [esp + 0x10]
call fcn.0047a801
mov edi, dword [esp + 0x4c]
sub edi, dword [esp + 0x48]
jne 0x491184
call fcn.004cb4f7
push dword [esp + 0x48]
mov eax, dword [esp + 0x14]
call fcn.0047a901
lea esi, [esp + 0x3c]
call fcn.00417930
lea ecx, [esp + 0x158]
call fcn.004018a0
lea eax, [esp + 0x1c]
mov byte [esp + 0x390], 5
call fcn.0042afc0
push 0x54cfe0
push 0x10
call fcn.004cba2a
pop ecx
pop ecx
test eax, eax
je 0x4911dd
mov ecx, dword [esp + 0x10]
and dword [esp + 0x14], 0
mov dword [eax + 8], ecx
mov dword [eax], 6
jmp 0x4911df
xor eax, eax
mov ecx, dword [esp + 0x28]
push eax
call fcn.0040ed50
or dword [esp + 0x390], 0xffffffff
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x491701
mov eax, dword [ecx]
push 1
call dword [eax + 8]
jmp 0x491701
cmp eax, 4
jne 0x4914b8
and dword [esp + 0x14], 0
cmp dword [ebp + 0x10], edi
jb 0x491492
test esi, esi
je 0x491492
mov ecx, dword [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.00417170
mov dword [esp + 0x390], 0xb
mov eax, dword [esp + 0x1c]
cmp dword [eax - 0xc], 0
je 0x491489
lea ecx, [esp + 0x10]
call fcn.00408850
cmp dword [ebp + 0x10], 3
mov byte [esp + 0x390], 0xc
jb 0x491272
mov ebx, dword [esi + 8]
lea eax, [esp + 0x10]
call fcn.0040beb0
jmp 0x4912ca
push 0x208
lea eax, [esp + 0x178]
push 0
push eax
call fcn.004d7710
add esp, 0xc
lea eax, [esp + 0x174]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edi, [esp + 0x10]
call fcn.00429bb0
push eax
push 0
push str.objnet
lea eax, [esp + 0x180]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
or eax, 0xffffffff
mov esi, edi
call fcn.004080c0
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
cmp dword [eax - 0xc], 0
je 0x491480
push 0x54cfe0
push 8
call fcn.004cba2a
pop ecx
pop ecx
mov dword [esp + 0x18], eax
mov byte [esp + 0x390], 0xd
test eax, eax
je 0x4912ff
mov edi, eax
call fcn.00475cf6
jmp 0x491301
xor eax, eax
push eax
lea eax, [esp + 0x38]
mov byte [esp + 0x394], 0xc
xor edi, edi
push eax
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
call fcn.0047652b
mov byte [esp + 0x390], 0xe
mov ebx, dword [esp + 0x34]
cmp ebx, edi
je 0x49146b
lea eax, [esp + 0x178]
push 3
push dword [esp + 0x20]
mov dword [esp + 0x17c], eax
lea eax, [esp + 0x17c]
call fcn.004180d0
lea eax, [esp + 0x18]
mov byte [esp + 0x390], 0xf
mov ecx, dword [esp + 0x174]
push eax
call fcn.004085e0
lea eax, [esp + 0x178]
mov byte [esp + 0x390], 0x11
cmp dword [esp + 0x174], eax
je 0x491390
push dword [esp + 0x174]
call fcn.004cc15e
pop ecx
push ebx
lea eax, [esp + 0x1c]
call fcn.00475d4f
call fcn.004a4e24
test eax, eax
je 0x4913bb
push ecx
mov eax, esp
mov dword [esp + 0x18], esp
push eax
mov ecx, 0x514b40
call fcn.004085e0
push ebx
call fcn.00475e2b
cmp dword [ebp + 0x10], 2
mov dword [esp + 0x14], edi
jb 0x4913fc
push 0x54cfe0
push 4
call fcn.004cba2a
pop ecx
pop ecx
mov dword [esp + 0x14], eax
mov byte [esp + 0x390], 0x12
cmp eax, edi
je 0x4913ee
mov ecx, dword [esi + 4]
push eax
call fcn.00417170
jmp 0x4913f0
xor eax, eax
mov byte [esp + 0x390], 0x11
mov dword [esp + 0x14], eax
cmp dword [ebp + 0x10], 3
jb 0x49140d
mov esi, dword [esi + 8]
call fcn.004312d0
push eax
jmp 0x491412
push 0x1388
mov eax, ebx
call fcn.00490192
push ecx
push ecx
mov edi, esp
mov dword [esp + 0x2c], esp
xor esi, esi
push ebx
mov ebx, dword [esp + 0x44]
mov dword [edi], esi
mov dword [edi + 4], esi
call fcn.004763af
mov byte [esp + 0x398], 0x13
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 0xc]
push esi
push dword [esp + 0x20]
push eax
push dword [esp + 0x24]
call fcn.004a50d8
push eax
mov byte [esp + 0x3ac], 0x11
call fcn.004a523a
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], eax
call fcn.004087f0
mov byte [esp + 0x390], 0xc
mov esi, dword [esp + 0x38]
test esi, esi
je 0x491480
call fcn.0040bfa0
lea ecx, [esp + 0x10]
call fcn.004087f0
lea eax, [esp + 0x1c]
call fcn.0042afc0
push 0x54cfe0
push 0x10
call fcn.004cba2a
pop ecx
pop ecx
mov ecx, eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x390], 0x14
test ecx, ecx
jmp 0x4916cf
cmp eax, 5
jne 0x4916f2
xor ebx, ebx
cmp dword [ebp + 0x10], 1
mov dword [esp + 0x14], ebx
jb 0x4916ae
cmp esi, ebx
je 0x4916ae
mov ecx, dword [esi]
lea eax, [esp + 0x18]
push eax
call fcn.00417170
mov dword [esp + 0x390], 0x15
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], ebx
je 0x4916a5
push 0x54cfe0
push 8
call fcn.004cba2a
pop ecx
pop ecx
mov dword [esp + 0x24], eax
mov byte [esp + 0x390], 0x16
cmp eax, ebx
je 0x491524
mov edi, eax
call fcn.00475cf6
jmp 0x491526
xor eax, eax
push eax
lea eax, [esp + 0x20]
mov byte [esp + 0x394], 0x15
push eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call fcn.0047652b
mov byte [esp + 0x390], 0x17
mov edi, dword [esp + 0x1c]
cmp edi, ebx
je 0x491690
lea eax, [esp + 0x178]
push 3
push dword [esp + 0x1c]
mov dword [esp + 0x17c], eax
lea eax, [esp + 0x17c]
call fcn.004180d0
lea eax, [esp + 0x10]
mov byte [esp + 0x390], 0x18
mov ecx, dword [esp + 0x174]
push eax
call fcn.004085e0
lea eax, [esp + 0x178]
mov byte [esp + 0x390], 0x1a
cmp dword [esp + 0x174], eax
je 0x4915b3
push dword [esp + 0x174]
call fcn.004cc15e
pop ecx
push edi
lea eax, [esp + 0x14]
call fcn.00475d4f
call fcn.004a4e24
test eax, eax
je 0x4915de
push ecx
mov eax, esp
mov dword [esp + 0x28], esp
push eax
mov ecx, 0x514b40
call fcn.004085e0
push edi
call fcn.00475e2b
cmp dword [ebp + 0x10], 2
mov dword [esp + 0x14], ebx
jb 0x49161f
push 0x54cfe0
push 4
call fcn.004cba2a
pop ecx
pop ecx
mov dword [esp + 0x24], eax
mov byte [esp + 0x390], 0x1b
cmp eax, ebx
je 0x491611
mov ecx, dword [esi + 4]
push eax
call fcn.00417170
jmp 0x491613
xor eax, eax
mov byte [esp + 0x390], 0x1a
mov dword [esp + 0x14], eax
cmp dword [ebp + 0x10], 3
jb 0x491630
mov esi, dword [esi + 8]
call fcn.004312d0
push eax
jmp 0x491635
push 0x1388
mov eax, edi
call fcn.00490192
push ecx
push ecx
mov edi, esp
mov dword [esp + 0x2c], esp
push dword [esp + 0x24]
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov ebx, dword [esp + 0x2c]
call fcn.004763af
mov byte [esp + 0x398], 0x1c
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 0xc]
push 0
push dword [esp + 0x20]
push eax
push ecx
call fcn.004a50d8
pop ecx
push eax
mov byte [esp + 0x3a8], 0x1a
call fcn.004a5326
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], eax
call fcn.004087f0
xor ebx, ebx
mov byte [esp + 0x390], 0x15
mov esi, dword [esp + 0x20]
cmp esi, ebx
je 0x4916a5
call fcn.0040bfa0
lea eax, [esp + 0x18]
call fcn.0042afc0
push 0x54cfe0
push 0x10
call fcn.004cba2a
pop ecx
pop ecx
mov ecx, eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x390], 0x1d
cmp ecx, ebx
je 0x4916dc
mov eax, dword [esp + 0x14]
call fcn.0041a730
jmp 0x4916de
xor eax, eax
mov ecx, dword [esp + 0x28]
or dword [esp + 0x390], 0xffffffff
push eax
call fcn.0040ed50
jmp 0x491701
push edx
push dword [ebp + 0x10]
push esi
push eax
call fcn.00466419
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x388]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x370]
xor ecx, esp
call fcn.004cb38b
mov esp, ebp
pop ebp
ret 0x10