Function at 0x4f2400
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539df7
mov eax, dword fs:[0]
push eax
sub esp, 0x69c
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
call fcn.00401980
xor edx, edx
mov ecx, eax
test ecx, ecx
setne dl
test edx, edx
jne 0x4f244c
push 0x80004005
call fcn.00401b40
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4f2461
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x4f2463
call edx
add eax, 0x10
mov dword [ebp - 0x6a0], eax
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
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 dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4f24b0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x6a0]
call fcn.00402d50
lea eax, [ebp - 0x6a0]
push eax
lea ecx, [edi + 0x480]
call fcn.00411620
lea eax, [ebp - 0x69c]
mov dword [ebp - 0x69c], 0xd
push eax
lea eax, [ebp - 0x6a8]
lea ecx, [edi + 0x424]
push eax
call fcn.0042be10
mov esi, dword [ebp - 0x6a8]
mov eax, dword [ebp - 0x6a0]
add esi, 0x60
mov dword [ebp - 0x68c], esi
mov ebx, dword [esi]
lea ecx, [eax - 0x10]
sub ebx, 0x10
mov dword [ebp - 0x6a4], ecx
cmp ecx, ebx
je 0x4f2560
cmp dword [ebx + 0xc], 0
jl 0x4f2555
mov edx, dword [ecx]
cmp edx, dword [ebx]
jne 0x4f2555
call fcn.004021e0
mov ecx, ebx
mov esi, eax
call fcn.00402e90
mov ecx, dword [ebp - 0x68c]
lea eax, [esi + 0x10]
mov dword [ecx], eax
jmp 0x4f2560
push dword [eax - 0xc]
mov ecx, esi
push eax
call fcn.00402d50
lea eax, [ebp - 0x68c]
mov dword [ebp - 0x68c], 0xd
push eax
lea eax, [ebp - 0x698]
lea ebx, [edi + 0x424]
push eax
mov ecx, ebx
call fcn.0042be10
mov eax, dword [ebp - 0x698]
mov eax, dword [eax + 0x84]
cmp dword [eax - 0xc], 0
je 0x4f2d70
cmp dword [edi + 0x420], 0
je 0x4f2d70
lea ecx, [ebp - 0x310]
call fcn.00428cc0
lea eax, [ebp - 0x68c]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x698]
mov dword [ebp - 0x68c], 0xd
push eax
mov ecx, ebx
call fcn.0042be10
mov eax, dword [ebp - 0x698]
mov edx, dword [eax + 0x84]
cmp word [edx], 0
jne 0x4f25ec
xor ecx, ecx
jmp 0x4f2600
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4f25f1
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x310]
call fcn.00405040
lea eax, [ebp - 0x68c]
mov dword [ebp - 0x68c], 0xd
push eax
lea eax, [ebp - 0x698]
mov ecx, ebx
push eax
call fcn.0042be10
mov eax, dword [ebp - 0x698]
mov edx, dword [eax + 0x60]
cmp word [edx], 0
jne 0x4f263f
xor ecx, ecx
jmp 0x4f2653
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4f2644
sub ecx, esi
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, ebx
lea eax, [ebp - 0x68c]
mov dword [ebp - 0x68c], 0xd
push eax
lea eax, [ebp - 0x698]
push eax
call fcn.0042be10
mov eax, dword [ebp - 0x698]
mov ecx, ebx
inc dword [eax + 0x28]
lea eax, [ebp - 0x68c]
push eax
lea eax, [ebp - 0x698]
mov dword [ebp - 0x68c], 0xd
push eax
call fcn.0042be10
mov eax, dword [ebp - 0x698]
mov ecx, ebx
mov dword [eax + 0x1c], 0
lea eax, [ebp - 0x68c]
push eax
lea eax, [ebp - 0x698]
mov dword [ebp - 0x68c], 0xd
push eax
call fcn.0042be10
mov esi, dword [ebp - 0x698]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x34], eax
lea ecx, [ebp - 0x394]
cmp dword [ebp - 0x2fc], 8
lea eax, [ebp - 0x310]
push 0
cmovae eax, dword [ebp - 0x310]
mov dword [ebp - 0x398], ecx
lea ecx, [ebp - 0x398]
push eax
mov dword [edi + 0x400], 0x6e
call fcn.0042ac40
mov byte [ebp - 4], 2
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 0x4f2777
xor ecx, ecx
jmp 0x4f2789
mov ecx, edx
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4f2780
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x248]
call fcn.00406560
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x394]
mov eax, dword [ebp - 0x398]
cmp eax, ecx
je 0x4f27b3
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 0xfde9
mov dword [ebp - 0x420], ecx
lea ecx, [ebp - 0x420]
push eax
call fcn.0042ac40
mov byte [ebp - 4], 5
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 0x4f2812
xor ecx, ecx
jmp 0x4f2820
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4f2817
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x230]
call fcn.00406560
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x41c]
mov eax, dword [ebp - 0x420]
cmp eax, ecx
je 0x4f284a
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 0x553f6b
push dword [edi + 0x998]
push esi
push edx
call dword [eax + 8]
mov ebx, eax
test ebx, ebx
je 0x4f2980
cmp ebx, 0xffffffff
je 0x4f2980
cmp dword [ebp - 0x21c], 0x10
lea esi, [ebp - 0x230]
lea eax, [ebp - 0x248]
cmovae esi, dword [ebp - 0x230]
cmp dword [ebp - 0x234], 0x10
cmovae eax, dword [ebp - 0x248]
mov dword [ebp - 0x68c], eax
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
lea ecx, [eax + 4]
mov eax, dword [0x59fee8]
mov dword [ebp - 0x69c], ecx
cmp eax, dword [ecx]
jle 0x4f2927
push 0x59fee8
call fcn.0049af28
add esp, 4
cmp dword [0x59fee8], 0xffffffff
jne 0x4f2927
mov byte [ebp - 4], 9
call fcn.004e7150
push 0x53eaa0
call fcn.0049b282
add esp, 4
mov byte [ebp - 4], 7
push 0x59fee8
call fcn.0049aee9
add esp, 4
push esi
push dword [ebp - 0x68c]
push ebx
push 0x5631e0
push 0x563170
push 0x59feec
call fcn.004e76a0
add esp, 0x18
mov dword [ebp - 0x68c], 0xd
lea eax, [ebp - 0x68c]
lea ecx, [edi + 0x424]
push eax
lea eax, [ebp - 0x698]
push eax
call fcn.0042be10
mov eax, dword [ebp - 0x698]
mov ecx, 0x59fc14
mov dword [eax + 0x24], ebx
mov eax, ebx
xchg dword [ecx], eax
jmp 0x4f2a26
cmp dword [ebp - 0x21c], 0x10
lea esi, [ebp - 0x230]
lea eax, [ebp - 0x248]
cmovae esi, dword [ebp - 0x230]
cmp dword [ebp - 0x234], 0x10
cmovae eax, dword [ebp - 0x248]
mov dword [ebp - 0x68c], eax
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
lea ecx, [eax + 4]
mov eax, dword [0x59fee8]
mov dword [ebp - 0x69c], ecx
cmp eax, dword [ecx]
jle 0x4f2a08
push 0x59fee8
call fcn.0049af28
add esp, 4
cmp dword [0x59fee8], 0xffffffff
jne 0x4f2a08
mov byte [ebp - 4], 8
call fcn.004e7150
push 0x53eaa0
call fcn.0049b282
add esp, 4
mov byte [ebp - 4], 7
push 0x59fee8
call fcn.0049aee9
add esp, 4
push esi
push dword [ebp - 0x68c]
push 0x563110
push 0x5630a8
push 0x59feec
call fcn.004e76a0
add esp, 0x14
mov ecx, dword [edi + 0x420]
push ebx
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
je 0x4f2c16
mov eax, dword [edi]
mov ecx, edi
push 0
push 0
call dword [eax + 0xb8]
lea ecx, [ebp - 0x688]
call fcn.00429390
mov byte [ebp - 4], 0xa
mov eax, dword [edi + 0x490]
mov dword [ebp - 0x5f0], eax
mov eax, dword [0x59fadc]
mov dword [ebp - 0x570], eax
mov eax, dword [edi + 0x494]
mov dword [ebp - 0x56c], eax
mov eax, dword [edi + 0x498]
mov dword [ebp - 0x568], eax
mov eax, dword [0x59fae0]
mov dword [ebp - 0x558], eax
mov eax, dword [edi + 0x4a0]
mov dword [ebp - 0x554], eax
lea eax, [edi + 0x4c0]
push eax
mov dword [ebp - 0x688], 0x64
mov dword [ebp - 0x680], 0xc
mov dword [ebp - 0x5fc], 0xd
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [ebp - 0x550], eax
mov eax, dword [edi + 0x478]
mov dword [ebp - 0x694], eax
test eax, eax
je 0x4f2b38
mov ecx, eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4f2ae3
sub ecx, edx
sar ecx, 1
inc ecx
cmp ecx, 0x3fffffff
jg 0x4f2b38
lea eax, [ecx + ecx]
mov dword [ebp - 0x68c], eax
call fcn.0049bc00
mov esi, esp
test esi, esi
je 0x4f2b38
push 0
push 0
push dword [ebp - 0x68c]
mov byte [esi], 0
push esi
push 0xffffffffffffffff
push dword [ebp - 0x694]
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor ecx, ecx
test eax, eax
cmove esi, ecx
jmp 0x4f2b3a
xor esi, esi
cmp byte [esi], 0
jne 0x4f2b43
xor ecx, ecx
jmp 0x4f2b51
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4f2b48
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x5e8]
call fcn.00406560
push ecx
lea eax, [ebp - 0x688]
push eax
call fcn.0044c609
mov ecx, eax
call fcn.0042af00
lea ecx, [ebp - 0x688]
mov byte [ebp - 4], 7
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 esi, [ebp - 0x2f8]
mov ecx, dword [ebp - 0x69c]
cmovae esi, dword [ebp - 0x2f8]
mov eax, dword [0x59fee8]
cmp eax, dword [ecx]
jle 0x4f2bf0
push 0x59fee8
call fcn.0049af28
add esp, 4
cmp dword [0x59fee8], 0xffffffff
jne 0x4f2bf0
mov byte [ebp - 4], 0xb
call fcn.004e7150
push 0x53eaa0
call fcn.0049b282
add esp, 4
mov byte [ebp - 4], 7
push 0x59fee8
call fcn.0049aee9
add esp, 4
push esi
push ebx
push 0x563240
push 0x562fcc
push 0x59feec
call fcn.004e76a0
add esp, 0x14
lea ebx, [edi + 0x424]
mov esi, 1
jmp 0x4f2c59
lea eax, [ebp - 0x694]
mov dword [ebp - 0x694], 0xd
push eax
lea eax, [ebp - 0x690]
lea ebx, [edi + 0x424]
push eax
mov ecx, ebx
call fcn.0042be10
mov eax, dword [ebp - 0x690]
mov ecx, edi
mov edx, dword [edi]
mov eax, dword [eax + 0x40]
push eax
push 0xd
mov dword [edi + 0x400], eax
call dword [edx + 0x88]
xor esi, esi
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x21c]
cmp eax, 0x10
jb 0x4f2cbe
lea ecx, [eax + 1]
mov eax, dword [ebp - 0x230]
cmp ecx, 0xffffffff
jbe 0x4f2c7b
call fcn.004a4e3e
cmp ecx, 0x1000
jb 0x4f2cb5
test byte [ebp - 0x230], 0x1f
je 0x4f2c91
call fcn.004a4e3e
mov ecx, dword [eax - 4]
cmp ecx, eax
jb 0x4f2c9d
call fcn.004a4e3e
sub eax, ecx
cmp eax, 4
jae 0x4f2ca9
call fcn.004a4e3e
cmp eax, 0x23
jbe 0x4f2cb3
call fcn.004a4e3e
mov eax, ecx
push eax
call fcn.0049aa1d
add esp, 4
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x21c], 0xf
mov dword [ebp - 0x220], 0
mov byte [ebp - 0x230], 0
cmp eax, 0x10
jb 0x4f2d3e
lea ecx, [eax + 1]
mov eax, dword [ebp - 0x248]
cmp ecx, 0xffffffff
jbe 0x4f2cfb
call fcn.004a4e3e
cmp ecx, 0x1000
jb 0x4f2d35
test byte [ebp - 0x248], 0x1f
je 0x4f2d11
call fcn.004a4e3e
mov ecx, dword [eax - 4]
cmp ecx, eax
jb 0x4f2d1d
call fcn.004a4e3e
sub eax, ecx
cmp eax, 4
jae 0x4f2d29
call fcn.004a4e3e
cmp eax, 0x23
jbe 0x4f2d33
call fcn.004a4e3e
mov eax, ecx
push eax
call fcn.0049aa1d
add esp, 4
lea ecx, [ebp - 0x310]
mov dword [ebp - 0x234], 0xf
mov dword [ebp - 0x238], 0
mov byte [ebp - 0x248], 0
mov byte [ebp - 4], 0
call fcn.0042a1a0
test esi, esi
jne 0x4f2de2
push 0x142
push 0x5632d0
push str.GameDownload::CMainUI::DownloadAowGameConfigXml
lea ecx, [ebp - 0x454]
mov dword [ebp - 0x694], 0xd
call fcn.00428d70
mov esi, eax
lea eax, [ebp - 0x694]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x690]
mov ecx, ebx
push eax
call fcn.0042be10
mov ecx, dword [ebp - 0x690]
push dword [ecx + 0x104]
push dword [ecx + 0x100]
lea ecx, [edi + 0x408]
call fcn.0042ad30
push eax
mov edx, esi
call fcn.004f3ce0
add esp, 4
lea ecx, [ebp - 0x454]
call fcn.00428f50
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x6a4]
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4f2e1d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4f2e1b
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4f2e1d
call esi
lea esp, [ebp - 0x6b8]
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