Function at 0x100040b0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x1009628b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
push esi
mov esi, ecx
call fcn.1008cdb1
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 4], eax
lea eax, [esp + 4]
push eax
push 0x1009cc18
mov ecx, esi
mov dword [esp + 0x11c], 0
call fcn.10003f60
test al, al
je 0x10004111
mov ecx, dword [esp + 4]
push ecx
call fcn.10076e12
add esp, 4
mov dword [esi + 8], eax
lea edx, [esp + 4]
push edx
push str.PolicyID
mov ecx, esi
call fcn.10003f60
test al, al
je 0x10004136
mov eax, dword [esp + 4]
push eax
call fcn.10076e12
add esp, 4
mov dword [esi + 0xc], eax
lea ecx, [esp + 4]
push ecx
push str.AdName
mov ecx, esi
call fcn.10003f60
test al, al
je 0x1000437e
push ebx
lea edx, [esp + 8]
lea ebx, [esi + 0x10]
push edx
mov ecx, ebx
call fcn.100029e0
lea eax, [esp + 8]
push eax
push str.AdTimeLength
mov ecx, esi
call fcn.10003f60
test al, al
je 0x10004351
mov ecx, dword [esp + 8]
push ecx
call fcn.10076e12
add esp, 4
test eax, eax
mov dword [esi + 0x1c], eax
jne 0x10004193
mov dword [esi + 0x1c], 0x3c
lea edx, [esp + 8]
push edx
push str.AdFileSize
mov ecx, esi
call fcn.10003f60
test al, al
je 0x100041bb
mov eax, dword [esp + 8]
push eax
call fcn.10076e17
add esp, 4
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], edx
lea ecx, [esp + 8]
push ecx
push 0x1009cbe4
mov ecx, esi
call fcn.10003f60
test al, al
je 0x100041dd
lea edx, [esp + 8]
lea ecx, [esi + 0x14]
push edx
call fcn.100029e0
lea eax, [esp + 8]
push eax
push str.Advertiser
mov ecx, esi
call fcn.10003f60
test al, al
je 0x100041ff
lea edx, [esp + 8]
lea ecx, [esi + 0x18]
push edx
call fcn.100029e0
lea eax, [esp + 8]
push eax
push str.NetBusy
mov ecx, esi
call fcn.10003f60
test al, al
je 0x10004226
mov ecx, dword [esp + 8]
push ecx
call fcn.10076e12
add esp, 4
mov dword [esi + 0x2c], eax
jmp 0x1000422d
mov dword [esi + 0x2c], 0
lea edx, [esp + 8]
push edx
push str.LinkUrl
mov ecx, esi
call fcn.10003f60
test al, al
je 0x1000424f
lea eax, [esp + 8]
lea ecx, [esi + 0x30]
push eax
call fcn.100029e0
lea ecx, [esp + 8]
push ecx
push str.ChildAdID
mov ecx, esi
call fcn.10003f60
test al, al
je 0x10004274
mov edx, dword [esp + 8]
push edx
call fcn.10076e12
add esp, 4
mov dword [esi + 0x34], eax
lea eax, [esp + 8]
push eax
push str.beginCode
mov ecx, esi
call fcn.10003f60
test al, al
je 0x10004296
lea edx, [esp + 8]
lea ecx, [esi + 0x44]
push edx
call fcn.100029e0
lea eax, [esp + 8]
push eax
push str.endCode
mov ecx, esi
call fcn.10003f60
test al, al
je 0x100042b8
lea edx, [esp + 8]
lea ecx, [esi + 0x48]
push edx
call fcn.100029e0
push edi
lea eax, [esp + 0xc]
push eax
push str.StartLoc
mov ecx, esi
call fcn.10003f60
test al, al
mov edi, dword [esp + 0xc]
je 0x100042e0
push edi
call fcn.10076e12
add esp, 4
mov dword [esi + 0x28], eax
jmp 0x100042e7
mov dword [esi + 0x28], 0
push 0x104
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, dword [ebx]
push edx
lea eax, [esp + 0x14]
push eax
push 0x1009cb94
add esi, 0x38
push esi
call fcn.10002d50
lea eax, [edi - 0x10]
add esp, 0x10
mov dword [esp + 0x11c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
jg 0x10004336
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov al, 1
pop ebx
pop esi
mov ecx, dword [esp + 0x108]
mov dword fs:[0], ecx
add esp, 0x114
ret 4
mov eax, dword [esp + 8]
add eax, 0xfffffff0
mov dword [esp + 0x118], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000437a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor al, al
jmp 0x10004338
mov eax, dword [esp + 4]
add eax, 0xfffffff0
mov dword [esp + 0x114], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100043a7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x10c]
xor al, al
pop esi
mov dword fs:[0], ecx
add esp, 0x114
ret 4