Function at 0x529230
Capabilities:
Check for time delay via gettickcount
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b53a4
mov eax, dword fs:[0]
push eax
sub esp, 0x31c
mov eax, dword [0x63b404]
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
mov ecx, dword [edi + 0x1c]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
test al, al
je 0x529c5e
mov eax, dword [edi + 0x28]
lea ebx, [edi + 0x28]
test eax, eax
je 0x52928d
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [ebx], 0
mov dword [ebx + 4], 0
xor ecx, ecx
mov eax, dword [0x644efc]
mov edx, 2
inc eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0056f8a6
mov edx, eax
add esp, 4
mov dword [ebx], edx
test edx, edx
je 0x5292e4
mov ecx, dword [0x644efc]
mov dword [ebx + 4], ecx
test ecx, ecx
je 0x5292e4
mov eax, dword [0x644efc]
lea eax, [eax*2 + 2]
push eax
push dword [0x644ef8]
push edx
call fcn.00573870
add esp, 0xc
mov ecx, dword [edi + 0x1c]
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov eax, dword [ecx]
call dword [eax + 8]
push eax
push 0x644e90
call fcn.00545b40
add esp, 8
mov dword [ebp - 0x264], eax
lea ecx, [ebp - 0x248]
push eax
call fcn.005456c0
lea eax, [ebp - 0x248]
mov dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.005285e0
mov dword [ebp - 4], 0xffffffff
mov esi, eax
mov ecx, dword [ebp - 0x248]
test ecx, ecx
je 0x52934d
push 2
push ecx
call fcn.0056f898
add esp, 8
test esi, esi
je 0x529b9b
cmp dword [edi + 0x18], 0
jle 0x529365
lea ecx, [edi + 0x14]
call fcn.00545a50
jmp 0x5293b1
lea eax, [ebp - 0x218]
mov dword [ebp - 0x24c], 0
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x5293b7
push 8
call fcn.0056f5ce
add esp, 4
mov dword [ebp - 0x234], eax
lea ecx, [ebp - 0x218]
mov dword [ebp - 4], 0xc
push ecx
mov ecx, eax
call fcn.00545630
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x24c], eax
push 0x40
mov dword [ebp - 0x234], 0
mov esi, 0x1f
call fcn.0056f8a6
push 0xffffffffffffffff
push str.GameManagerDRMWorkerdrmworker
mov ebx, eax
lea eax, [ebp - 0x234]
push 0x20
push ebx
push eax
mov dword [ebp - 0x23c], ebx
call fcn.00585d85
xor ecx, ecx
add esp, 0x18
test eax, eax
cmovne esi, ecx
mov dword [ebp - 0x238], esi
mov esi, dword [ebp - 0x24c]
lea eax, [ebp - 0x23c]
push eax
mov ecx, esi
mov dword [ebp - 4], 0x11
call fcn.00546600
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x52942c
push 2
push ebx
call fcn.0056f898
add esp, 8
mov ecx, dword [edi + 0x1c]
mov eax, dword [ecx]
call dword [eax + 8]
push eax
mov ecx, esi
call fcn.00546600
mov ecx, esi
call fcn.00546d80
mov esi, eax
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
movzx ebx, bl
cmp eax, 0xffffffff
push esi
cmove ebx, ecx
call fcn.0056fc1b
add esp, 4
test bl, bl
je 0x529ad3
mov ecx, dword [ebp - 0x24c]
sub esp, 0xc
call fcn.00546de0
push eax
lea ecx, [ebp - 0x328]
call fcn.0052a1e0
mov dword [ebp - 4], 0x12
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x250], 0
lea eax, [ebp - 0x258]
push eax
sub esp, 0x1c
mov eax, esp
mov dword [ebp - 0x234], esp
mov dword [eax], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0xf
mov byte [eax + 4], 0
sub esp, 0x1c
lea eax, [ebp - 0x328]
mov esi, esp
mov dword [ebp - 0x240], esi
lea edx, [esi + 4]
mov dword [esi], eax
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0xf
mov byte [edx], 0
mov byte [ebp - 4], 0x15
mov ecx, dword [esi]
test ecx, ecx
je 0x52951b
call fcn.0052c630
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
je 0x52951b
mov dword [esi], 0
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 0x13
call fcn.0052bd10
mov esi, dword [ebp - 0x254]
xor ecx, ecx
mov dword [ebp - 0x240], ecx
mov eax, 0x2aaaaaab
mov ecx, esi
add esp, 0x3c
sub ecx, dword [ebp - 0x258]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x529a3b
xor ebx, ebx
mov dword [ebp - 0x234], ebx
mov esi, dword [ebp - 0x258]
add esi, ebx
mov ecx, esi
cmp dword [esi + 0x14], 0x10
jb 0x529578
mov ecx, dword [esi]
push dword [ebp - 0x264]
mov ebx, dword [esi + 0x10]
mov edx, ebx
push 1
sub esp, 8
call fcn.0052c1e0
mov edx, eax
mov dword [ebp - 0x220], 0
add esp, 0x10
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
cmp edx, 0xffffffff
je 0x5295d9
mov eax, dword [esi + 0x10]
lea ecx, [edx + 1]
cmp eax, ecx
jb 0x529d34
sub ebx, edx
sub eax, ecx
dec ebx
cmp eax, ebx
cmovb ebx, eax
cmp dword [esi + 0x14], 0x10
jb 0x5295d2
mov esi, dword [esi]
push ebx
lea eax, [esi + ecx]
push eax
jmp 0x5295e0
push 0
push 0x610f54
lea ecx, [ebp - 0x230]
call fcn.0052b470
mov byte [ebp - 4], 0x16
mov esi, dword [ebp - 0x258]
mov ebx, dword [ebp - 0x234]
add esi, ebx
push ecx
push str.ALTUSERNAME
mov ecx, esi
call fcn.00529ef0
cmp eax, 0xffffffff
je 0x529778
push 8
call fcn.0056f5ce
add esp, 4
mov dword [ebp - 0x268], eax
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x230]
cmp dword [ebp - 0x21c], 0x10
cmovae ecx, dword [ebp - 0x230]
push ecx
mov ecx, eax
call fcn.005455a0
mov byte [ebp - 4], 0x16
mov esi, eax
push 0x42
mov dword [ebp - 0x260], 0
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x25c], 0x20
call fcn.0056f8a6
mov ecx, dword [ebp - 0x25c]
push 0xffffffffffffffff
push str._iWinDRMReports__AltUserName:__s
inc ecx
mov dword [ebp - 0x260], eax
push ecx
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.00585d85
mov ecx, dword [ebp - 0x25c]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x25c], ecx
push esi
lea eax, [ebp - 0x260]
mov byte [ebp - 4], 0x18
push eax
push 0x208
push str.iWinDrm::updateDRM
push str.d:jenkinsworkspaceclient3.lib.drmlibdrmlib_srciwindrm.cpp
push edx
call fcn.00550890
mov byte [ebp - 4], 0x16
add esp, 0x30
mov eax, dword [ebp - 0x260]
test eax, eax
je 0x5296ea
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [ebp - 0x260], 0
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x25c], 0
test eax, eax
je 0x5299c3
cmp dword [ebp - 0x21c], 0x10
lea ecx, [ebp - 0x230]
cmovae ecx, dword [ebp - 0x230]
cmp eax, 7
jne 0x529766
mov edx, str.DEFAULT
lea esi, [eax - 4]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x529732
add ecx, 4
add edx, 4
or esi, 0xffffffff
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x529759
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x529759
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x529759
cmp esi, 0xffffffff
je 0x529755
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x529759
xor eax, eax
jmp 0x52975e
sbb eax, eax
or eax, 1
test eax, eax
je 0x5299c3
push 0x644ec8
lea ecx, [edi + 0x28]
call fcn.00546210
jmp 0x5299c3
push ecx
push str.DAYSLEFT
mov ecx, esi
call fcn.00529ef0
cmp eax, 0xffffffff
je 0x5298b3
cmp dword [ebp - 0x220], 0
je 0x5299c3
push 8
call fcn.0056f5ce
add esp, 4
mov dword [ebp - 0x26c], eax
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x230]
cmp dword [ebp - 0x21c], 0x10
cmovae ecx, dword [ebp - 0x230]
push ecx
mov ecx, eax
call fcn.005455a0
mov byte [ebp - 4], 0x16
mov esi, eax
push 0x3c
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x244], 0x1d
call fcn.0056f8a6
mov ecx, dword [ebp - 0x244]
push 0xffffffffffffffff
push str._iWinDRMReports__DaysLeft:__s
inc ecx
mov dword [ebp - 0x248], eax
push ecx
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.00585d85
mov ecx, dword [ebp - 0x244]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x244], ecx
push esi
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 0x1a
push eax
push 0x212
push str.iWinDrm::updateDRM
push str.d:jenkinsworkspaceclient3.lib.drmlibdrmlib_srciwindrm.cpp
push edx
call fcn.00550890
mov byte [ebp - 4], 0x16
add esp, 0x30
mov eax, dword [ebp - 0x248]
test eax, eax
je 0x529872
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [ebp - 0x248], 0
cmp dword [ebp - 0x21c], 0x10
lea eax, [ebp - 0x230]
mov dword [ebp - 0x244], 0
cmovae eax, dword [ebp - 0x230]
push eax
call fcn.0057f84c
add esp, 4
test eax, eax
jle 0x5299c3
push 0x644e98
lea ecx, [edi + 0x28]
call fcn.00546210
jmp 0x5299c3
push ecx
push str.TIMELEFTTOTAL
mov ecx, esi
call fcn.00529ef0
cmp eax, 0xffffffff
je 0x5299c3
push 8
call fcn.0056f5ce
add esp, 4
mov dword [ebp - 0x270], eax
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x230]
cmp dword [ebp - 0x21c], 0x10
cmovae ecx, dword [ebp - 0x230]
push ecx
mov ecx, eax
call fcn.005455a0
mov byte [ebp - 4], 0x16
mov esi, eax
push 0x3c
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x238], 0x1d
call fcn.0056f8a6
mov ecx, dword [ebp - 0x238]
push 0xffffffffffffffff
push str._iWinDRMReports__Timeleft:__s
inc ecx
mov dword [ebp - 0x23c], eax
push ecx
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.00585d85
mov ecx, dword [ebp - 0x238]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x238], ecx
push esi
lea eax, [ebp - 0x23c]
mov byte [ebp - 4], 0x1c
push eax
push 0x21b
push str.iWinDrm::updateDRM
push str.d:jenkinsworkspaceclient3.lib.drmlibdrmlib_srciwindrm.cpp
push edx
call fcn.00550890
mov byte [ebp - 4], 0x16
add esp, 0x30
mov eax, dword [ebp - 0x23c]
test eax, eax
je 0x5299a0
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [ebp - 0x23c], 0
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x238], 0
call fcn.00527d10
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], 0
mov byte [edi + 0x30], 1
mov byte [ebp - 4], 0x13
mov edx, dword [ebp - 0x21c]
cmp edx, 0x10
jb 0x529a01
mov ecx, dword [ebp - 0x230]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5299f7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x529d2f
push edx
push ecx
call fcn.0056f898
add esp, 8
mov esi, dword [ebp - 0x254]
mov eax, 0x2aaaaaab
inc dword [ebp - 0x240]
mov ecx, esi
sub ecx, dword [ebp - 0x258]
add ebx, 0x18
imul ecx
mov dword [ebp - 0x234], ebx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x240], eax
jb 0x529566
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x258]
test ecx, ecx
je 0x529abf
push ecx
mov edx, esi
call fcn.0052c570
mov ecx, dword [ebp - 0x250]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x258]
add esp, 4
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x529a97
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x529d2f
push ecx
push esi
call fcn.0056f898
add esp, 8
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x250], 0
lea ecx, [ebp - 0x328]
mov dword [ebp - 4], 0xffffffff
call fcn.00529d40
jmp 0x529ada
mov ecx, edi
call fcn.00529080
mov ebx, dword [ebp - 0x24c]
test ebx, ebx
je 0x529b0d
mov eax, dword [ebx]
test eax, eax
je 0x529afb
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [ebx], 0
push 8
push ebx
mov dword [ebx + 4], 0
call fcn.0056f898
add esp, 8
lea ebx, [edi + 0x28]
mov esi, dword [ebp - 0x264]
test esi, esi
je 0x529b43
mov eax, dword [esi]
test eax, eax
je 0x529b31
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [esi], 0
push 8
push esi
mov dword [esi + 4], 0
call fcn.0056f898
add esp, 8
mov ecx, dword [edi + 0x1c]
push 0
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
and eax, edx
cmp eax, 0xffffffff
jne 0x529d03
mov edx, dword [ebx]
test edx, edx
je 0x529b8a
cmp dword [ebx + 4], 0
jbe 0x529b8a
mov eax, dword [0x644ec8]
test eax, eax
je 0x529b8a
cmp dword [0x644ecc], 0
jbe 0x529b8a
push eax
push edx
call fcn.005856ed
add esp, 8
test eax, eax
je 0x529d03
push 0x644eb8
mov ecx, ebx
call fcn.00546210
jmp 0x529d03
push 0xca
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x238], 0x64
call fcn.0056f8a6
mov ecx, dword [ebp - 0x238]
push 0xffffffffffffffff
push str._iWinDRMReports__Failed_to_run_glWorker___s_.__Attempt_to_update_from_other_storage_for_legacy_games
inc ecx
mov dword [ebp - 0x23c], eax
push ecx
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.00585d85
mov ecx, dword [ebp - 0x238]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x238], ecx
lea eax, [edi + 4]
mov dword [ebp - 4], 0x1d
push eax
lea eax, [ebp - 0x23c]
push eax
push 0x229
push str.iWinDrm::updateDRM
push str.d:jenkinsworkspaceclient3.lib.drmlibdrmlib_srciwindrm.cpp
push edx
call fcn.00550890
mov dword [ebp - 4], 0xffffffff
add esp, 0x30
mov eax, dword [ebp - 0x23c]
test eax, eax
je 0x529c48
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [ebp - 0x23c], 0
mov ecx, edi
mov dword [ebp - 0x238], 0
call fcn.00529080
jmp 0x529b10
mov ecx, dword [edi + 0x1c]
push 0
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
and eax, edx
lea ecx, [edi + 0x28]
cmp eax, 0xffffffff
jne 0x529c83
push 0x644ec8
call fcn.00546210
jmp 0x529d03
push 0x644ef8
call fcn.00546210
mov ecx, dword [edi + 0x1c]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, eax
call fcn.00524da0
test eax, eax
je 0x529d03
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 4]
mov esi, eax
test esi, esi
je 0x529cc4
mov ecx, esi
call fcn.00546b40
test al, al
je 0x529cc4
push 0
mov ecx, esi
call fcn.00546ba0
cdq
jmp 0x529cd0
mov ecx, dword [edi + 0x1c]
push 0
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov dword [edi + 0x3c], edx
mov dword [edi + 0x38], eax
test esi, esi
je 0x529d03
mov eax, dword [esi]
test eax, eax
je 0x529cf1
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [esi], 0
push 8
push esi
mov dword [esi + 4], 0
call fcn.0056f898
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], 0
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.0056f3c2
mov esp, ebp
pop ebp
ret
call fcn.0057a76e
call fcn.0052bb90
int3