Function at 0x459240
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53c787
mov eax, dword fs:[0]
push eax
sub esp, 0x15c
mov eax, dword [0x57506c]
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 ebx, ecx
mov dword [ebp - 0x138], ebx
cmp dword [ebx + 0xf8], 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x164], eax
mov dword [ebp - 0x168], ecx
jne 0x459298
xor al, al
jmp 0x459e63
push 0
mov edx, eax
lea ecx, [ebp - 0x28]
call fcn.00417840
add esp, 4
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebx + 0x10]
call fcn.00406230
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x4592d6
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00403550
mov al, byte [ebp + 0x10]
mov ecx, 0xa
mov byte [ebx + 8], al
mov edx, 0x561338
xor eax, eax
mov dword [ebp - 0x14], 0xf
cmp byte [ebp + 0x14], al
mov dword [ebp - 0x18], 0
cmovne eax, ecx
mov byte [ebp - 0x28], 0
push eax
push 9
lea ecx, [ebp - 0x28]
call fcn.0040a290
add esp, 4
mov dword [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x45931d
mov eax, dword [eax]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x134], esp
push eax
call fcn.004075f0
mov byte [ebp - 4], 2
mov ecx, ebx
mov eax, dword [ebx]
mov byte [ebp - 4], 1
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x459359
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00403930
xor eax, eax
mov dword [ebp - 0x14], 7
push 0xc
mov edx, 0x561350
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x58]
mov word [ebp - 0x28], ax
call fcn.0040a290
add esp, 4
mov dword [ebp - 4], 3
cmp dword [eax + 0x14], 8
jb 0x45938e
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x28]
call fcn.004075f0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0045b5d0
mov edi, eax
lea esi, [ebx + 0x58]
mov byte [ebp - 4], 5
cmp esi, edi
je 0x4593ef
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x4593c8
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00403930
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x4593e0
mov eax, dword [esi]
jmp 0x4593e2
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push edi
call fcn.00408310
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x459408
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00403930
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 0x30], 0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x459435
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00403930
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x459465
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00403930
xor eax, eax
mov dword [ebp - 0x44], 7
push esi
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
call fcn.0045b7d0
mov edx, dword [ebp - 0x164]
lea ecx, [ebp - 0x40]
push str..json
mov dword [ebx + 0xc], eax
call fcn.00444130
mov dword [ebp - 4], 6
cmp dword [eax + 0x14], 8
push ecx
mov edx, esp
jb 0x4594a9
mov ecx, dword [eax]
jmp 0x4594ab
mov ecx, eax
mov dword [edx], ecx
mov eax, dword [eax + 0x10]
mov ecx, dword [ebp - 0x168]
mov dword [edx + 4], eax
lea eax, [ebp - 0x28]
push eax
call fcn.00412da0
lea ecx, [ebx + 0x100]
mov byte [ebp - 4], 7
cmp ecx, eax
je 0x4594da
push 0xffffffffffffffff
push 0
push eax
call fcn.00407b20
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4594f3
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00403930
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x459523
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00403930
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov dword [ebp - 0x13c], eax
lea edi, [ebx + 0x70]
mov dword [ebp - 4], 8
cmp dword [edi + 0x14], 8
jb 0x45955d
mov eax, dword [edi]
jmp 0x45955f
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x459577
push edi
lea ecx, [ebp - 0x144]
call fcn.0044b8a0
push 8
mov edx, 0x561360
lea ecx, [ebp - 0x40]
call fcn.0040a290
add esp, 4
mov esi, eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 9
push eax
mov ecx, edi
call fcn.00412a20
mov ebx, eax
mov byte [ebp - 4], 0xa
cmp dword [esi + 0x14], 8
jb 0x4595a8
mov esi, dword [esi]
sub esp, 8
mov ecx, esp
mov dword [ecx], esi
test esi, esi
je 0x4595cf
cmp word [esi], 0
jne 0x4595bd
xor esi, esi
jmp 0x4595cf
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4595c0
sub esi, edx
sar esi, 1
lea eax, [ebp - 0xb8]
mov dword [ecx + 4], esi
push eax
mov ecx, ebx
call fcn.00412da0
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4595f9
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00403930
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x459626
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00403930
xor eax, eax
mov dword [ebp - 0x2c], 7
push 8
mov edx, 0x561344
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x40]
mov word [ebp - 0x40], ax
call fcn.0040a290
add esp, 4
mov esi, eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xe
push eax
mov ecx, edi
call fcn.00412a20
mov edi, eax
mov byte [ebp - 4], 0xf
cmp dword [esi + 0x14], 8
jb 0x45966b
mov esi, dword [esi]
sub esp, 8
mov ecx, esp
mov dword [ecx], esi
test esi, esi
je 0x459692
cmp word [esi], 0
jne 0x459680
xor esi, esi
jmp 0x459692
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x459683
sub esi, edx
sar esi, 1
lea eax, [ebp - 0xa0]
mov dword [ecx + 4], esi
push eax
mov ecx, edi
call fcn.00412da0
mov byte [ebp - 4], 0x11
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4596bc
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00403930
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 0x12
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x4596e9
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00403930
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor eax, eax
cmp dword [ebp - 0xa4], 8
mov word [ebp - 0x40], ax
lea eax, [ebp - 0xb8]
cmovae eax, dword [ebp - 0xb8]
push eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
call ebx
cmp eax, 0xffffffff
je 0x459731
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0x144]
call fcn.0044b8a0
cmp dword [ebp - 0x8c], 8
lea eax, [ebp - 0xa0]
cmovae eax, dword [ebp - 0xa0]
push eax
call ebx
cmp eax, 0xffffffff
je 0x45975f
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x144]
call fcn.0044b8a0
mov ebx, dword [ebp - 0x144]
mov esi, ebx
mov edi, dword [ebp - 0x140]
cmp ebx, edi
je 0x459d87
cmp dword [esi + 0x14], 8
jb 0x45977f
mov eax, dword [esi]
jmp 0x459781
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x459d76
sub esp, 8
mov ecx, esi
mov eax, esp
mov dword [eax], str.Secure_Preferences
mov dword [eax + 4], 0x12
lea eax, [ebp - 0xd0]
push eax
call fcn.00412da0
mov ebx, dword [ebp - 0x138]
mov byte [ebp - 4], 0x13
lea edi, [ebx + 0xa0]
cmp edi, eax
je 0x4597d1
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.00407b20
mov byte [ebp - 4], 0x12
mov eax, dword [ebp - 0xbc]
cmp eax, 8
jb 0x4597f3
inc eax
lea ecx, [ebp - 0xd0]
push eax
push dword [ebp - 0xd0]
call fcn.00403930
xor eax, eax
mov dword [ebp - 0xbc], 7
sub esp, 8
mov word [ebp - 0xd0], ax
mov eax, esp
mov dword [ebp - 0xc0], 0
mov ecx, esi
mov dword [eax], str.Preferences
mov dword [eax + 4], 0xb
lea eax, [ebp - 0xe8]
push eax
call fcn.00412da0
add ebx, 0xb8
mov byte [ebp - 4], 0x14
cmp ebx, eax
je 0x45984a
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
call fcn.00407b20
mov byte [ebp - 4], 0x12
mov eax, dword [ebp - 0xd4]
cmp eax, 8
jb 0x45986c
inc eax
lea ecx, [ebp - 0xe8]
push eax
push dword [ebp - 0xe8]
call fcn.00403930
xor eax, eax
mov dword [ebp - 0xd4], 7
sub esp, 8
mov word [ebp - 0xe8], ax
mov eax, esp
mov dword [ebp - 0xd8], 0
mov ecx, esi
mov dword [eax], str.Extensions
mov dword [eax + 4], 0xa
lea eax, [ebp - 0x100]
push eax
call fcn.00412da0
mov ecx, dword [ebp - 0x138]
add ecx, 0x88
mov byte [ebp - 4], 0x15
cmp ecx, eax
je 0x4598c7
push 0xffffffffffffffff
push 0
push eax
call fcn.00407b20
mov byte [ebp - 4], 0x12
mov eax, dword [ebp - 0xec]
cmp eax, 8
jb 0x4598e9
inc eax
lea ecx, [ebp - 0x100]
push eax
push dword [ebp - 0x100]
call fcn.00403930
xor eax, eax
mov dword [ebp - 0xec], 7
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0xf0], 0
mov word [ebp - 0x100], ax
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x40], al
mov byte [ebp - 4], 0x16
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x74], 0xf
mov dword [ebp - 0x78], eax
mov byte [ebp - 0x88], al
push 0xffffffffffffffff
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 0x17
mov ecx, edi
call fcn.0041e650
add esp, 4
test al, al
je 0x459988
cmp dword [ebp - 0x30], 0
je 0x459988
mov ecx, dword [ebp - 0x138]
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0045d330
test al, al
je 0x459988
cmp dword [ebp - 0x74], 0x10
lea edx, [ebp - 0x88]
push dword [ebp - 0x78]
cmovae edx, dword [ebp - 0x88]
mov ecx, edi
call fcn.004112e0
add esp, 4
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
mov byte [ebp - 4], 0x18
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
push 0xffffffffffffffff
lea edx, [ebp - 0x58]
mov byte [ebp - 4], 0x19
mov ecx, ebx
call fcn.0041e650
add esp, 4
test al, al
je 0x459a18
cmp dword [ebp - 0x48], 0
je 0x459a18
mov ecx, dword [ebp - 0x138]
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0045d250
test al, al
je 0x459a18
cmp dword [ebp - 0x5c], 0x10
lea edx, [ebp - 0x70]
push dword [ebp - 0x60]
cmovae edx, dword [ebp - 0x70]
mov ecx, ebx
call fcn.004112e0
add esp, 4
mov dword [ebp - 0x160], 0
mov dword [ebp - 0x15c], 0
mov dword [ebp - 0x158], 0
mov byte [ebp - 4], 0x1a
mov dword [ebp - 0x154], 0
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x14c], 0
push 8
mov edx, 0x56132c
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x130]
call fcn.0040a290
add esp, 4
mov edx, eax
mov byte [ebp - 4], 0x1c
cmp dword [edx + 0x14], 8
jb 0x459a7f
mov edx, dword [edx]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [edx], ax
jne 0x459aaa
xor ecx, ecx
jmp 0x459abf
mov ecx, edx
lea edi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x459ab0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.004077d0
mov byte [ebp - 4], 0x1d
call fcn.00446940
sub esp, 0x18
lea edx, [ebp - 0x28]
mov ecx, esp
mov dword [ebp - 0x134], esp
push edx
push ecx
mov ecx, eax
call fcn.00446800
mov ebx, dword [ebp - 0x164]
sub esp, 8
mov byte [ebp - 4], 0x1e
mov ecx, esp
cmp dword [ebx + 0x14], 8
jb 0x459b02
mov eax, dword [ebx]
jmp 0x459b04
mov eax, ebx
mov dword [ecx], eax
mov eax, dword [ebx + 0x10]
mov dword [ecx + 4], eax
lea eax, [ebp - 0x118]
mov ecx, dword [ebp - 0x168]
push eax
call fcn.00412da0
mov byte [ebp - 4], 0x1f
mov edx, dword [ebp - 0x138]
lea ecx, [ebp - 0x154]
push ecx
lea ecx, [ebp - 0x160]
mov byte [ebp - 4], 0x20
push ecx
push ebx
lea ecx, [edx + 0x88]
push ecx
push eax
mov ecx, edx
call fcn.0045bcf0
mov byte [ebp - 4], 0x1d
mov eax, dword [ebp - 0x104]
cmp eax, 8
jb 0x459b6c
inc eax
lea ecx, [ebp - 0x118]
push eax
push dword [ebp - 0x118]
call fcn.00403930
xor eax, eax
mov dword [ebp - 0x104], 7
mov word [ebp - 0x118], ax
mov dword [ebp - 0x108], 0
mov byte [ebp - 4], 0x1c
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x459ba2
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00403930
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 0x1b
mov eax, dword [ebp - 0x11c]
cmp eax, 8
jb 0x459bd8
inc eax
lea ecx, [ebp - 0x130]
push eax
push dword [ebp - 0x130]
call fcn.00403930
xor eax, eax
mov byte [ebp - 4], 0x1a
mov edi, dword [ebp - 0x154]
mov dword [ebp - 0x11c], 7
mov dword [ebp - 0x120], 0
mov word [ebp - 0x130], ax
test edi, edi
je 0x459c58
push dword [ebp - 0x148]
mov edx, dword [ebp - 0x150]
push ecx
mov ecx, edi
call fcn.0044bca0
mov ecx, dword [ebp - 0x14c]
mov eax, 0x2aaaaaab
sub ecx, edi
add esp, 8
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push edi
call fcn.00413950
mov dword [ebp - 0x154], 0
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x14c], 0
mov byte [ebp - 4], 0x19
mov edi, dword [ebp - 0x160]
test edi, edi
je 0x459cbb
push dword [ebp - 0x148]
mov edx, dword [ebp - 0x15c]
push ecx
mov ecx, edi
call fcn.0044bca0
mov ecx, dword [ebp - 0x158]
mov eax, 0x2aaaaaab
sub ecx, edi
add esp, 8
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push edi
call fcn.00413950
mov dword [ebp - 0x160], 0
mov dword [ebp - 0x15c], 0
mov dword [ebp - 0x158], 0
mov byte [ebp - 4], 0x18
mov eax, dword [ebp - 0x5c]
cmp eax, 0x10
jb 0x459cd4
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00403550
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
mov byte [ebp - 4], 0x17
mov eax, dword [ebp - 0x44]
cmp eax, 0x10
jb 0x459cff
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00403550
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
mov byte [ebp - 4], 0x16
mov eax, dword [ebp - 0x74]
cmp eax, 0x10
jb 0x459d30
inc eax
lea ecx, [ebp - 0x88]
push eax
push dword [ebp - 0x88]
call fcn.00403550
mov dword [ebp - 0x74], 0xf
mov dword [ebp - 0x78], 0
mov byte [ebp - 0x88], 0
mov byte [ebp - 4], 0x12
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x459d5e
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00403550
mov edi, dword [ebp - 0x140]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
add esi, 0x18
cmp esi, edi
jne 0x459775
mov ebx, dword [ebp - 0x144]
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x8c]
cmp eax, 8
jb 0x459da9
inc eax
lea ecx, [ebp - 0xa0]
push eax
push dword [ebp - 0xa0]
call fcn.00403930
xor eax, eax
mov dword [ebp - 0x8c], 7
mov word [ebp - 0xa0], ax
mov dword [ebp - 0x90], 0
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0xa4]
cmp eax, 8
jb 0x459de8
inc eax
lea ecx, [ebp - 0xb8]
push eax
push dword [ebp - 0xb8]
call fcn.00403930
xor eax, eax
mov dword [ebp - 0xa4], 7
mov dword [ebp - 0xa8], 0
mov word [ebp - 0xb8], ax
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x459e61
push dword [ebp - 0x148]
mov edx, edi
push ecx
mov ecx, ebx
call fcn.0044bca0
mov ecx, dword [ebp - 0x13c]
mov eax, 0x2aaaaaab
sub ecx, ebx
add esp, 8
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push ebx
call fcn.00413950
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x13c], 0
mov al, 1
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.00469c8e
mov esp, ebp
pop ebp
ret 0x10