Function at 0x413402
Capabilities:
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push 0x944
mov eax, 0x46c42e
call fcn.004525cd
mov eax, dword [ebp + 8]
mov esi, str.0123456789abcdef
lea edi, [ebp - 0x8b8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor ebx, ebx
push ebx
push 0x8000000
movsd dword es:[edi], dword [esi]
push 3
movsb byte es:[edi], byte [esi]
pop edi
push edi
push ebx
xor esi, esi
inc esi
push esi
push SysReAllocString
push eax
mov dword [ebp - 0x938], eax
mov dword [ebp - 0x950], ecx
mov dword [ebp - 0x94c], ebx
mov dword [ebp - 0x940], ebx
mov dword [ebp - 0x944], ebx
mov dword [ebp - 0x948], ebx
mov dword [ebp - 0x934], 0x18
call dword [sym.imp.kernel32.dll_CreateFileA]
mov dword [ebp - 0x93c], eax
cmp eax, 0xffffffff
jne 0x413570
cmp dword [0x49c100], edi
jg 0x413569
push str.Error_opening_file___s_
lea ecx, [ebp - 0x850]
call fcn.0040246d
push str._s_failed_with__s
lea ecx, [ebp - 0x8c0]
mov dword [ebp - 4], ebx
call fcn.0040246d
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
lea eax, [ebp - 0x86c]
push eax
call fcn.00421819
add esp, 0xc
mov dword [ebp - 0x934], eax
lea eax, [ebp - 0x888]
push eax
lea eax, [ebp - 0x938]
lea ecx, [ebp - 0x850]
mov byte [ebp - 4], 2
call fcn.0044a640
pop ecx
mov edx, eax
lea eax, [ebp - 0x8a4]
push eax
mov eax, dword [ebp - 0x934]
lea ecx, [ebp - 0x8c0]
mov byte [ebp - 4], 3
call fcn.0044a640
mov byte [ebp - 4], 4
mov dword [esp], str.getCheckSum
push 0x2e
push str.c:_adejenkinsworkspace8_2_build_windows_i586_cygwinjdk8u241331install_srcwindowswrapperscommonUpdateUtils.hpp
push edi
mov edx, eax
mov ecx, 0x49c100
call fcn.00421538
push ebx
push esi
lea ecx, [ebp - 0x8a4]
call fcn.0040321f
push ebx
push esi
lea ecx, [ebp - 0x888]
call fcn.0040321f
push ebx
push esi
lea ecx, [ebp - 0x86c]
call fcn.0040321f
push ebx
push esi
lea ecx, [ebp - 0x8c0]
call fcn.0040321f
push ebx
push esi
lea ecx, [ebp - 0x850]
call fcn.0040321f
xor eax, eax
jmp 0x413a42
cmp dword [ebp + 0xc], 0x8004
jne 0x413581
mov dword [ebp - 0x934], esi
jmp 0x413594
cmp dword [ebp + 0xc], 0x800c
jne 0x413594
mov dword [ebp - 0x934], 0x18
push 0xf0000000
push dword [ebp - 0x934]
lea eax, [ebp - 0x944]
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x41368c
cmp dword [0x49c100], edi
jg 0x41367b
push str._s_failed_with__s
lea ecx, [ebp - 0x850]
call fcn.0040246d
push ebx
mov dword [ebp - 4], 5
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
lea eax, [ebp - 0x8a4]
push eax
call fcn.00421819
add esp, 0xc
mov dword [ebp - 0x938], eax
push str.CryptAcquireContext
lea ecx, [ebp - 0x888]
mov byte [ebp - 4], 6
call fcn.0040246d
mov edx, eax
lea eax, [ebp - 0x86c]
mov byte [ebp - 4], 7
push eax
mov eax, dword [ebp - 0x938]
lea ecx, [ebp - 0x850]
call fcn.0044a640
mov byte [ebp - 4], 8
mov dword [esp], str.getCheckSum
push 0x3b
push str.c:_adejenkinsworkspace8_2_build_windows_i586_cygwinjdk8u241331install_srcwindowswrapperscommonUpdateUtils.hpp
push edi
mov edx, eax
mov ecx, 0x49c100
call fcn.00421538
push ebx
push esi
lea ecx, [ebp - 0x86c]
call fcn.0040321f
push ebx
push esi
lea ecx, [ebp - 0x888]
call fcn.0040321f
push ebx
push esi
lea ecx, [ebp - 0x8a4]
call fcn.0040321f
push ebx
push esi
lea ecx, [ebp - 0x850]
call fcn.0040321f
push dword [ebp - 0x93c]
call dword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x413569
lea eax, [ebp - 0x948]
push eax
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp - 0x944]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x41378f
cmp dword [0x49c100], edi
jg 0x413771
push str._s_failed_with__s
lea ecx, [ebp - 0x850]
call fcn.0040246d
push ebx
mov dword [ebp - 4], 9
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
lea eax, [ebp - 0x8a4]
push eax
call fcn.00421819
add esp, 0xc
mov dword [ebp - 0x938], eax
push 0x47b49c
lea ecx, [ebp - 0x888]
mov byte [ebp - 4], 0xa
call fcn.0040246d
mov edx, eax
lea eax, [ebp - 0x86c]
mov byte [ebp - 4], 0xb
push eax
mov eax, dword [ebp - 0x938]
lea ecx, [ebp - 0x850]
call fcn.0044a640
mov byte [ebp - 4], 0xc
mov dword [esp], str.getCheckSum
push 0x41
push str.c:_adejenkinsworkspace8_2_build_windows_i586_cygwinjdk8u241331install_srcwindowswrapperscommonUpdateUtils.hpp
push edi
mov edx, eax
mov ecx, 0x49c100
call fcn.00421538
push ebx
push esi
lea ecx, [ebp - 0x86c]
call fcn.0040321f
push ebx
push esi
lea ecx, [ebp - 0x888]
call fcn.0040321f
push ebx
push esi
lea ecx, [ebp - 0x8a4]
call fcn.0040321f
push ebx
push esi
lea ecx, [ebp - 0x850]
call fcn.0040321f
push dword [ebp - 0x93c]
call dword [sym.imp.kernel32.dll_CloseHandle]
push ebx
push dword [ebp - 0x944]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x413569
push ebx
lea eax, [ebp - 0x94c]
push eax
push 0x800
lea eax, [ebp - 0x834]
push eax
push dword [ebp - 0x93c]
call dword [sym.imp.kernel32.dll_ReadFile]
mov edi, dword [sym.imp.kernel32.dll_GetLastError]
jmp 0x413801
cmp dword [ebp - 0x94c], ebx
je 0x4138dd
push ebx
push dword [ebp - 0x94c]
lea eax, [ebp - 0x834]
push eax
push dword [ebp - 0x948]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x413810
push ebx
lea eax, [ebp - 0x94c]
push eax
push 0x800
lea eax, [ebp - 0x834]
push eax
push dword [ebp - 0x93c]
call dword [sym.imp.kernel32.dll_ReadFile]
mov dword [ebp - 0x934], eax
cmp eax, ebx
jne 0x4137b7
jmp 0x4138dd
cmp dword [0x49c100], 3
jg 0x4138d7
push str._s_failed_with__s
lea ecx, [ebp - 0x850]
call fcn.0040246d
push ebx
mov dword [ebp - 4], 0xd
call edi
push eax
lea eax, [ebp - 0x8a4]
push eax
call fcn.00421819
add esp, 0xc
mov dword [ebp - 0x938], eax
push 0x47b4ac
lea ecx, [ebp - 0x888]
mov byte [ebp - 4], 0xe
call fcn.0040246d
mov edx, eax
lea eax, [ebp - 0x86c]
mov byte [ebp - 4], 0xf
push eax
mov eax, dword [ebp - 0x938]
lea ecx, [ebp - 0x850]
call fcn.0044a640
mov byte [ebp - 4], 0x10
mov dword [esp], str.getCheckSum
push 0x4c
push str.c:_adejenkinsworkspace8_2_build_windows_i586_cygwinjdk8u241331install_srcwindowswrapperscommonUpdateUtils.hpp
push 3
mov edx, eax
mov ecx, 0x49c100
call fcn.00421538
push ebx
push esi
lea ecx, [ebp - 0x86c]
call fcn.0040321f
push ebx
push esi
lea ecx, [ebp - 0x888]
call fcn.0040321f
push ebx
push esi
lea ecx, [ebp - 0x8a4]
call fcn.0040321f
or dword [ebp - 4], 0xffffffff
push ebx
push esi
lea ecx, [ebp - 0x850]
call fcn.0040321f
mov dword [ebp - 0x934], ebx
mov dword [ebp - 0x940], 0x20
cmp dword [ebp - 0x934], ebx
je 0x413a17
push ebx
lea eax, [ebp - 0x940]
push eax
lea eax, [ebp - 0x34]
push eax
push 2
push dword [ebp - 0x948]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x413956
mov edi, dword [ebp - 0x950]
xor esi, esi
mov byte [edi], bl
cmp dword [ebp - 0x940], ebx
jbe 0x41394e
movzx eax, byte [ebp + esi - 0x34]
mov ecx, eax
shr ecx, 4
mov cl, byte [ebp + ecx - 0x8b8]
and eax, 0xf
mov al, byte [ebp + eax - 0x8b8]
mov byte [edi + esi*2], cl
mov byte [edi + esi*2 + 1], al
inc esi
cmp esi, dword [ebp - 0x940]
jb 0x413923
mov byte [edi + 0x40], bl
jmp 0x413a17
cmp dword [0x49c100], 3
jg 0x413a11
push str._s_failed_with__s
lea ecx, [ebp - 0x8dc]
call fcn.0040246d
push ebx
mov dword [ebp - 4], 0x11
call edi
push eax
lea eax, [ebp - 0x930]
push eax
call fcn.00421819
add esp, 0xc
mov edi, eax
push 0x47b4bc
lea ecx, [ebp - 0x914]
mov byte [ebp - 4], 0x12
call fcn.0040246d
mov edx, eax
lea eax, [ebp - 0x8f8]
push eax
mov eax, edi
lea ecx, [ebp - 0x8dc]
mov byte [ebp - 4], 0x13
call fcn.0044a640
mov byte [ebp - 4], 0x14
mov dword [esp], str.getCheckSum
push 0x5e
push str.c:_adejenkinsworkspace8_2_build_windows_i586_cygwinjdk8u241331install_srcwindowswrapperscommonUpdateUtils.hpp
push 3
mov edx, eax
mov ecx, 0x49c100
call fcn.00421538
push ebx
push esi
lea ecx, [ebp - 0x8f8]
call fcn.0040321f
push ebx
push esi
lea ecx, [ebp - 0x914]
call fcn.0040321f
push ebx
push esi
lea ecx, [ebp - 0x930]
call fcn.0040321f
push ebx
push esi
lea ecx, [ebp - 0x8dc]
call fcn.0040321f
mov dword [ebp - 0x934], ebx
push dword [ebp - 0x948]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push ebx
push dword [ebp - 0x944]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push dword [ebp - 0x93c]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebp - 0x934]
call fcn.00452650
ret