Function at 0x528440
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 0x5b4584
mov eax, dword fs:[0]
push eax
sub esp, 0x31c
mov eax, dword [0x63a404]
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 0x528e6e
mov eax, dword [edi + 0x28]
lea ebx, [edi + 0x28]
test eax, eax
je 0x52849d
push 2
push eax
call fcn.0056ea89
add esp, 8
mov dword [ebx], 0
mov dword [ebx + 4], 0
xor ecx, ecx
mov eax, dword [0x643ddc]
mov edx, 2
inc eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0056ea97
mov edx, eax
add esp, 4
mov dword [ebx], edx
test edx, edx
je 0x5284f4
mov ecx, dword [0x643ddc]
mov dword [ebx + 4], ecx
test ecx, ecx
je 0x5284f4
mov eax, dword [0x643ddc]
lea eax, [eax*2 + 2]
push eax
push dword [0x643dd8]
push edx
call fcn.00572a60
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 0x643d70
call fcn.00544d50
add esp, 8
mov dword [ebp - 0x264], eax
lea ecx, [ebp - 0x248]
push eax
call fcn.005448d0
lea eax, [ebp - 0x248]
mov dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.005277f0
mov dword [ebp - 4], 0xffffffff
mov esi, eax
mov ecx, dword [ebp - 0x248]
test ecx, ecx
je 0x52855d
push 2
push ecx
call fcn.0056ea89
add esp, 8
test esi, esi
je 0x528dab
cmp dword [edi + 0x18], 0
jle 0x528575
lea ecx, [edi + 0x14]
call fcn.00544c60
jmp 0x5285c1
lea eax, [ebp - 0x218]
mov dword [ebp - 0x24c], 0
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x5285c7
push 8
call fcn.0056e7bf
add esp, 4
mov dword [ebp - 0x234], eax
lea ecx, [ebp - 0x218]
mov dword [ebp - 4], 0xc
push ecx
mov ecx, eax
call fcn.00544840
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x24c], eax
push 0x40
mov dword [ebp - 0x234], 0
mov esi, 0x1f
call fcn.0056ea97
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.00584f75
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.00545810
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x52863c
push 2
push ebx
call fcn.0056ea89
add esp, 8
mov ecx, dword [edi + 0x1c]
mov eax, dword [ecx]
call dword [eax + 8]
push eax
mov ecx, esi
call fcn.00545810
mov ecx, esi
call fcn.00545f90
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.0056ee0c
add esp, 4
test bl, bl
je 0x528ce3
mov ecx, dword [ebp - 0x24c]
sub esp, 0xc
call fcn.00545ff0
push eax
lea ecx, [ebp - 0x328]
call fcn.005293f0
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 0x52872b
call fcn.0052b840
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
je 0x52872b
mov dword [esi], 0
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 0x13
call fcn.0052af20
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 0x528c4b
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 0x528788
mov ecx, dword [esi]
push dword [ebp - 0x264]
mov ebx, dword [esi + 0x10]
mov edx, ebx
push 1
sub esp, 8
call fcn.0052b3f0
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 0x5287e9
mov eax, dword [esi + 0x10]
lea ecx, [edx + 1]
cmp eax, ecx
jb 0x528f44
sub ebx, edx
sub eax, ecx
dec ebx
cmp eax, ebx
cmovb ebx, eax
cmp dword [esi + 0x14], 0x10
jb 0x5287e2
mov esi, dword [esi]
push ebx
lea eax, [esi + ecx]
push eax
jmp 0x5287f0
push 0
push 0x60fec4
lea ecx, [ebp - 0x230]
call fcn.0052a680
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.00529100
cmp eax, 0xffffffff
je 0x528988
push 8
call fcn.0056e7bf
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.005447b0
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.0056ea97
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.00584f75
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.0054faa0
mov byte [ebp - 4], 0x16
add esp, 0x30
mov eax, dword [ebp - 0x260]
test eax, eax
je 0x5288fa
push 2
push eax
call fcn.0056ea89
add esp, 8
mov dword [ebp - 0x260], 0
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x25c], 0
test eax, eax
je 0x528bd3
cmp dword [ebp - 0x21c], 0x10
lea ecx, [ebp - 0x230]
cmovae ecx, dword [ebp - 0x230]
cmp eax, 7
jne 0x528976
mov edx, str.DEFAULT
lea esi, [eax - 4]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x528942
add ecx, 4
add edx, 4
or esi, 0xffffffff
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x528969
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x528969
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x528969
cmp esi, 0xffffffff
je 0x528965
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x528969
xor eax, eax
jmp 0x52896e
sbb eax, eax
or eax, 1
test eax, eax
je 0x528bd3
push 0x643da8
lea ecx, [edi + 0x28]
call fcn.00545420
jmp 0x528bd3
push ecx
push str.DAYSLEFT
mov ecx, esi
call fcn.00529100
cmp eax, 0xffffffff
je 0x528ac3
cmp dword [ebp - 0x220], 0
je 0x528bd3
push 8
call fcn.0056e7bf
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.005447b0
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.0056ea97
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.00584f75
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.0054faa0
mov byte [ebp - 4], 0x16
add esp, 0x30
mov eax, dword [ebp - 0x248]
test eax, eax
je 0x528a82
push 2
push eax
call fcn.0056ea89
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.0057ea3c
add esp, 4
test eax, eax
jle 0x528bd3
push 0x643d78
lea ecx, [edi + 0x28]
call fcn.00545420
jmp 0x528bd3
push ecx
push str.TIMELEFTTOTAL
mov ecx, esi
call fcn.00529100
cmp eax, 0xffffffff
je 0x528bd3
push 8
call fcn.0056e7bf
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.005447b0
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.0056ea97
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.00584f75
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.0054faa0
mov byte [ebp - 4], 0x16
add esp, 0x30
mov eax, dword [ebp - 0x23c]
test eax, eax
je 0x528bb0
push 2
push eax
call fcn.0056ea89
add esp, 8
mov dword [ebp - 0x23c], 0
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x238], 0
call fcn.00526f20
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 0x528c11
mov ecx, dword [ebp - 0x230]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x528c07
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x528f3f
push edx
push ecx
call fcn.0056ea89
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 0x528776
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x258]
test ecx, ecx
je 0x528ccf
push ecx
mov edx, esi
call fcn.0052b780
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 0x528ca7
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x528f3f
push ecx
push esi
call fcn.0056ea89
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.00528f50
jmp 0x528cea
mov ecx, edi
call fcn.00528290
mov ebx, dword [ebp - 0x24c]
test ebx, ebx
je 0x528d1d
mov eax, dword [ebx]
test eax, eax
je 0x528d0b
push 2
push eax
call fcn.0056ea89
add esp, 8
mov dword [ebx], 0
push 8
push ebx
mov dword [ebx + 4], 0
call fcn.0056ea89
add esp, 8
lea ebx, [edi + 0x28]
mov esi, dword [ebp - 0x264]
test esi, esi
je 0x528d53
mov eax, dword [esi]
test eax, eax
je 0x528d41
push 2
push eax
call fcn.0056ea89
add esp, 8
mov dword [esi], 0
push 8
push esi
mov dword [esi + 4], 0
call fcn.0056ea89
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 0x528f13
mov edx, dword [ebx]
test edx, edx
je 0x528d9a
cmp dword [ebx + 4], 0
jbe 0x528d9a
mov eax, dword [0x643da8]
test eax, eax
je 0x528d9a
cmp dword [0x643dac], 0
jbe 0x528d9a
push eax
push edx
call fcn.005848dd
add esp, 8
test eax, eax
je 0x528f13
push 0x643d98
mov ecx, ebx
call fcn.00545420
jmp 0x528f13
push 0xca
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x238], 0x64
call fcn.0056ea97
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.00584f75
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.0054faa0
mov dword [ebp - 4], 0xffffffff
add esp, 0x30
mov eax, dword [ebp - 0x23c]
test eax, eax
je 0x528e58
push 2
push eax
call fcn.0056ea89
add esp, 8
mov dword [ebp - 0x23c], 0
mov ecx, edi
mov dword [ebp - 0x238], 0
call fcn.00528290
jmp 0x528d20
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 0x528e93
push 0x643da8
call fcn.00545420
jmp 0x528f13
push 0x643dd8
call fcn.00545420
mov ecx, dword [edi + 0x1c]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, eax
call fcn.00523fb0
test eax, eax
je 0x528f13
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 4]
mov esi, eax
test esi, esi
je 0x528ed4
mov ecx, esi
call fcn.00545d50
test al, al
je 0x528ed4
push 0
mov ecx, esi
call fcn.00545db0
cdq
jmp 0x528ee0
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 0x528f13
mov eax, dword [esi]
test eax, eax
je 0x528f01
push 2
push eax
call fcn.0056ea89
add esp, 8
mov dword [esi], 0
push 8
push esi
mov dword [esi + 4], 0
call fcn.0056ea89
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.0056e5b3
mov esp, ebp
pop ebp
ret
call fcn.0057995e
call fcn.0052ada0
int3