Function at 0x403de0
Capabilities:
Hash data using sha1

Disassembly:
jmp 0x405440
sub esp, 0xd0
mov eax, dword [0x40c190]
xor eax, esp
mov dword [esp + 0xcc], eax
mov eax, dword [esp + 0xd4]
push ebx
push ebp
push esi
mov dword [esp + 0x10], eax
xor eax, eax
push edi
mov edi, dword [esp + 0xec]
mov dword [esp + 0x7d], eax
mov dword [esp + 0x81], eax
mov dword [esp + 0x85], eax
mov dword [esp + 0x89], eax
mov dword [esp + 0x8d], eax
mov dword [esp + 0x91], eax
mov dword [esp + 0x95], eax
mov word [esp + 0x99], ax
mov byte [esp + 0x9b], al
mov byte [esp + 0xbc], al
mov dword [esp + 0xbd], eax
mov dword [esp + 0xc1], eax
mov dword [esp + 0xc5], eax
mov dword [esp + 0xc9], eax
mov dword [esp + 0xcd], eax
mov dword [esp + 0xd1], eax
mov dword [esp + 0xd5], eax
mov word [esp + 0xd9], ax
mov byte [esp + 0xdb], al
mov byte [esp + 0x9c], al
mov dword [esp + 0x9d], eax
mov dword [esp + 0xa1], eax
mov dword [esp + 0xa5], eax
mov dword [esp + 0xa9], eax
mov dword [esp + 0xad], eax
mov dword [esp + 0xb1], eax
mov dword [esp + 0xb5], eax
mov word [esp + 0xb9], ax
mov byte [esp + 0xbb], al
mov eax, edi
mov ebp, ecx
mov byte [esp + 0x7c], 0
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x405543
mov ebx, dword [esp + 0xe8]
sub eax, ecx
mov esi, eax
mov ecx, ebx
mov dword [esp + 0x18], esi
lea eax, [ecx + 1]
mov edi, edi
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x405560
sub ecx, eax
mov dword [esp + 0x1c], ecx
cmp esi, 0x20
jb 0x405579
xor al, al
jmp 0x405741
cmp ecx, 0x20
jae 0x405572
lea esi, [esp + 0xbc]
mov ecx, edi
sub esi, edi
lea esp, [esp]
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x405590
lea esi, [esp + 0x9c]
mov ecx, ebx
sub esi, ebx
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x4055a5
mov bl, byte [ebp + 4]
mov dword [esp + 0x10], 0x783225
lea ecx, [esp + 0xbc]
cmp byte [esp + 0xbc], dl
je 0x4055ec
lea ebx, [ebx]
mov dl, byte [ecx]
lea eax, [edx - 0x61]
cmp al, 0x19
ja 0x4055de
add dl, 0xe0
mov byte [ecx], dl
cmp dl, 0x20
jne 0x4055e6
mov byte [ecx], 0x30
inc ecx
cmp byte [ecx], 0
jne 0x4055d0
cmp byte [esp + 0x9c], 0
lea edx, [esp + 0x9c]
je 0x40561c
lea ecx, [ecx]
mov cl, byte [edx]
lea eax, [ecx - 0x61]
cmp al, 0x19
ja 0x40560e
add cl, 0xe0
mov byte [edx], cl
cmp cl, 0x20
jne 0x405616
mov byte [edx], 0x30
inc edx
cmp byte [edx], 0
jne 0x405600
mov ecx, dword [esp + 0x18]
push ecx
lea edx, [esp + 0xc0]
push edx
lea eax, [esp + 0x28]
xor esi, esi
push eax
mov dword [esp + 0x3c], 0x67452301
mov dword [esp + 0x38], 0xefcdab89
mov dword [esp + 0x34], 0x98badcfe
mov dword [esp + 0x30], 0x10325476
mov dword [esp + 0x2c], 0xc3d2e1f0
mov dword [esp + 0x40], esi
mov dword [esp + 0x84], esi
call fcn.004050f0
mov ecx, dword [ebp + 0x18]
lea eax, [ebp + 8]
add esp, 0xc
cmp dword [eax + 0x14], 0x10
jb 0x405679
mov eax, dword [eax]
push ecx
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.004050f0
mov edx, dword [esp + 0x28]
push edx
lea eax, [esp + 0xac]
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.004050f0
add esp, 0x18
lea eax, [esp + 0x20]
call fcn.004051c0
mov edi, dword [sym.imp.MSVCR100.dll_sprintf]
mov edi, edi
mov al, byte [esp + esi*2 + 0x39]
add al, byte [esp + esi*2 + 0x38]
lea ecx, [esp + esi*2 + 0x7c]
movzx edx, al
mov byte [esp + esi + 0x38], al
push edx
lea eax, [esp + 0x14]
push eax
push ecx
call edi
xor bl, byte [esp + esi + 0x44]
inc esi
add esp, 0xc
cmp esi, 3
jl 0x4056b0
movzx edx, bl
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + esi*2 + 0x84]
push ecx
call edi
add esp, 0xc
cmp byte [esp + 0x7c], 0
lea eax, [esp + 0x7c]
je 0x40571d
lea ebx, [ebx]
mov cl, byte [eax]
lea edx, [ecx - 0x61]
cmp dl, 0x19
ja 0x40570f
add cl, 0xe0
mov byte [eax], cl
cmp cl, 0x20
jne 0x405717
mov byte [eax], 0x30
inc eax
cmp byte [eax], 0
jne 0x405700
lea eax, [esp + 0x7c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405724
mov ecx, dword [esp + 0x14]
sub eax, edx
push eax
lea eax, [esp + 0x80]
push eax
call fcn.004013e0
mov al, 1
mov ecx, dword [esp + 0xdc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00405a60
add esp, 0xd0
ret 0xc