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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x80100
call fcn.004048d0
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov ebx, eax
mov esi, eax
and eax, 4
xor edi, edi
push 0x34
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x54]
push edi
and ebx, 1
push eax
mov dword [ebp - 4], ebx
and esi, 2
mov dword [ebp - 0x14], edi
mov dword [ebp + 0xc], edi
mov dword [ebp - 8], edi
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp esi, edi
mov dword [ebp - 0x58], edi
jne 0x4032cf
cmp dword [ebp - 0xc], edi
jne 0x4032cf
cmp ebx, edi
jne 0x4032cf
mov dword [ebp - 0x1c], edi
jmp 0x403859
cmp ebx, edi
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x1c], 1
je 0x403324
lea eax, [ebp - 0x38]
push eax
call fcn.00403159
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x34]
push eax
call fcn.00403159
or dword [ebp - 0x54], 0xffffffff
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x58]
push eax
push 0x40317b
call fcn.004015f4
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0xffffffffffffffff
push dword [ebp - 0x34]
call ebx
cmp esi, edi
jne 0x403331
cmp dword [ebp - 0xc], edi
je 0x40347d
push 0xf0000000
push 1
push edi
push edi
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x403438
cmp esi, edi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
je 0x4033c4
lea eax, [ebp + 0xc]
push eax
push edi
push edi
push 0x8003
push dword [ebp - 0x14]
call esi
test eax, eax
je 0x4033b9
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x40], 1
call fcn.00403159
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00403159
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x58]
push eax
push 0x4031e3
call fcn.004015f4
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0xffffffffffffffff
push dword [ebp - 0x2c]
call ebx
jmp 0x4033c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x406e78], eax
cmp dword [ebp - 0xc], edi
je 0x40345b
lea eax, [ebp - 8]
push eax
push edi
push edi
push 0x8004
push dword [ebp - 0x14]
call esi
test eax, eax
je 0x403430
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x3c], 1
call fcn.00403159
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x24]
push eax
call fcn.00403159
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x58]
push eax
push 0x40322d
call fcn.004015f4
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0xffffffffffffffff
push dword [ebp - 0x24]
call ebx
jmp 0x40345b
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x403456
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, edi
je 0x40344c
cmp dword [ebp + 0xc], edi
jne 0x40344c
mov dword [0x406e78], eax
cmp dword [ebp - 0xc], edi
je 0x40345b
cmp dword [ebp - 8], edi
jne 0x40345b
mov dword [0x406f1c], eax
cmp dword [ebp + 0xc], edi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
jne 0x40346f
push edi
push dword [0x406ad8]
call esi
cmp dword [ebp - 8], edi
jne 0x40347d
push edi
push dword [0x406ba8]
call esi
push 0x80000000
push dword [ebp + 8]
call fcn.004014ce
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
mov dword [ebp - 0x10], esi
je 0x40381b
push esi
mov dword [ebp - 0x18], edi
call fcn.0040155a
pop ecx
mov ecx, eax
shr ecx, 0x13
test eax, 0x7ffff
mov dword [ebp - 0x60], ecx
je 0x4034b6
inc ecx
mov dword [ebp - 0x60], ecx
push edi
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x80100]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x58], 1
mov dword [ebp - 0x20], edi
push edi
lea eax, [ebp - 0x5c]
push eax
push 0x80000
lea eax, [ebp - 0x80100]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x5c], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x5c]
cmp eax, edi
mov esi, dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [ebp - 0xc], eax
je 0x403605
cmp dword [ebp - 4], edi
mov dword [ebp - 0x50], eax
je 0x403511
push dword [ebp - 0x38]
call esi
cmp dword [ebp + 0xc], edi
je 0x40351b
push dword [ebp - 0x30]
call esi
cmp dword [ebp - 8], edi
je 0x403525
push dword [ebp - 0x28]
call esi
cmp dword [ebp - 4], edi
je 0x403531
push 0xffffffffffffffff
push dword [ebp - 0x34]
call ebx
cmp dword [ebp + 0xc], edi
je 0x403546
push 0xffffffffffffffff
push dword [ebp - 0x2c]
call ebx
cmp dword [ebp - 0x40], edi
je 0x403602
cmp dword [ebp - 8], edi
je 0x40355b
push 0xffffffffffffffff
push dword [ebp - 0x24]
call ebx
cmp dword [ebp - 0x3c], edi
je 0x403602
cmp dword [0x406c88], edi
je 0x4034d3
add dword [ebp - 0x20], 0x64
mov eax, dword [ebp - 0x20]
xor edx, edx
div dword [ebp - 0x60]
mov esi, eax
cmp dword [ebp - 0x18], esi
je 0x4034d3
cmp esi, 0x65
jae 0x4034d3
cmp dword [ebp - 4], edi
je 0x4035a5
push edi
push esi
push 0x402
push dword [0x406a08]
mov dword [0x406a10], esi
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [ebp + 0xc], edi
je 0x4035c3
push edi
push esi
push 0x402
push dword [0x406ad8]
mov dword [0x406ae0], esi
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [ebp - 8], edi
je 0x4035e1
push edi
push esi
push 0x402
push dword [0x406ba8]
mov dword [0x406bb0], esi
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
push esi
push 0x402
push dword [0x406c78]
mov dword [0x406c80], esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x18], esi
jmp 0x4034d3
mov dword [ebp - 0x1c], edi
cmp dword [ebp - 4], edi
mov dword [ebp - 0x58], 2
je 0x40361d
push dword [ebp - 0x38]
call esi
push 0xffffffffffffffff
push dword [ebp - 0x34]
call ebx
cmp dword [ebp + 0xc], edi
je 0x403633
cmp dword [ebp - 0x40], edi
je 0x403633
push dword [ebp - 0x30]
call esi
push 0xffffffffffffffff
push dword [ebp - 0x2c]
call ebx
cmp dword [ebp - 8], edi
je 0x403649
cmp dword [ebp - 0x3c], edi
je 0x403649
push dword [ebp - 0x28]
call esi
push 0xffffffffffffffff
push dword [ebp - 0x24]
call ebx
lea eax, [ebp - 0x38]
push eax
call fcn.0040313c
lea eax, [ebp - 0x34]
push eax
call fcn.0040313c
lea eax, [ebp - 0x30]
push eax
call fcn.0040313c
lea eax, [ebp - 0x2c]
push eax
call fcn.0040313c
lea eax, [ebp - 0x28]
push eax
call fcn.0040313c
lea eax, [ebp - 0x24]
push eax
call fcn.0040313c
mov esi, dword [ebp - 0x54]
add esp, 0x18
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], edi
je 0x4036a6
push dword [ebp + 0x10]
not esi
push 0x406dd8
push esi
call fcn.00401a17
add esp, 0xc
cmp dword [ebp + 0xc], edi
jne 0x4036b4
cmp dword [ebp - 8], edi
je 0x40384a
push 4
pop ecx
push dword [ebp + 0x10]
mov dword [ebp - 4], ecx
call fcn.00402e75
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
add esp, 4
cmp dword [ebp + 0xc], edi
mov dword [ebp - 0x18], eax
je 0x403774
push edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push ecx
push dword [ebp + 0xc]
call esi
test eax, eax
je 0x403774
push dword [ebp - 0xc]
call fcn.00401470
cmp eax, edi
pop ecx
mov dword [ebp - 0x10], eax
je 0x403774
mov ecx, dword [ebp - 0xc]
push edi
mov dword [ebp - 4], ecx
lea ecx, [ebp - 4]
push ecx
push eax
push 2
push dword [ebp + 0xc]
call esi
test eax, eax
je 0x40376b
push 0x9e
lea eax, [ebp - 0xfe]
push edi
push eax
mov word [ebp - 0x100], di
call sub.MSVCRT.dll_memset
add esp, 0xc
xor ebx, ebx
cmp dword [ebp - 4], edi
jbe 0x40376b
mov eax, dword [ebp - 0x10]
movzx eax, byte [ebx + eax]
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x100]
push eax
push 0x406e7c
call dword [sym.imp.KERNEL32.dll_lstrcatW]
inc ebx
cmp ebx, dword [ebp - 4]
jb 0x403738
push dword [ebp - 0x10]
call sub.MSVCRT.dll_free
pop ecx
cmp dword [ebp - 8], edi
je 0x403830
push edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 4
push dword [ebp - 8]
call esi
test eax, eax
je 0x403830
push dword [ebp - 0xc]
call fcn.00401470
mov ebx, eax
cmp ebx, edi
pop ecx
je 0x403830
mov eax, dword [ebp - 0xc]
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push ebx
push 2
push dword [ebp - 8]
call esi
test eax, eax
je 0x403812
push 0x9e
lea eax, [ebp - 0xfe]
push edi
push eax
mov word [ebp - 0x100], di
call sub.MSVCRT.dll_memset
add esp, 0xc
xor esi, esi
cmp dword [ebp - 4], edi
jbe 0x403812
movzx eax, byte [esi + ebx]
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x100]
push eax
push 0x406f20
call dword [sym.imp.KERNEL32.dll_lstrcatW]
inc esi
cmp esi, dword [ebp - 4]
jb 0x4037e2
push ebx
call sub.MSVCRT.dll_free
pop ecx
jmp 0x403830
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x406dd4], eax
mov dword [0x406e78], eax
mov dword [0x406f1c], eax
cmp dword [ebp + 0xc], edi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
je 0x403840
push dword [ebp + 0xc]
call esi
cmp dword [ebp - 8], edi
je 0x40384a
push dword [ebp - 8]
call esi
cmp dword [ebp - 0x14], edi
je 0x403859
push edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
pop ebx
leave
ret