Function at 0x4578a0
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 0x4578f8
xor al, al
jmp 0x4584c3
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 0x457936
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, 0x5612fc
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 0x45797d
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 0x4579b9
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00403930
xor eax, eax
mov dword [ebp - 0x14], 7
push 0xd
mov edx, 0x5612a0
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 0x4579ee
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 0x457a4f
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x457a28
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 0x457a40
mov eax, dword [esi]
jmp 0x457a42
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 0x457a68
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 0x457a95
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 0x457ac5
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 0x457b09
mov ecx, dword [eax]
jmp 0x457b0b
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 0x457b3a
push 0xffffffffffffffff
push 0
push eax
call fcn.00407b20
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x457b53
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 0x457b83
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 0x457bbd
mov eax, dword [edi]
jmp 0x457bbf
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x457bd7
push edi
lea ecx, [ebp - 0x144]
call fcn.0044b8a0
push 8
mov edx, 0x5612ec
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 0x457c08
mov esi, dword [esi]
sub esp, 8
mov ecx, esp
mov dword [ecx], esi
test esi, esi
je 0x457c2f
cmp word [esi], 0
jne 0x457c1d
xor esi, esi
jmp 0x457c2f
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x457c20
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 0x457c59
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 0x457c86
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, 0x5612bc
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 0x457ccb
mov esi, dword [esi]
sub esp, 8
mov ecx, esp
mov dword [ecx], esi
test esi, esi
je 0x457cf2
cmp word [esi], 0
jne 0x457ce0
xor esi, esi
jmp 0x457cf2
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x457ce3
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 0x457d1c
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 0x457d49
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 0x457d91
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 0x457dbf
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 0x4583e7
cmp dword [esi + 0x14], 8
jb 0x457ddf
mov eax, dword [esi]
jmp 0x457de1
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4583d6
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 0x457e31
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 0x457e53
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 0x457eaa
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 0x457ecc
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 0x457f27
push 0xffffffffffffffff
push 0
push eax
call fcn.00407b20
mov byte [ebp - 4], 0x12
mov eax, dword [ebp - 0xec]
cmp eax, 8
jb 0x457f49
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 0x457fe8
cmp dword [ebp - 0x30], 0
je 0x457fe8
mov ecx, dword [ebp - 0x138]
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0045d330
test al, al
je 0x457fe8
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 0x458078
cmp dword [ebp - 0x48], 0
je 0x458078
mov ecx, dword [ebp - 0x138]
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0045d250
test al, al
je 0x458078
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, 0x5612b0
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 0x4580df
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 0x45810a
xor ecx, ecx
jmp 0x45811f
mov ecx, edx
lea edi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x458110
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 0x458162
mov eax, dword [ebx]
jmp 0x458164
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 0x4581cc
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 0x458202
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 0x458238
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 0x4582b8
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 0x45831b
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 0x458334
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 0x45835f
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 0x458390
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 0x4583be
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 0x457dd5
mov ebx, dword [ebp - 0x144]
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x8c]
cmp eax, 8
jb 0x458409
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 0x458448
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 0x4584c1
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