Function at 0x40e370
Capabilities:
Check if file exists
Get file attributes
Set registry value
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55fb31
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x5c84bc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x58]
push 8
xor eax, eax
mov dword [ebp - 0x58], 0
push str.SOFTWARE
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
call fcn.004013e0
push str.ValveSteam
lea edx, [ebp - 0x58]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xb8]
call fcn.00412030
add esp, 4
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x40e427
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e41d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ecd2
push edx
push ecx
call fcn.00532001
add esp, 8
sub esp, 8
lea edx, [ebp - 0xb8]
call fcn.00402310
mov esi, eax
mov dword [ebp - 0xa0], 0
xor ecx, ecx
mov edx, 7
xor eax, eax
mov dword [ebp - 0x90], ecx
add esp, 8
mov dword [ebp - 0x8c], edx
mov word [ebp - 0xa0], ax
mov byte [ebp - 4], 4
test esi, esi
je 0x40e848
push 0x19
push str.AlreadyRetriedOfflineMode
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], edx
call fcn.004013e0
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0xec]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push 4
push ecx
push 4
push 0
push eax
push esi
mov dword [ebp - 0xec], 0
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40e4bc
call ebx
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x40e4f6
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e4ec
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ecd7
push edx
push ecx
call fcn.00532001
add esp, 8
push 0x16
push str.BigPictureInForeground
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
call fcn.004013e0
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0xec]
push 4
push ecx
push 4
lea eax, [ebp - 0x58]
mov dword [ebp - 0xec], 0
cmovae eax, dword [ebp - 0x58]
push 0
push eax
push esi
call edi
test eax, eax
je 0x40e546
call ebx
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x40e580
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e576
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ecdc
push edx
push ecx
call fcn.00532001
add esp, 8
push 8
xor eax, eax
mov dword [ebp - 0x58], 0
push str.schinese
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
call fcn.004013e0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x70]
push 8
push str.Language
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
call fcn.004013e0
cmp dword [ebp - 0x44], 8
lea edx, [ebp - 0x58]
mov eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x70]
cmovae edx, dword [ebp - 0x58]
cmp dword [ebp - 0x5c], 8
cmovae ecx, dword [ebp - 0x70]
add eax, eax
push eax
push edx
push 1
push 0
push ecx
push esi
call edi
mov edx, dword [ebp - 0x5c]
cmp edx, 8
jb 0x40e631
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e627
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ece1
push edx
push ecx
call fcn.00532001
add esp, 8
xor eax, eax
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
cmp edx, 8
jb 0x40e683
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e679
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ece1
push edx
push ecx
call fcn.00532001
add esp, 8
push 5
xor eax, eax
mov dword [ebp - 0x58], 0
push str.30000
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
call fcn.004013e0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x70]
push 4
push str.Rate
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
call fcn.004013e0
cmp dword [ebp - 0x44], 8
lea edx, [ebp - 0x58]
mov eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x70]
cmovae edx, dword [ebp - 0x58]
cmp dword [ebp - 0x5c], 8
cmovae ecx, dword [ebp - 0x70]
add eax, eax
push eax
push edx
push 1
push 0
push ecx
push esi
call edi
mov edx, dword [ebp - 0x5c]
cmp edx, 8
jb 0x40e734
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e72a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ece6
push edx
push ecx
call fcn.00532001
add esp, 8
xor eax, eax
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
cmp edx, 8
jb 0x40e786
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e77c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ece6
push edx
push ecx
call fcn.00532001
add esp, 8
push 0x10
push str.RememberPassword
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
call fcn.004013e0
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0xec]
push 4
push ecx
push 4
lea eax, [ebp - 0x58]
mov dword [ebp - 0xec], 0
cmovae eax, dword [ebp - 0x58]
push 0
push eax
push esi
call edi
test eax, eax
je 0x40e7d6
call ebx
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x40e810
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e806
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40eceb
push edx
push ecx
call fcn.00532001
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x5cdc04], 8
lea ecx, [ebp - 0xa0]
push dword [0x5cdc00]
mov eax, 0x5cdbf0
cmovae eax, dword [0x5cdbf0]
push eax
call fcn.004013e0
mov edx, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x90]
mov eax, accept
sub eax, ecx
cmp eax, 8
jb 0x40ecf0
push 8
push str._AppList
cmp edx, 8
lea eax, [ebp - 0xa0]
push ecx
cmovae eax, dword [ebp - 0xa0]
push eax
push ecx
push dword [ebp - 0xec]
lea ecx, [ebp - 0x88]
call fcn.00404970
mov byte [ebp - 4], 7
lea eax, [ebp - 0x88]
cmp dword [ebp - 0x74], 8
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmovae eax, dword [ebp - 0x88]
push eax
call esi
cmp eax, 0xffffffff
je 0x40e8c9
cmp dword [ebp - 0x74], 8
lea eax, [ebp - 0x88]
cmovae eax, dword [ebp - 0x88]
push eax
call esi
test al, 0x10
je 0x40e8c9
lea ecx, [ebp - 0x88]
call fcn.00403a80
cmp dword [ebp - 0x74], 8
lea eax, [ebp - 0x88]
cmovae eax, dword [ebp - 0x88]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, dword [ebp + 0xc]
je 0x40eb6f
lea edi, [ebp - 0x16]
mov ecx, ebx
test ebx, ebx
jns 0x40e930
neg ecx
nop dword [eax]
mov eax, 0xcccccccd
sub edi, 2
mul ecx
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub ecx, eax
add ecx, 0x30
mov word [edi], cx
mov ecx, edx
test ecx, ecx
jne 0x40e900
add edi, 0xfffffffe
mov eax, 0x2d
mov word [edi], ax
jmp 0x40e950
mov eax, 0xcccccccd
sub edi, 2
mul ecx
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub ecx, eax
add ecx, 0x30
mov word [edi], cx
mov ecx, edx
test ecx, ecx
jne 0x40e930
xor eax, eax
mov dword [ebp - 0x58], 0
mov word [ebp - 0x58], ax
lea eax, [ebp - 0x16]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
cmp edi, eax
je 0x40e980
sub eax, edi
lea ecx, [ebp - 0x58]
sar eax, 1
push eax
push edi
call fcn.004013e0
mov byte [ebp - 4], 8
mov eax, accept
mov ecx, dword [ebp - 0x78]
sub eax, ecx
cmp eax, 1
jb 0x40ecf0
cmp dword [ebp - 0x74], 8
lea eax, [ebp - 0x88]
push 1
cmovae eax, dword [ebp - 0x88]
push 0x5bc138
push ecx
push eax
push ecx
push dword [ebp - 0xec]
lea ecx, [ebp - 0xe8]
call fcn.00404970
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0xe8]
push eax
push dword [ebp - 0xec]
lea ecx, [ebp - 0x70]
call fcn.00401a40
push str..txt
lea edx, [ebp - 0x70]
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xd0]
call fcn.00412030
mov byte [ebp - 4], 9
add esp, 4
mov edx, dword [ebp - 0x5c]
cmp edx, 8
jb 0x40ea38
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ea2e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ecd2
push edx
push ecx
call fcn.00532001
add esp, 8
xor eax, eax
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0xd4]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
cmp edx, 8
jb 0x40ea90
mov ecx, dword [ebp - 0xe8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ea86
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ecd2
push edx
push ecx
call fcn.00532001
add esp, 8
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x40eace
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40eac4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ecd2
push edx
push ecx
call fcn.00532001
add esp, 8
cmp dword [ebp - 0xbc], 8
lea eax, [ebp - 0xd0]
push 0
cmovae eax, dword [ebp - 0xd0]
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp dword [esi + 0x14], 0x10
mov edi, eax
mov ecx, esi
jb 0x40eb07
mov ecx, dword [esi]
push 0
lea eax, [ebp - 0xec]
push eax
push dword [esi + 0x10]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0xbc]
inc ebx
cmp edx, 8
jb 0x40eb63
mov ecx, dword [ebp - 0xd0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40eb59
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ecd2
push edx
push ecx
call fcn.00532001
add esp, 8
add esi, 0x18
cmp esi, dword [ebp + 0xc]
jne 0x40e8f1
mov edx, dword [ebp - 0x74]
cmp edx, 8
jb 0x40ebac
mov ecx, dword [ebp - 0x88]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40eba2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ecf5
push edx
push ecx
call fcn.00532001
add esp, 8
mov edx, dword [ebp - 0x8c]
xor eax, eax
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
cmp edx, 8
jb 0x40ec03
mov ecx, dword [ebp - 0xa0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ebf9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ecf5
push edx
push ecx
call fcn.00532001
add esp, 8
mov edx, dword [ebp - 0xa4]
cmp edx, 8
jb 0x40ec43
mov ecx, dword [ebp - 0xb8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ec39
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ecf5
push edx
push ecx
call fcn.00532001
add esp, 8
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 7
mov word [ebp - 0xb8], ax
test ecx, ecx
je 0x40ecb6
mov edx, dword [ebp + 0xc]
push ecx
call fcn.00401c50
mov ecx, dword [ebp + 0x10]
mov eax, 0x2aaaaaab
mov esi, dword [ebp + 8]
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 0x40ecac
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ecf5
push ecx
push esi
call fcn.00532001
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00531ff3
mov esp, ebp
pop ebp
ret
call fcn.005375cf
call fcn.005375cf
call fcn.005375cf
call fcn.005375cf
call fcn.005375cf
call fcn.005375cf
call fcn.00401220
call fcn.005375cf
int3