Function at 0x4f3420
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539ee1
mov eax, dword fs:[0]
push eax
sub esp, 0x65c
mov eax, dword [0x59a0a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push str.http:__syzs.qq.com_downloads_xml_ConfigFileInfo.xml
lea ecx, [ebp - 0x660]
call fcn.00401ff0
mov dword [ebp - 4], 0
call fcn.00401980
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4f3483
push 0x80004005
call fcn.00401b40
mov eax, dword [edx]
mov esi, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4f3498
lock inc dword [edx + 0x14]
lea eax, [edx + 8]
jmp 0x4f349c
mov ecx, edx
call esi
add eax, 0x10
mov dword [ebp - 0x65c], eax
push 0x208
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.0049e130
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push dword [edi + 0x434]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4f34e0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x65c]
call fcn.00402d50
cmp dword [edi + 0x404], 0
je 0x4f3520
push 0x8a
push str.http:__test.upgrade.pcmgr.wsd.com_index.php_controlleremulatoractionWatchfileunzipfilepath_ceph_10476__syzs_test_ConfigFileInfo.xml
lea ecx, [ebp - 0x660]
call fcn.00402d50
lea eax, [ebp - 0x65c]
push eax
lea ecx, [edi + 0x480]
call fcn.00411620
lea eax, [ebp - 0x654]
mov dword [ebp - 0x654], 0xc
push eax
lea eax, [ebp - 0x650]
lea esi, [edi + 0x424]
push eax
mov ecx, esi
call fcn.0042be10
mov edx, dword [ebp - 0x650]
mov eax, dword [ebp - 0x660]
add edx, 0x84
mov dword [ebp - 0x64c], edx
mov ebx, dword [edx]
lea ecx, [eax - 0x10]
sub ebx, 0x10
mov dword [ebp - 0x664], ecx
cmp ecx, ebx
je 0x4f35bf
cmp dword [ebx + 0xc], 0
jl 0x4f35b4
mov ecx, dword [ecx]
cmp ecx, dword [ebx]
jne 0x4f35b4
mov ecx, dword [ebp - 0x664]
call fcn.004021e0
mov ecx, ebx
mov esi, eax
call fcn.00402e90
mov ecx, dword [ebp - 0x64c]
lea eax, [esi + 0x10]
lea esi, [edi + 0x424]
mov dword [ecx], eax
jmp 0x4f35bf
push dword [eax - 0xc]
mov ecx, edx
push eax
call fcn.00402d50
lea eax, [ebp - 0x64c]
mov dword [ebp - 0x64c], 0xc
push eax
lea eax, [ebp - 0x668]
mov ecx, esi
push eax
call fcn.0042be10
mov ecx, dword [ebp - 0x668]
mov eax, dword [ebp - 0x65c]
add ecx, 0x60
mov dword [ebp - 0x654], ecx
mov ebx, dword [ecx]
lea edx, [eax - 0x10]
sub ebx, 0x10
mov dword [ebp - 0x664], edx
cmp edx, ebx
je 0x4f3643
cmp dword [ebx + 0xc], 0
jl 0x4f363a
mov ecx, dword [edx]
cmp ecx, dword [ebx]
jne 0x4f3634
mov ecx, edx
call fcn.004021e0
mov ecx, ebx
mov esi, eax
call fcn.00402e90
mov ecx, dword [ebp - 0x654]
lea eax, [esi + 0x10]
lea esi, [edi + 0x424]
mov dword [ecx], eax
jmp 0x4f3643
mov ecx, dword [ebp - 0x654]
push dword [eax - 0xc]
push eax
call fcn.00402d50
cmp dword [edi + 0x420], 0
je 0x4f3c47
lea ecx, [ebp - 0x310]
call fcn.00428cc0
lea eax, [ebp - 0x64c]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x658]
mov dword [ebp - 0x64c], 0xc
push eax
mov ecx, esi
call fcn.0042be10
mov eax, dword [ebp - 0x658]
mov edx, dword [eax + 0x84]
cmp word [edx], 0
jne 0x4f3694
xor ecx, ecx
jmp 0x4f36af
mov ecx, edx
lea ebx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4f36a0
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x310]
call fcn.00405040
lea eax, [ebp - 0x64c]
mov dword [ebp - 0x64c], 0xc
push eax
lea eax, [ebp - 0x658]
mov ecx, esi
push eax
call fcn.0042be10
mov eax, dword [ebp - 0x658]
mov edx, dword [eax + 0x60]
cmp word [edx], 0
jne 0x4f36ee
xor ecx, ecx
jmp 0x4f3702
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4f36f3
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2f8]
call fcn.00405040
mov eax, dword [ebp - 0x270]
mov ecx, 1
cmp dword [edi + 0x404], 0
mov dword [ebp - 0x268], 0
cmovne eax, ecx
mov dword [ebp - 0x264], 0
mov dword [ebp - 0x270], eax
mov ecx, esi
lea eax, [ebp - 0x64c]
mov dword [ebp - 0x64c], 0xc
push eax
lea eax, [ebp - 0x658]
push eax
call fcn.0042be10
mov eax, dword [ebp - 0x658]
mov ecx, esi
inc dword [eax + 0x28]
lea eax, [ebp - 0x64c]
push eax
lea eax, [ebp - 0x658]
mov dword [ebp - 0x64c], 0xc
push eax
call fcn.0042be10
mov eax, dword [ebp - 0x658]
mov ecx, esi
mov dword [eax + 0x1c], 0
lea eax, [ebp - 0x64c]
push eax
lea eax, [ebp - 0x658]
mov dword [ebp - 0x64c], 0xc
push eax
call fcn.0042be10
mov esi, dword [ebp - 0x658]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x34], eax
lea ecx, [ebp - 0x390]
cmp dword [ebp - 0x2fc], 8
lea eax, [ebp - 0x310]
push 0
cmovae eax, dword [ebp - 0x310]
mov dword [ebp - 0x394], ecx
lea ecx, [ebp - 0x394]
push eax
mov dword [edi + 0x400], 0x6d
call fcn.0042ac40
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x394]
mov dword [ebp - 0x234], 0xf
mov dword [ebp - 0x238], 0
mov byte [ebp - 0x248], 0
cmp byte [edx], 0
jne 0x4f3826
xor ecx, ecx
jmp 0x4f3839
mov ecx, edx
lea esi, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4f3830
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x248]
call fcn.00406560
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x390]
mov eax, dword [ebp - 0x394]
cmp eax, ecx
je 0x4f3863
push eax
call fcn.004a51fb
add esp, 4
cmp dword [ebp - 0x2e4], 8
lea eax, [ebp - 0x2f8]
lea ecx, [ebp - 0x414]
cmovae eax, dword [ebp - 0x2f8]
push 0xfde9
mov dword [ebp - 0x418], ecx
lea ecx, [ebp - 0x418]
push eax
call fcn.0042ac40
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x418]
mov dword [ebp - 0x21c], 0xf
mov dword [ebp - 0x220], 0
mov byte [ebp - 0x230], 0
cmp byte [edx], 0
jne 0x4f38c2
xor ecx, ecx
jmp 0x4f38d0
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4f38c7
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x230]
call fcn.00406560
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x414]
mov eax, dword [ebp - 0x418]
cmp eax, ecx
je 0x4f38fa
push eax
call fcn.004a51fb
add esp, 4
cmp dword [ebp - 0x21c], 0x10
lea esi, [ebp - 0x230]
mov ecx, dword [edi + 0x420]
lea edx, [ebp - 0x248]
cmovae esi, dword [ebp - 0x230]
cmp dword [ebp - 0x234], 0x10
push 0
cmovae edx, dword [ebp - 0x248]
mov eax, dword [ecx]
push 0x553f6a
push dword [edi + 0x998]
push esi
push edx
call dword [eax + 8]
mov ebx, eax
test ebx, ebx
je 0x4f39c7
cmp ebx, 0xffffffff
je 0x4f39c7
cmp dword [ebp - 0x21c], 0x10
lea ecx, [ebp - 0x230]
lea eax, [ebp - 0x248]
cmovae ecx, dword [ebp - 0x230]
cmp dword [ebp - 0x234], 0x10
push ecx
cmovae eax, dword [ebp - 0x248]
push eax
push ebx
push str.GameDownload::CMainUI::DownloadEmulatorConfigXml
push 0x562e40
call fcn.004e78a0
push eax
call fcn.004e76a0
add esp, 0x18
mov dword [ebp - 0x64c], 0xc
lea eax, [ebp - 0x64c]
lea esi, [edi + 0x424]
mov ecx, esi
push eax
lea eax, [ebp - 0x658]
push eax
call fcn.0042be10
mov eax, dword [ebp - 0x658]
mov ecx, 0x59fc14
mov dword [eax + 0x24], ebx
mov eax, ebx
xchg dword [ecx], eax
jmp 0x4f3a0f
cmp dword [ebp - 0x21c], 0x10
lea ecx, [ebp - 0x230]
lea eax, [ebp - 0x248]
cmovae ecx, dword [ebp - 0x230]
cmp dword [ebp - 0x234], 0x10
push ecx
cmovae eax, dword [ebp - 0x248]
push eax
push 0x562da0
push 0x562d38
call fcn.004e78a0
push eax
call fcn.004e76a0
add esp, 0x14
lea esi, [edi + 0x424]
mov ecx, dword [edi + 0x420]
push ebx
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
je 0x4f3b8f
mov eax, dword [edi]
mov ecx, edi
push 0
push 0
call dword [eax + 0xb8]
lea ecx, [ebp - 0x648]
call fcn.00429390
mov byte [ebp - 4], 9
mov eax, dword [edi + 0x490]
mov dword [ebp - 0x5b0], eax
mov eax, dword [0x59fadc]
mov dword [ebp - 0x530], eax
mov eax, dword [edi + 0x494]
mov dword [ebp - 0x52c], eax
mov eax, dword [edi + 0x498]
mov dword [ebp - 0x528], eax
mov eax, dword [0x59fae0]
mov dword [ebp - 0x518], eax
mov eax, dword [edi + 0x4a0]
mov dword [ebp - 0x514], eax
lea eax, [edi + 0x4c0]
push eax
mov dword [ebp - 0x648], 0x64
mov dword [ebp - 0x640], 0xc
mov dword [ebp - 0x5bc], 0xc
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [ebp - 0x510], eax
mov eax, dword [edi + 0x478]
test eax, eax
jne 0x4f3ac5
xor edx, edx
jmp 0x4f3b09
mov ecx, eax
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4f3ad0
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 1]
cmp esi, 0x3fffffff
jle 0x4f3aee
xor edx, edx
jmp 0x4f3b09
add esi, esi
mov eax, esi
call fcn.0049bc00
mov edx, dword [edi + 0x478]
mov ecx, esp
push 3
push esi
call fcn.0042d380
mov edx, eax
cmp byte [edx], 0
jne 0x4f3b12
xor ecx, ecx
jmp 0x4f3b20
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4f3b17
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x5a8]
call fcn.00406560
push ecx
lea eax, [ebp - 0x648]
push eax
call fcn.0044c609
mov ecx, eax
call fcn.0042af00
lea ecx, [ebp - 0x648]
mov byte [ebp - 4], 8
call fcn.0042a2e0
push dword [edi + 0x400]
mov eax, dword [edi]
mov ecx, edi
push 2
call dword [eax + 0x1c]
cmp dword [ebp - 0x2e4], 8
lea eax, [ebp - 0x2f8]
cmovae eax, dword [ebp - 0x2f8]
push eax
push ebx
push 0x562f20
push 0x562e04
call fcn.004e78a0
push eax
call fcn.004e76a0
add esp, 0x14
jmp 0x4f3bca
lea eax, [ebp - 0x64c]
mov dword [ebp - 0x64c], 0xc
push eax
lea eax, [ebp - 0x658]
mov ecx, esi
push eax
call fcn.0042be10
mov eax, dword [ebp - 0x658]
mov ecx, edi
mov edx, dword [edi]
mov eax, dword [eax + 0x40]
push eax
push 0xc
mov dword [edi + 0x400], eax
call dword [edx + 0x88]
mov eax, dword [ebp - 0x21c]
cmp eax, 0x10
jb 0x4f3be8
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00405350
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x21c], 0xf
mov dword [ebp - 0x220], 0
mov byte [ebp - 0x230], 0
cmp eax, 0x10
jb 0x4f3c21
inc eax
lea ecx, [ebp - 0x248]
push eax
push dword [ebp - 0x248]
call fcn.00405350
lea ecx, [ebp - 0x310]
mov dword [ebp - 0x234], 0xf
mov dword [ebp - 0x238], 0
mov byte [ebp - 0x248], 0
call fcn.0042a1a0
or esi, 0xffffffff
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x664]
mov eax, esi
lock xadd dword [ecx + 0xc], eax
dec eax
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
jg 0x4f3c85
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4f3c81
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call edi
jmp 0x4f3c85
mov ecx, edx
call ebx
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x660]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], esi
dec esi
test esi, esi
jg 0x4f3cbe
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4f3cba
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call edi
jmp 0x4f3cbe
mov ecx, edx
call esi
lea esp, [ebp - 0x678]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049aa22
mov esp, ebp
pop ebp
ret