Function at 0x5af697
Capabilities:
Check if file exists

Disassembly:
push 0x1bc
mov eax, 0x5eb9e0
call fcn.005ae057
mov ebx, dword [ebp + 8]
and dword [ebp - 0x1c4], 0
mov dword [ebp - 0x18c], ebx
and dword [ebp - 4], 0
cmp dword [ebp + 0x1c], 0
jne 0x5af6d1
push 0x694738
mov ecx, ebx
call fcn.00402790
jmp 0x5b0203
mov esi, str.__roots
push esi
call fcn.005c1d51
pop ecx
push eax
push 0
push esi
lea ecx, [ebp + 0xc]
call fcn.00405290
cmp eax, 0xffffffff
jne 0x5af725
push 3
sub esp, 0x18
lea eax, [ebp + 0xc]
mov ecx, esp
push eax
call fcn.00404450
lea eax, [ebp - 0x88]
push eax
call fcn.0042abb0
add esp, 0x20
lea ecx, [ebp + 0xc]
push eax
call fcn.004043b0
push 0
push 1
lea ecx, [ebp - 0x88]
call fcn.00402830
sub esp, 0x18
mov edi, 0x694738
mov ecx, esp
mov dword [ebp - 0x164], esp
push edi
call fcn.00402790
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x168], esp
push esi
call fcn.00402790
sub esp, 0x18
mov byte [ebp - 4], 2
lea eax, [ebp + 0xc]
mov ecx, esp
push eax
call fcn.00404450
lea eax, [ebp - 0x130]
mov byte [ebp - 4], 0
push eax
call fcn.005b1e41
add esp, 0x34
mov byte [ebp - 4], 3
mov ecx, esp
mov dword [ebp - 0x164], esp
push edi
call fcn.00402790
sub esp, 0x18
mov byte [ebp - 4], 4
mov ecx, esp
mov dword [ebp - 0x168], esp
push str.__dir1
call fcn.00402790
sub esp, 0x18
mov byte [ebp - 4], 5
lea eax, [ebp + 0xc]
mov ecx, esp
push eax
call fcn.00404450
lea eax, [ebp - 0x160]
mov byte [ebp - 4], 3
push eax
call fcn.005b1e41
add esp, 0x34
mov byte [ebp - 4], 6
mov ecx, esp
mov dword [ebp - 0x164], esp
push edi
call fcn.00402790
sub esp, 0x18
mov byte [ebp - 4], 7
mov ecx, esp
mov dword [ebp - 0x168], esp
push str.__dir2
call fcn.00402790
sub esp, 0x18
mov byte [ebp - 4], 8
lea eax, [ebp + 0xc]
mov ecx, esp
push eax
call fcn.00404450
lea eax, [ebp - 0x148]
mov byte [ebp - 4], 6
push eax
call fcn.005b1e41
add esp, 0x34
mov byte [ebp - 4], 9
mov ecx, esp
mov dword [ebp - 0x164], esp
push edi
call fcn.00402790
sub esp, 0x18
mov byte [ebp - 4], 0xa
mov ecx, esp
mov dword [ebp - 0x168], esp
push str.__find
call fcn.00402790
sub esp, 0x18
mov byte [ebp - 4], 0xb
lea eax, [ebp + 0xc]
mov ecx, esp
push eax
call fcn.00404450
lea eax, [ebp - 0x118]
mov byte [ebp - 4], 9
push eax
call fcn.005b1e41
add esp, 0x34
mov byte [ebp - 4], 0xc
mov ecx, esp
mov dword [ebp - 0x164], esp
push edi
call fcn.00402790
sub esp, 0x18
mov byte [ebp - 4], 0xd
mov ecx, esp
mov dword [ebp - 0x168], esp
push str.__maxver
call fcn.00402790
sub esp, 0x18
mov byte [ebp - 4], 0xe
lea eax, [ebp + 0xc]
mov ecx, esp
push eax
call fcn.00404450
lea eax, [ebp - 0xe8]
mov byte [ebp - 4], 0xc
push eax
call fcn.005b1e41
add esp, 0x34
mov byte [ebp - 4], 0xf
mov ecx, esp
mov dword [ebp - 0x164], esp
push edi
call fcn.00402790
sub esp, 0x18
mov byte [ebp - 4], 0x10
mov ecx, esp
mov dword [ebp - 0x168], esp
push str.__minver
call fcn.00402790
sub esp, 0x18
mov byte [ebp - 4], 0x11
lea eax, [ebp + 0xc]
mov ecx, esp
push eax
call fcn.00404450
lea eax, [ebp - 0xd0]
mov byte [ebp - 4], 0xf
push eax
call fcn.005b1e41
add esp, 0x34
mov byte [ebp - 4], 0x12
mov ecx, esp
mov dword [ebp - 0x164], esp
push edi
call fcn.00402790
sub esp, 0x18
mov byte [ebp - 4], 0x13
mov ecx, esp
mov dword [ebp - 0x168], esp
push str.__filemd5
call fcn.00402790
sub esp, 0x18
mov byte [ebp - 4], 0x14
lea eax, [ebp + 0xc]
mov ecx, esp
push eax
call fcn.00404450
lea eax, [ebp - 0x100]
mov byte [ebp - 4], 0x12
push eax
call fcn.005b1e41
add esp, 0x4c
cmp dword [ebp - 0x120], 0
mov byte [ebp - 4], 0x15
je 0x5b0192
cmp dword [ebp - 0x108], 0
je 0x5b0192
xor ebx, ebx
mov dword [ebp - 0x1bc], ebx
mov dword [ebp - 0x1b8], ebx
mov dword [ebp - 0x1b4], ebx
mov esi, ebx
mov dword [ebp - 0x194], ebx
mov dword [ebp - 0x198], esi
mov dword [ebp - 0x190], ebx
xor eax, eax
mov byte [ebp - 4], 0x17
mov edi, 0x688274
mov dword [ebp - 0x14], 7
push edi
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
call fcn.005c1d51
pop ecx
push eax
push edi
lea ecx, [ebp - 0x28]
call fcn.004028f0
lea eax, [ebp - 0x1bc]
mov byte [ebp - 4], 0x18
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x130]
push eax
call fcn.005b2929
add esp, 0xc
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x28]
push ebx
push 1
call fcn.00402830
mov edi, dword [ebp - 0x1bc]
mov ebx, dword [ebp - 0x1b8]
cmp edi, ebx
je 0x5afa6b
push edi
lea ecx, [ebp - 0x88]
call fcn.00404450
sub esp, 0x18
mov byte [ebp - 4], 0x19
lea eax, [ebp - 0x88]
mov ecx, esp
push eax
call fcn.00404450
lea eax, [ebp - 0x70]
push eax
call fcn.005b05b7
add esp, 0x1c
push eax
lea ecx, [ebp - 0x198]
mov byte [ebp - 4], 0x1a
call fcn.00442a30
push 0
push 1
lea ecx, [ebp - 0x70]
call fcn.00402830
push 0
push 1
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 0x17
call fcn.00402830
add edi, 0x18
cmp edi, ebx
jne 0x5afa02
mov esi, dword [ebp - 0x198]
xor ebx, ebx
mov dword [ebp - 0x1b0], ebx
mov dword [ebp - 0x1ac], ebx
mov dword [ebp - 0x1a8], ebx
xor eax, eax
mov byte [ebp - 4], 0x1b
mov edi, 0x688274
mov dword [ebp - 0x14], 7
push edi
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
call fcn.005c1d51
pop ecx
push eax
push edi
lea ecx, [ebp - 0x28]
call fcn.004028f0
lea eax, [ebp - 0x1b0]
mov byte [ebp - 4], 0x1c
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x160]
push eax
call fcn.005b2929
add esp, 0xc
lea ecx, [ebp - 0x28]
push ebx
push 1
call fcn.00402830
push 7
pop ecx
xor eax, eax
mov dword [ebp - 0xa4], ecx
mov dword [ebp - 0xa8], ebx
mov word [ebp - 0xb8], ax
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0x90], ebx
mov word [ebp - 0xa0], ax
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 0x1e
push eax
lea eax, [ebp - 0xb8]
push eax
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x164], esp
push 0x688278
call fcn.00402790
sub esp, 0x18
mov byte [ebp - 4], 0x1f
lea eax, [ebp - 0x148]
mov ecx, esp
push eax
call fcn.00404450
mov byte [ebp - 4], 0x1e
call fcn.005b2025
add esp, 0x38
mov dword [ebp - 0x188], ebx
mov dword [ebp - 0x184], ebx
mov dword [ebp - 0x180], ebx
mov dword [ebp - 0x17c], ebx
mov dword [ebp - 0x178], ebx
mov dword [ebp - 0x174], ebx
mov byte [ebp - 4], 0x21
cmp esi, dword [ebp - 0x194]
je 0x5afd81
push esi
lea ecx, [ebp - 0x70]
call fcn.00404450
mov edi, dword [ebp - 0x1b0]
mov ebx, dword [ebp - 0x1ac]
mov byte [ebp - 4], 0x22
jmp 0x5afc77
push edi
lea ecx, [ebp - 0x88]
call fcn.00404450
and dword [ebp - 0x30], 0
xor eax, eax
push 7
pop ecx
mov dword [ebp - 0x2c], ecx
mov word [ebp - 0x40], ax
and dword [ebp - 0x48], eax
mov dword [ebp - 0x44], ecx
mov word [ebp - 0x58], ax
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 0x25
push eax
lea eax, [ebp - 0x40]
push eax
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x164], esp
push 0x688278
call fcn.00402790
sub esp, 0x18
mov byte [ebp - 4], 0x26
lea eax, [ebp - 0x88]
mov ecx, esp
push eax
call fcn.00404450
mov byte [ebp - 4], 0x25
call fcn.005b2025
add esp, 0x38
lea edx, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x58]
lea eax, [ebp - 0x70]
cmovae edx, dword [ebp - 0x40]
cmp dword [ebp - 0x44], 8
push edx
cmovae ecx, dword [ebp - 0x58]
cmp dword [ebp - 0x5c], 8
cmovae eax, dword [ebp - 0x70]
mov dword [ebp - 0x170], eax
lea eax, [ebp - 0x17c]
push eax
push ecx
call fcn.005c8490
pop ecx
push eax
push 0x7d0
push dword [ebp - 0x170]
call fcn.005b16ea
add esp, 0x14
lea ecx, [ebp - 0x58]
push 0
push 1
call fcn.00402830
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.00402830
push 0
push 1
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 0x22
call fcn.00402830
add edi, 0x18
cmp edi, ebx
jne 0x5afb97
cmp dword [ebp - 0xa8], 0
je 0x5afd5c
cmp dword [ebp - 0x90], 0
je 0x5afd5c
mov edi, dword [ebp - 0x17c]
mov ebx, dword [ebp - 0x178]
cmp edi, ebx
je 0x5afd39
push edi
lea ecx, [ebp - 0x28]
call fcn.00404450
cmp dword [ebp - 0xa4], 8
lea edx, [ebp - 0xb8]
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0x27
cmovae edx, dword [ebp - 0xb8]
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x8c], 8
push edx
cmovae ecx, dword [ebp - 0xa0]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x170], eax
lea eax, [ebp - 0x188]
push eax
push ecx
call fcn.005c8490
pop ecx
push eax
push 0x7d0
push dword [ebp - 0x170]
call fcn.005b16ea
add esp, 0x14
mov byte [ebp - 4], 0x22
lea ecx, [ebp - 0x28]
push 0
push 1
call fcn.00402830
add edi, 0x18
cmp edi, ebx
jne 0x5afcad
mov ebx, dword [ebp - 0x178]
mov edi, dword [ebp - 0x17c]
push dword [ebp - 0x164]
lea eax, [ebp - 0x17c]
push eax
push ebx
push edi
call fcn.00434d40
mov eax, dword [ebp - 0x17c]
add esp, 0x10
mov dword [ebp - 0x178], eax
xor ebx, ebx
mov byte [ebp - 4], 0x21
push ebx
push 1
lea ecx, [ebp - 0x70]
call fcn.00402830
add esi, 0x18
cmp esi, dword [ebp - 0x194]
jne 0x5afb79
mov edi, 0x688274
cmp dword [ebp - 0xa8], 0
je 0x5afd93
cmp dword [ebp - 0x90], 0
jne 0x5afda5
lea eax, [ebp - 0x17c]
push eax
lea ecx, [ebp - 0x188]
call fcn.0046cf40
mov eax, dword [ebp - 0x188]
cmp eax, dword [ebp - 0x184]
sete al
test al, al
je 0x5afdca
lea eax, [ebp - 0x198]
push eax
lea ecx, [ebp - 0x188]
call fcn.0046cf40
mov dword [ebp - 0x1a4], ebx
mov dword [ebp - 0x1a0], ebx
mov dword [ebp - 0x19c], ebx
xor eax, eax
mov byte [ebp - 4], 0x28
push edi
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
call fcn.005c1d51
pop ecx
push eax
push edi
lea ecx, [ebp - 0x28]
call fcn.004028f0
lea eax, [ebp - 0x1a4]
mov byte [ebp - 4], 0x29
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.005b2929
add esp, 0xc
mov byte [ebp - 4], 0x28
lea ecx, [ebp - 0x28]
push ebx
push 1
call fcn.00402830
mov eax, dword [ebp - 0x184]
mov edi, dword [ebp - 0x188]
mov dword [ebp - 0x164], eax
cmp edi, eax
je 0x5b0125
push edi
lea ecx, [ebp - 0x88]
call fcn.00404450
mov esi, dword [ebp - 0x1a4]
mov ebx, dword [ebp - 0x1a0]
mov byte [ebp - 4], 0x2a
jmp 0x5b00fa
push esi
lea ecx, [ebp - 0x28]
call fcn.00404450
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 0x2b
push eax
lea ecx, [ebp - 0x58]
call fcn.00404450
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0x2c
push eax
lea ecx, [ebp - 0x58]
call fcn.004047b0
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x5b00db
cmp dword [ebp - 0xf0], 0
je 0x5aff16
sub esp, 0x18
lea eax, [ebp - 0x58]
mov ecx, esp
push eax
call fcn.00404450
lea eax, [ebp - 0x70]
push eax
call fcn.005ae98f
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 0x2d
push eax
call fcn.005b2cb3
lea eax, [ebp - 0x100]
push eax
call fcn.005b2cb3
add esp, 0x24
lea eax, [ebp - 0x100]
lea ecx, [ebp - 0x70]
push eax
call fcn.00408770
lea ecx, [ebp - 0x70]
push 0
push 1
test eax, eax
jne 0x5b00d6
mov byte [ebp - 4], 0x2c
call fcn.00402830
cmp dword [ebp - 0xd8], 0
jne 0x5aff2c
cmp dword [ebp - 0xc0], 0
je 0x5b0217
xor eax, eax
lea ecx, [ebp - 0x40]
push eax
push eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
call fcn.00402830
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0x168]
push ecx
lea ecx, [ebp - 0x16c]
mov byte [ebp - 4], 0x2e
push ecx
lea ecx, [ebp - 0x1c0]
push ecx
lea ecx, [ebp - 0x170]
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push ecx
push eax
call fcn.005aecae
add esp, 0x14
test al, al
je 0x5b00cf
push dword [ebp - 0x170]
lea eax, [ebp - 0x70]
push eax
call fcn.005b1a63
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.004043b0
push 0
push 1
lea ecx, [ebp - 0x70]
call fcn.00402830
push 0x694818
lea ecx, [ebp - 0x40]
call fcn.00404340
push dword [ebp - 0x1c0]
lea eax, [ebp - 0x70]
push eax
call fcn.005b1a63
pop ecx
pop ecx
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x2f
call fcn.004047b0
push 0
push 1
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0x2e
call fcn.00402830
push 0x694818
lea ecx, [ebp - 0x40]
call fcn.00404340
push dword [ebp - 0x16c]
lea eax, [ebp - 0x70]
push eax
call fcn.005b1a63
pop ecx
pop ecx
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x30
call fcn.004047b0
push 0
push 1
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0x2e
call fcn.00402830
push 0x694818
lea ecx, [ebp - 0x40]
call fcn.00404340
push dword [ebp - 0x168]
lea eax, [ebp - 0x70]
push eax
call fcn.005b1a63
pop ecx
pop ecx
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x31
call fcn.004047b0
push 0
push 1
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0x2e
call fcn.00402830
cmp dword [ebp - 0xd8], 0
je 0x5b0092
cmp dword [ebp - 0xd4], 8
lea ecx, [ebp - 0xe8]
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0xe8]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.005c1def
pop ecx
pop ecx
test eax, eax
jg 0x5b00cf
cmp dword [ebp - 0xc0], 0
je 0x5b0322
cmp dword [ebp - 0xbc], 8
lea ecx, [ebp - 0xd0]
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0xd0]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.005c1def
pop ecx
pop ecx
test eax, eax
jns 0x5b0322
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.00402830
push 0
push 1
lea ecx, [ebp - 0x58]
call fcn.00402830
push 0
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x2a
call fcn.00402830
add esi, 0x18
cmp esi, ebx
jne 0x5afe69
xor ebx, ebx
mov byte [ebp - 4], 0x28
push ebx
push 1
lea ecx, [ebp - 0x88]
call fcn.00402830
add edi, 0x18
cmp edi, dword [ebp - 0x164]
jne 0x5afe48
lea ecx, [ebp - 0x1a4]
call fcn.00436380
lea ecx, [ebp - 0x17c]
call fcn.00436380
lea ecx, [ebp - 0x188]
call fcn.00436380
push ebx
push 1
lea ecx, [ebp - 0xa0]
call fcn.00402830
push ebx
push 1
lea ecx, [ebp - 0xb8]
call fcn.00402830
lea ecx, [ebp - 0x1b0]
call fcn.00436380
lea ecx, [ebp - 0x198]
call fcn.00436380
lea ecx, [ebp - 0x1bc]
mov byte [ebp - 4], 0x15
call fcn.00436380
mov ebx, dword [ebp - 0x18c]
mov edi, 0x694738
push edi
mov ecx, ebx
call fcn.00402790
push 0
push 1
lea ecx, [ebp - 0x100]
call fcn.00402830
push 0
push 1
lea ecx, [ebp - 0xd0]
call fcn.00402830
push 0
push 1
lea ecx, [ebp - 0xe8]
call fcn.00402830
push 0
push 1
lea ecx, [ebp - 0x118]
call fcn.00402830
push 0
push 1
lea ecx, [ebp - 0x148]
call fcn.00402830
push 0
push 1
lea ecx, [ebp - 0x160]
call fcn.00402830
push 0
push 1
lea ecx, [ebp - 0x130]
call fcn.00402830
push 0
push 1
lea ecx, [ebp + 0xc]
call fcn.00402830
mov eax, ebx
call fcn.005ae012
ret
mov ecx, dword [ebp - 0x18c]
lea eax, [ebp - 0x58]
push eax
call fcn.00404ab0
xor ebx, ebx
push ebx
push 1
lea ecx, [ebp - 0x58]
call fcn.00402830
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.00402830
push ebx
push 1
lea ecx, [ebp - 0x88]
call fcn.00402830
lea ecx, [ebp - 0x1a4]
call fcn.00436380
lea ecx, [ebp - 0x17c]
call fcn.00436380
lea ecx, [ebp - 0x188]
call fcn.00436380
push ebx
push 1
lea ecx, [ebp - 0xa0]
call fcn.00402830
push ebx
push 1
lea ecx, [ebp - 0xb8]
call fcn.00402830
lea ecx, [ebp - 0x1b0]
call fcn.00436380
lea ecx, [ebp - 0x198]
call fcn.00436380
lea ecx, [ebp - 0x1bc]
call fcn.00436380
push ebx
push 1
lea ecx, [ebp - 0x100]
call fcn.00402830
push ebx
push 1
lea ecx, [ebp - 0xd0]
call fcn.00402830
push ebx
push 1
lea ecx, [ebp - 0xe8]
call fcn.00402830
push ebx
push 1
lea ecx, [ebp - 0x118]
call fcn.00402830
push ebx
push 1
lea ecx, [ebp - 0x148]
call fcn.00402830
push ebx
push 1
lea ecx, [ebp - 0x160]
call fcn.00402830
push ebx
push 1
lea ecx, [ebp - 0x130]
call fcn.00402830
push ebx
push 1
lea ecx, [ebp + 0xc]
call fcn.00402830
mov eax, dword [ebp - 0x18c]
jmp 0x5b0211
mov ecx, dword [ebp - 0x18c]
lea eax, [ebp - 0x58]
push eax
call fcn.00404ab0
xor ebx, ebx
lea ecx, [ebp - 0x40]
push ebx
push 1
call fcn.00402830
jmp 0x5b0228