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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427051
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.004086c0
test al, al
je 0x407923
cmp dword [esi + 0x30], 8
lea edi, [esi + 0x1c]
jb 0x407909
mov eax, dword [edi]
jmp 0x40790b
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x407943
mov edx, dword [esi + 0x7c]
lea ecx, [esi + 0x34]
inc edx
call fcn.00406e30
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.0040f284
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x14], 0x20
jne 0x407917
call fcn.004085e0
test al, al
jne 0x407923
cmp dword [esi], 3
jne 0x407a01
sub esp, 0xc
mov ecx, edi
call fcn.00409350
cmp eax, 0xffffffff
je 0x407923
push 0xffffffffffffffff
inc eax
mov ecx, edi
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.00409310
lea ecx, [ebp - 0xa4]
mov dword [ebp - 4], 0
call fcn.0040b7a0
cmp eax, 1
jl 0x40799a
test ebx, ebx
je 0x40799a
mov byte [ebx], 1
mov eax, dword [ebp - 0x90]
cmp eax, 8
jb 0x407923
mov ecx, dword [ebp - 0xa4]
inc eax
cmp eax, 0x7fffffff
jbe 0x4079bc
call fcn.0041873b
add eax, eax
cmp eax, 0x1000
jb 0x4079f3
test cl, 0x1f
je 0x4079cf
call fcn.0041873b
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x4079db
call fcn.0041873b
sub ecx, eax
cmp ecx, 4
jae 0x4079e7
call fcn.0041873b
cmp ecx, 0x23
jbe 0x4079f1
call fcn.0041873b
mov ecx, eax
push ecx
call fcn.0040f771
add esp, 4
jmp 0x407923
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 0x407a24
mov ecx, dword [edi]
jmp 0x407a26
mov ecx, edi
lea eax, [ebp - 0x74]
push eax
push ecx
call fcn.0040d080
add esp, 8
test al, al
jne 0x407a68
mov edx, dword [esi + 0x7c]
lea ecx, [esi + 0x34]
inc edx
call fcn.00406e30
mov eax, dword [ebp - 0x60]
cmp eax, 0x10
jb 0x407923
mov ecx, dword [ebp - 0x74]
inc eax
cmp eax, 0x1000
jb 0x4079f3
test cl, 0x1f
je 0x4079cf
call fcn.0041873b
lea ebx, [esi + 4]
push ebx
lea ecx, [ebp - 0x2c]
call fcn.004028e3
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x1c]
test edx, edx
je 0x407a8f
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
call fcn.0040bdb0
lea edx, [ebp - 0x74]
lea ecx, [ebp - 0x5c]
call fcn.00407350
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
call fcn.00407350
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.00409a80
add esp, 8
test eax, eax
je 0x407d06
push str.HashEqual
lea ecx, [ebp - 0xa4]
call fcn.00402879
mov edx, ebx
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x8c]
call fcn.00406a80
push eax
lea edx, [ebp - 0xa4]
lea ecx, [esi + 0x34]
call fcn.00406ea0
mov eax, dword [ebp - 0x78]
add esp, 4
cmp eax, 8
jb 0x407b6c
mov ecx, dword [ebp - 0x8c]
inc eax
cmp eax, 0x7fffffff
jbe 0x407b28
call fcn.0041873b
add eax, eax
cmp eax, 0x1000
jb 0x407b63
test byte [ebp - 0x8c], 0x1f
je 0x407b3f
call fcn.0041873b
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x407b4b
call fcn.0041873b
sub ecx, eax
cmp ecx, 4
jae 0x407b57
call fcn.0041873b
cmp ecx, 0x23
jbe 0x407b61
call fcn.0041873b
mov ecx, eax
push ecx
call fcn.0040f771
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 0x407be1
mov ecx, dword [ebp - 0xa4]
inc eax
cmp eax, 0x7fffffff
jbe 0x407ba1
call fcn.0041873b
add eax, eax
cmp eax, 0x1000
jb 0x407bd8
test cl, 0x1f
je 0x407bb4
call fcn.0041873b
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x407bc0
call fcn.0041873b
sub ecx, eax
cmp ecx, 4
jae 0x407bcc
call fcn.0041873b
cmp ecx, 0x23
jbe 0x407bd6
call fcn.0041873b
mov ecx, eax
push ecx
call fcn.0040f771
add esp, 4
mov edx, dword [esi + 0x7c]
lea ecx, [esi + 0x34]
inc edx
call fcn.00406e30
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x407c37
mov ecx, dword [ebp - 0x44]
inc eax
cmp eax, 0x1000
jb 0x407c2e
test cl, 0x1f
je 0x407c0a
call fcn.0041873b
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x407c16
call fcn.0041873b
sub ecx, eax
cmp ecx, 4
jae 0x407c22
call fcn.0041873b
cmp ecx, 0x23
jbe 0x407c2c
call fcn.0041873b
mov ecx, eax
push ecx
call fcn.0040f771
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 0x407c93
mov ecx, dword [ebp - 0x5c]
inc eax
cmp eax, 0x1000
jb 0x407c8a
test cl, 0x1f
je 0x407c66
call fcn.0041873b
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x407c72
call fcn.0041873b
sub ecx, eax
cmp ecx, 4
jae 0x407c7e
call fcn.0041873b
cmp ecx, 0x23
jbe 0x407c88
call fcn.0041873b
mov ecx, eax
push ecx
call fcn.0040f771
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 0x407cef
mov ecx, dword [ebp - 0x2c]
inc eax
cmp eax, 0x1000
jb 0x407ce6
test cl, 0x1f
je 0x407cc2
call fcn.0041873b
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x407cce
call fcn.0041873b
sub ecx, eax
cmp ecx, 4
jae 0x407cda
call fcn.0041873b
cmp ecx, 0x23
jbe 0x407ce4
call fcn.0041873b
mov ecx, eax
push ecx
call fcn.0040f771
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
jmp 0x407a43
call fcn.00407270
test al, al
je 0x407f27
push edi
call fcn.00409120
test al, al
jne 0x407f27
push 0x4345ec
lea ecx, [ebp - 0xbc]
call fcn.00402879
push str.Signature
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 6
call fcn.00402879
lea eax, [ebp - 0xbc]
push eax
lea edx, [ebp - 0x8c]
lea ecx, [esi + 0x34]
call fcn.00406ea0
mov eax, dword [ebp - 0x78]
add esp, 4
cmp eax, 8
jb 0x407db3
mov ecx, dword [ebp - 0x8c]
inc eax
cmp eax, 0x7fffffff
ja 0x407a63
add eax, eax
cmp eax, 0x1000
jb 0x407daa
test cl, 0x1f
jne 0x407a63
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x407a63
sub ecx, eax
cmp ecx, 4
jb 0x407a63
cmp ecx, 0x23
ja 0x407a63
mov ecx, eax
push ecx
call fcn.0040f771
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 0x407e23
mov ecx, dword [ebp - 0xbc]
inc eax
cmp eax, 0x7fffffff
ja 0x407a63
add eax, eax
cmp eax, 0x1000
jb 0x407e1a
test cl, 0x1f
jne 0x407a63
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x407a63
sub ecx, eax
cmp ecx, 4
jb 0x407a63
cmp ecx, 0x23
ja 0x407a63
mov ecx, eax
push ecx
call fcn.0040f771
add esp, 4
mov edx, dword [esi + 0x7c]
lea ecx, [esi + 0x34]
inc edx
call fcn.00406e30
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x407e75
mov ecx, dword [ebp - 0x44]
inc eax
cmp eax, 0x1000
jb 0x407e6c
test cl, 0x1f
jne 0x407a63
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x407a63
sub ecx, eax
cmp ecx, 4
jb 0x407a63
cmp ecx, 0x23
ja 0x407a63
mov ecx, eax
push ecx
call fcn.0040f771
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 0x407ecd
mov ecx, dword [ebp - 0x5c]
inc eax
cmp eax, 0x1000
jb 0x407ec4
test cl, 0x1f
jne 0x407a63
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x407a63
sub ecx, eax
cmp ecx, 4
jb 0x407a63
cmp ecx, 0x23
ja 0x407a63
mov ecx, eax
push ecx
call fcn.0040f771
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 0x407cef
mov ecx, dword [ebp - 0x2c]
inc eax
cmp eax, 0x1000
jb 0x407ce6
test cl, 0x1f
jne 0x407a63
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x407a63
sub ecx, eax
cmp ecx, 4
jb 0x407a63
cmp ecx, 0x23
jbe 0x407ce4
jmp 0x407a63
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x407f6d
mov ecx, dword [ebp - 0x44]
inc eax
cmp eax, 0x1000
jb 0x407f64
test cl, 0x1f
jne 0x407a63
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x407a63
sub ecx, eax
cmp ecx, 4
jb 0x407a63
cmp ecx, 0x23
ja 0x407a63
mov ecx, eax
push ecx
call fcn.0040f771
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 0x407fc5
mov ecx, dword [ebp - 0x5c]
inc eax
cmp eax, 0x1000
jb 0x407fbc
test cl, 0x1f
jne 0x407a63
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x407a63
sub ecx, eax
cmp ecx, 4
jb 0x407a63
cmp ecx, 0x23
ja 0x407a63
mov ecx, eax
push ecx
call fcn.0040f771
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 0x40801d
mov ecx, dword [ebp - 0x2c]
inc eax
cmp eax, 0x1000
jb 0x408014
test cl, 0x1f
jne 0x407a63
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x407a63
sub ecx, eax
cmp ecx, 4
jb 0x407a63
cmp ecx, 0x23
ja 0x407a63
mov ecx, eax
push ecx
call fcn.0040f771
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 0x408075
mov ecx, dword [ebp - 0x74]
inc eax
cmp eax, 0x1000
jb 0x40806c
test cl, 0x1f
jne 0x407a63
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x407a63
sub ecx, eax
cmp ecx, 4
jb 0x407a63
cmp ecx, 0x23
ja 0x407a63
mov ecx, eax
push ecx
call fcn.0040f771
add esp, 4
mov al, 1
jmp 0x407925