Function at 0x530620
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53e7ec
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x59a0a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0049e130
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push dword [edi + 0x3f4]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x530965
lea ecx, [ebp - 0x218]
lea esi, [edi + 0x3f8]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x530693
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00402d50
inc dword [edi + 0x3fc]
lea ecx, [edi + 0x528]
push esi
call fcn.00411620
lea ecx, [ebp - 0x310]
call fcn.00428cc0
push 0x2e
push str.http:__syzs.qq.com_downloads_xml_compoment.xml
mov dword [ebp - 4], 0
call fcn.00405040
cmp dword [edi + 0x534], 0
je 0x5306ff
push 0x85
push str.http:__test.upgrade.pcmgr.wsd.com_index.php_controlleremulatoractionWatchfileunzipfilepath_ceph_10476__syzs_test_compoment.xml
lea ecx, [ebp - 0x310]
call fcn.00405040
cmp word [ebp - 0x218], 0
jne 0x53070d
xor ecx, ecx
jmp 0x530725
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x530716
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2f8]
call fcn.00405040
cmp dword [edi + 0x534], 0
mov ecx, 1
mov eax, dword [ebp - 0x270]
cmovne eax, ecx
mov dword [ebp - 0x268], 0
cmp dword [ebp - 0x2fc], 8
lea ecx, [ebp - 0x394]
mov dword [ebp - 0x270], eax
lea eax, [ebp - 0x310]
cmovae eax, dword [ebp - 0x310]
push 0
mov dword [ebp - 0x398], ecx
lea ecx, [ebp - 0x398]
push eax
mov dword [ebp - 0x264], 0
call fcn.0042ac40
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x398]
mov dword [ebp - 0x234], 0xf
mov dword [ebp - 0x238], 0
mov byte [ebp - 0x248], 0
cmp byte [edx], 0
jne 0x5307c3
xor ecx, ecx
jmp 0x5307d1
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5307c8
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x248]
call fcn.00406560
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x394]
mov eax, dword [ebp - 0x398]
cmp eax, ecx
je 0x5307fb
push eax
call fcn.004a51fb
add esp, 4
cmp dword [ebp - 0x2e4], 8
lea eax, [ebp - 0x2f8]
lea ecx, [ebp - 0x41c]
cmovae eax, dword [ebp - 0x2f8]
push 0
mov dword [ebp - 0x420], ecx
lea ecx, [ebp - 0x420]
push eax
call fcn.0042ac40
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x420]
mov dword [ebp - 0x21c], 0xf
mov dword [ebp - 0x220], 0
mov byte [ebp - 0x230], 0
cmp byte [edx], 0
jne 0x530857
xor ecx, ecx
jmp 0x530869
mov ecx, edx
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x530860
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x230]
call fcn.00406560
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x41c]
mov eax, dword [ebp - 0x420]
cmp eax, ecx
je 0x530893
push eax
call fcn.004a51fb
add esp, 4
cmp dword [ebp - 0x21c], 0x10
lea esi, [ebp - 0x230]
mov ecx, dword [edi + 0x3ec]
lea edx, [ebp - 0x248]
cmovae esi, dword [ebp - 0x230]
cmp dword [ebp - 0x234], 0x10
push esi
cmovae edx, dword [ebp - 0x248]
mov eax, dword [ecx]
push edx
call dword [eax + 0xc]
mov edx, eax
test edx, edx
je 0x5308dc
cmp edx, 0xffffffff
je 0x5308dc
mov ecx, edx
mov eax, 0x59fc14
xchg dword [eax], ecx
mov ecx, dword [edi + 0x3ec]
push edx
mov eax, dword [ecx]
call dword [eax + 0x10]
mov eax, dword [ebp - 0x21c]
cmp eax, 0x10
jb 0x530906
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 0x53093f
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
mov dword [edi + 0x524], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049aa22
mov esp, ebp
pop ebp
ret