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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4279b1
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x438070]
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 esi, ecx
mov ebx, dword [ebp + 8]
call fcn.00408cc0
test al, al
je 0x407df3
cmp dword [esi + 0x30], 8
lea edi, [esi + 0x1c]
jb 0x407dd9
mov eax, dword [edi]
jmp 0x407ddb
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x407e13
mov edx, dword [esi + 0x7c]
lea ecx, [esi + 0x34]
inc edx
call fcn.00407300
xor al, al
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.0040f9d4
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x14], 0x20
jne 0x407de7
call fcn.00408b00
test al, al
jne 0x407df3
call fcn.00408be0
test al, al
jne 0x407df3
cmp dword [esi], 3
jne 0x407eda
sub esp, 0xc
mov ecx, edi
call fcn.00409a10
cmp eax, 0xffffffff
je 0x407df3
push 0xffffffffffffffff
inc eax
mov ecx, edi
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.004099d0
lea ecx, [ebp - 0xa4]
mov dword [ebp - 4], 0
call fcn.0040bef0
cmp eax, 1
jl 0x407e73
test ebx, ebx
je 0x407e73
mov byte [ebx], 1
mov eax, dword [ebp - 0x90]
cmp eax, 8
jb 0x407df3
mov ecx, dword [ebp - 0xa4]
inc eax
cmp eax, 0x7fffffff
jbe 0x407e95
call fcn.00418f5c
add eax, eax
cmp eax, 0x1000
jb 0x407ecc
test cl, 0x1f
je 0x407ea8
call fcn.00418f5c
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x407eb4
call fcn.00418f5c
sub ecx, eax
cmp ecx, 4
jae 0x407ec0
call fcn.00418f5c
cmp ecx, 0x23
jbe 0x407eca
call fcn.00418f5c
mov ecx, eax
push ecx
call fcn.0040fea4
add esp, 4
jmp 0x407df3
mov dword [ebp - 0x60], 0xf
mov dword [ebp - 0x64], 0
mov byte [ebp - 0x74], 0
mov dword [ebp - 4], 1
cmp dword [edi + 0x14], 8
jb 0x407efd
mov ecx, dword [edi]
jmp 0x407eff
mov ecx, edi
lea eax, [ebp - 0x74]
push eax
push ecx
call fcn.0040d7d0
add esp, 8
test al, al
jne 0x407f41
mov edx, dword [esi + 0x7c]
lea ecx, [esi + 0x34]
inc edx
call fcn.00407300
mov eax, dword [ebp - 0x60]
cmp eax, 0x10
jb 0x407df3
mov ecx, dword [ebp - 0x74]
inc eax
cmp eax, 0x1000
jb 0x407ecc
test cl, 0x1f
je 0x407ea8
call fcn.00418f5c
lea ebx, [esi + 4]
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00402916
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x1c]
test edx, edx
je 0x407f68
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
call fcn.0040c500
lea edx, [ebp - 0x74]
lea ecx, [ebp - 0x5c]
call fcn.00407820
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
call fcn.00407820
mov byte [ebp - 4], 4
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x30], 0x10
lea ecx, [ebp - 0x5c]
push dword [ebp - 0x34]
cmovae eax, dword [ebp - 0x44]
cmp dword [ebp - 0x48], 0x10
mov edx, dword [ebp - 0x4c]
cmovae ecx, dword [ebp - 0x5c]
push eax
call fcn.0040a140
add esp, 8
test eax, eax
je 0x4081df
push str.HashEqual
lea ecx, [ebp - 0xa4]
call fcn.004028ac
mov edx, ebx
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x8c]
call fcn.00406f50
push eax
lea edx, [ebp - 0xa4]
lea ecx, [esi + 0x34]
call fcn.00407370
mov eax, dword [ebp - 0x78]
add esp, 4
cmp eax, 8
jb 0x408045
mov ecx, dword [ebp - 0x8c]
inc eax
cmp eax, 0x7fffffff
jbe 0x408001
call fcn.00418f5c
add eax, eax
cmp eax, 0x1000
jb 0x40803c
test byte [ebp - 0x8c], 0x1f
je 0x408018
call fcn.00418f5c
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x408024
call fcn.00418f5c
sub ecx, eax
cmp ecx, 4
jae 0x408030
call fcn.00418f5c
cmp ecx, 0x23
jbe 0x40803a
call fcn.00418f5c
mov ecx, eax
push ecx
call fcn.0040fea4
add esp, 4
xor eax, eax
mov dword [ebp - 0x78], 7
mov word [ebp - 0x8c], ax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x7c], 0
cmp eax, 8
jb 0x4080ba
mov ecx, dword [ebp - 0xa4]
inc eax
cmp eax, 0x7fffffff
jbe 0x40807a
call fcn.00418f5c
add eax, eax
cmp eax, 0x1000
jb 0x4080b1
test cl, 0x1f
je 0x40808d
call fcn.00418f5c
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x408099
call fcn.00418f5c
sub ecx, eax
cmp ecx, 4
jae 0x4080a5
call fcn.00418f5c
cmp ecx, 0x23
jbe 0x4080af
call fcn.00418f5c
mov ecx, eax
push ecx
call fcn.0040fea4
add esp, 4
mov edx, dword [esi + 0x7c]
lea ecx, [esi + 0x34]
inc edx
call fcn.00407300
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x408110
mov ecx, dword [ebp - 0x44]
inc eax
cmp eax, 0x1000
jb 0x408107
test cl, 0x1f
je 0x4080e3
call fcn.00418f5c
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x4080ef
call fcn.00418f5c
sub ecx, eax
cmp ecx, 4
jae 0x4080fb
call fcn.00418f5c
cmp ecx, 0x23
jbe 0x408105
call fcn.00418f5c
mov ecx, eax
push ecx
call fcn.0040fea4
add esp, 4
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
cmp eax, 0x10
jb 0x40816c
mov ecx, dword [ebp - 0x5c]
inc eax
cmp eax, 0x1000
jb 0x408163
test cl, 0x1f
je 0x40813f
call fcn.00418f5c
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x40814b
call fcn.00418f5c
sub ecx, eax
cmp ecx, 4
jae 0x408157
call fcn.00418f5c
cmp ecx, 0x23
jbe 0x408161
call fcn.00418f5c
mov ecx, eax
push ecx
call fcn.0040fea4
add esp, 4
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x5c], 0
cmp eax, 0x10
jb 0x4081c8
mov ecx, dword [ebp - 0x2c]
inc eax
cmp eax, 0x1000
jb 0x4081bf
test cl, 0x1f
je 0x40819b
call fcn.00418f5c
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x4081a7
call fcn.00418f5c
sub ecx, eax
cmp ecx, 4
jae 0x4081b3
call fcn.00418f5c
cmp ecx, 0x23
jbe 0x4081bd
call fcn.00418f5c
mov ecx, eax
push ecx
call fcn.0040fea4
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
jmp 0x407f1c
call fcn.00407740
test al, al
je 0x408400
push edi
call fcn.00409720
test al, al
jne 0x408400
push 0x434940
lea ecx, [ebp - 0xbc]
call fcn.004028ac
push str.Signature
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 6
call fcn.004028ac
lea eax, [ebp - 0xbc]
push eax
lea edx, [ebp - 0x8c]
lea ecx, [esi + 0x34]
call fcn.00407370
mov eax, dword [ebp - 0x78]
add esp, 4
cmp eax, 8
jb 0x40828c
mov ecx, dword [ebp - 0x8c]
inc eax
cmp eax, 0x7fffffff
ja 0x407f3c
add eax, eax
cmp eax, 0x1000
jb 0x408283
test cl, 0x1f
jne 0x407f3c
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x407f3c
sub ecx, eax
cmp ecx, 4
jb 0x407f3c
cmp ecx, 0x23
ja 0x407f3c
mov ecx, eax
push ecx
call fcn.0040fea4
add esp, 4
xor eax, eax
mov dword [ebp - 0x78], 7
mov word [ebp - 0x8c], ax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x7c], 0
cmp eax, 8
jb 0x4082fc
mov ecx, dword [ebp - 0xbc]
inc eax
cmp eax, 0x7fffffff
ja 0x407f3c
add eax, eax
cmp eax, 0x1000
jb 0x4082f3
test cl, 0x1f
jne 0x407f3c
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x407f3c
sub ecx, eax
cmp ecx, 4
jb 0x407f3c
cmp ecx, 0x23
ja 0x407f3c
mov ecx, eax
push ecx
call fcn.0040fea4
add esp, 4
mov edx, dword [esi + 0x7c]
lea ecx, [esi + 0x34]
inc edx
call fcn.00407300
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x40834e
mov ecx, dword [ebp - 0x44]
inc eax
cmp eax, 0x1000
jb 0x408345
test cl, 0x1f
jne 0x407f3c
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x407f3c
sub ecx, eax
cmp ecx, 4
jb 0x407f3c
cmp ecx, 0x23
ja 0x407f3c
mov ecx, eax
push ecx
call fcn.0040fea4
add esp, 4
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
cmp eax, 0x10
jb 0x4083a6
mov ecx, dword [ebp - 0x5c]
inc eax
cmp eax, 0x1000
jb 0x40839d
test cl, 0x1f
jne 0x407f3c
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x407f3c
sub ecx, eax
cmp ecx, 4
jb 0x407f3c
cmp ecx, 0x23
ja 0x407f3c
mov ecx, eax
push ecx
call fcn.0040fea4
add esp, 4
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x5c], 0
cmp eax, 0x10
jb 0x4081c8
mov ecx, dword [ebp - 0x2c]
inc eax
cmp eax, 0x1000
jb 0x4081bf
test cl, 0x1f
jne 0x407f3c
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x407f3c
sub ecx, eax
cmp ecx, 4
jb 0x407f3c
cmp ecx, 0x23
jbe 0x4081bd
jmp 0x407f3c
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x408446
mov ecx, dword [ebp - 0x44]
inc eax
cmp eax, 0x1000
jb 0x40843d
test cl, 0x1f
jne 0x407f3c
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x407f3c
sub ecx, eax
cmp ecx, 4
jb 0x407f3c
cmp ecx, 0x23
ja 0x407f3c
mov ecx, eax
push ecx
call fcn.0040fea4
add esp, 4
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
cmp eax, 0x10
jb 0x40849e
mov ecx, dword [ebp - 0x5c]
inc eax
cmp eax, 0x1000
jb 0x408495
test cl, 0x1f
jne 0x407f3c
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x407f3c
sub ecx, eax
cmp ecx, 4
jb 0x407f3c
cmp ecx, 0x23
ja 0x407f3c
mov ecx, eax
push ecx
call fcn.0040fea4
add esp, 4
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x5c], 0
cmp eax, 0x10
jb 0x4084f6
mov ecx, dword [ebp - 0x2c]
inc eax
cmp eax, 0x1000
jb 0x4084ed
test cl, 0x1f
jne 0x407f3c
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x407f3c
sub ecx, eax
cmp ecx, 4
jb 0x407f3c
cmp ecx, 0x23
ja 0x407f3c
mov ecx, eax
push ecx
call fcn.0040fea4
add esp, 4
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
cmp eax, 0x10
jb 0x40854e
mov ecx, dword [ebp - 0x74]
inc eax
cmp eax, 0x1000
jb 0x408545
test cl, 0x1f
jne 0x407f3c
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x407f3c
sub ecx, eax
cmp ecx, 4
jb 0x407f3c
cmp ecx, 0x23
ja 0x407f3c
mov ecx, eax
push ecx
call fcn.0040fea4
add esp, 4
mov al, 1
jmp 0x407df5