Function at 0x40b370
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x44a280]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, edx
mov esi, ecx
push edi
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x6c], esi
test eax, eax
jne 0x40b39f
lea edx, [esi + 0x5c]
mov dword [ebp - 0x78], edx
jmp 0x40b3a8
lea eax, [esi + 0x15c]
mov dword [ebp - 0x78], eax
mov ecx, dword [esi + 0x260]
mov eax, dword [esi + 0x264]
lea ebx, [esi + 0x264]
cmp byte [ecx + eax], 6
mov dword [ebp - 0x84], ebx
jne 0x40b3ed
push dword [esi + 0x268]
lea eax, [ebp - 0x88]
push eax
mov edx, ebx
call fcn.0040a720
add esp, 8
test eax, eax
js 0x40b9f1
mov eax, dword [ebp - 0x88]
add dword [ebx], eax
mov eax, dword [ebx]
mov edi, dword [esi + 0x260]
mov dword [ebp - 0x8c], eax
mov cl, byte [eax + edi]
inc eax
mov dword [ebp - 0x74], 0xffffffff
mov dword [ebp - 0x88], eax
cmp cl, 0x30
jne 0x40b9f1
push dword [esi + 0x268]
lea eax, [ebp - 0x74]
push eax
lea edx, [ebp - 0x88]
mov ecx, edi
call fcn.0040a720
add esp, 8
test eax, eax
js 0x40b9f1
mov esi, dword [ebp - 0x74]
mov eax, dword [ebp - 0x88]
mov dword [ebx], eax
test esi, esi
js 0x40b9f1
mov ecx, dword [ebp - 0x8c]
sub eax, ecx
add eax, esi
lea edx, [edi + ecx]
push eax
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x5c], 0x67452301
mov dword [ebp - 0x58], 0xefcdab89
mov dword [ebp - 0x54], 0x98badcfe
mov dword [ebp - 0x50], 0x10325476
mov dword [ebp - 0x4c], 0xc3d2e1f0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
call fcn.00415060
mov edi, dword [ebp - 0x6c]
add esp, 4
cmp dword [ebp - 0x90], 0
lea ecx, [ebp - 0x68]
lea edx, [edi + 0x38]
je 0x40b4b0
lea edx, [edi + 0x24]
call fcn.00415110
mov eax, dword [ebx]
lea ecx, [eax + esi]
xor esi, esi
mov dword [ebp - 0x98], ecx
cmp eax, ecx
jae 0x40b9d7
mov dword [ebp - 0x94], 1
mov edi, dword [edi + 0x260]
mov edx, dword [ebx]
inc edx
mov al, byte [edx + edi - 1]
mov byte [ebp - 0x79], 0
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x74], edx
cmp al, 0x31
jne 0x40b55e
mov eax, dword [ebp - 0x6c]
inc edx
xor ecx, ecx
cmp edx, dword [eax + 0x268]
ja 0x40b55e
mov eax, dword [ebp - 0x74]
mov al, byte [eax + edi]
cmp al, 0x80
jb 0x40b547
mov ebx, dword [ebp - 0x6c]
movzx edi, al
and edi, 0x7f
lea eax, [edi + edx]
cmp eax, dword [ebx + 0x268]
mov ebx, dword [ebp - 0x84]
ja 0x40b55e
test edi, edi
je 0x40b54a
mov ebx, dword [ebp - 0x80]
jmp 0x40b530
mov al, byte [edx + ebx]
movzx eax, al
shl ecx, 8
inc edx
or ecx, eax
dec edi
jne 0x40b530
mov ebx, dword [ebp - 0x84]
jmp 0x40b54a
movzx ecx, al
mov edi, dword [ebp - 0x6c]
lea eax, [edx + ecx]
cmp eax, dword [edi + 0x268]
ja 0x40b55e
test ecx, ecx
js 0x40b55e
mov dword [ebx], edx
mov edi, dword [ebx]
mov edx, dword [ebp - 0x80]
inc edi
mov al, byte [edi + edx - 1]
mov dword [ebp - 0x74], edi
cmp al, 0x30
jne 0x40b9f1
mov eax, dword [ebp - 0x6c]
inc edi
xor ecx, ecx
cmp edi, dword [eax + 0x268]
ja 0x40b9f1
mov eax, dword [ebp - 0x74]
mov al, byte [eax + edx]
cmp al, 0x80
jb 0x40b657
mov ebx, dword [ebp - 0x6c]
movzx edx, al
and edx, 0x7f
lea eax, [edx + edi]
cmp eax, dword [ebx + 0x268]
ja 0x40b9f1
test edx, edx
je 0x40b5c1
mov ebx, dword [ebp - 0x80]
mov al, byte [edi + ebx]
movzx eax, al
shl ecx, 8
inc edi
or ecx, eax
dec edx
jne 0x40b5b2
mov edx, dword [ebp - 0x80]
mov ebx, dword [ebp - 0x6c]
lea eax, [edi + ecx]
cmp eax, dword [ebx + 0x268]
mov ebx, dword [ebp - 0x84]
ja 0x40b9f1
test ecx, ecx
js 0x40b9f1
mov eax, edi
mov dword [ebx], edi
mov cl, byte [edx + eax]
inc eax
mov dword [ebx], eax
cmp cl, 6
jne 0x40b9c1
mov edi, eax
mov eax, dword [ebp - 0x6c]
lea edx, [edi + 1]
xor ecx, ecx
cmp edx, dword [eax + 0x268]
ja 0x40b9f1
mov eax, dword [ebp - 0x80]
mov al, byte [edi + eax]
cmp al, 0x80
jb 0x40b65f
mov ebx, dword [ebp - 0x6c]
movzx edi, al
and edi, 0x7f
lea eax, [edi + edx]
cmp eax, dword [ebx + 0x268]
mov ebx, dword [ebp - 0x84]
ja 0x40b9f1
test edi, edi
je 0x40b662
mov ebx, dword [ebp - 0x80]
lea esp, [esp]
mov al, byte [edx + ebx]
movzx eax, al
shl ecx, 8
inc edx
or ecx, eax
dec edi
jne 0x40b640
mov ebx, dword [ebp - 0x84]
jmp 0x40b662
movzx ecx, al
jmp 0x40b5c4
movzx ecx, al
mov edi, dword [ebp - 0x6c]
lea eax, [edx + ecx]
cmp eax, dword [edi + 0x268]
ja 0x40b9f1
mov dword [ebx], edx
test ecx, ecx
js 0x40b9f1
mov edi, edx
mov edx, dword [ebp - 0x80]
mov ax, word [edx + edi]
mov word [ebp - 0x8c], ax
cmp al, 0x55
jne 0x40b81a
mov eax, dword [ebp - 0x8c]
shr eax, 8
cmp al, 4
jne 0x40b814
mov ecx, dword [ebp - 0x80]
lea eax, [edi + 2]
mov dword [ebx], eax
mov dl, byte [edx + eax]
inc eax
mov dword [ebx], eax
mov eax, dword [ebp - 0x6c]
inc dword [ebx]
push dword [eax + 0x268]
lea eax, [ebp - 0x9c]
mov byte [ebp - 0x6d], dl
push eax
mov edx, ebx
call fcn.0040a720
add esp, 8
test eax, eax
js 0x40b9f1
mov edi, dword [ebp - 0x9c]
movzx edx, byte [ebp - 0x79]
mov ecx, pe_nt_image_headers32
sub ecx, esi
lea eax, [edi + 4]
cmp eax, ecx
mov eax, 1
cmovg edx, eax
mov al, byte [ebp - 0x6d]
cmp al, 3
jne 0x40b732
cmp dword [ebp - 0x90], 1
jne 0x40b71b
mov ecx, dword [ebp - 0x6c]
mov eax, dword [ebx]
add eax, dword [ecx + 0x260]
mov dword [ecx + 0x54], edi
mov dword [ecx + 0x50], eax
test dl, dl
jne 0x40b9ad
mov ecx, dword [ebp - 0x78]
mov dword [esi + ecx], 0x3d4e432f
jmp 0x40b7fa
cmp al, 4
jne 0x40b74d
test dl, dl
jne 0x40b9ad
mov ecx, dword [ebp - 0x78]
mov dword [esi + ecx], 0x3d4e532f
jmp 0x40b7fa
cmp al, 6
jne 0x40b778
test dl, dl
jne 0x40b9ad
mov ax, word [0x43f700]
mov ecx, dword [ebp - 0x78]
add esi, 3
mov word [esi + ecx - 3], ax
mov al, byte [0x43f702]
mov byte [esi + ecx - 1], al
jmp 0x40b7fd
cmp al, 7
jne 0x40b7a0
test dl, dl
jne 0x40b9ad
mov ax, word [0x43f704]
mov ecx, dword [ebp - 0x78]
add esi, 3
mov word [esi + ecx - 3], ax
mov al, byte [0x43f706]
mov byte [esi + ecx - 1], al
jmp 0x40b7fd
cmp al, 8
jne 0x40b7b8
test dl, dl
jne 0x40b9ad
mov ecx, dword [ebp - 0x78]
mov dword [esi + ecx], 0x3d54532f
jmp 0x40b7fa
cmp al, 0xa
jne 0x40b7e0
test dl, dl
jne 0x40b9ad
mov ax, word [0x43f708]
mov ecx, dword [ebp - 0x78]
add esi, 3
mov word [esi + ecx - 3], ax
mov al, byte [0x43f70a]
mov byte [esi + ecx - 1], al
jmp 0x40b7fd
cmp al, 0xb
jne 0x40b9ad
test dl, dl
jne 0x40b9ad
mov ecx, dword [ebp - 0x78]
mov dword [esi + ecx], 0x3d554f2f
add esi, 4
mov ecx, dword [ebp - 0x6c]
mov eax, dword [ebx]
add eax, dword [ecx + 0x260]
push edi
push eax
mov eax, dword [ebp - 0x78]
add eax, esi
jmp 0x40b9a2
mov al, byte [ebp - 0x8c]
mov byte [ebp - 0x6d], 0
mov byte [ebp - 0x88], 0
cmp al, 0x2a
jne 0x40b838
cmp byte [ebp - 0x8b], 0x86
jne 0x40b859
mov byte [ebp - 0x6d], 1
jmp 0x40b859
cmp al, 9
jne 0x40b859
mov eax, dword [ebp - 0x88]
cmp byte [ebp - 0x8b], 0x92
movzx eax, al
cmove eax, dword [ebp - 0x94]
mov dword [ebp - 0x88], eax
mov edx, dword [ebp - 0x6c]
lea eax, [ecx + 1]
add eax, edi
mov ecx, eax
mov dword [ebx], eax
lea eax, [ecx + 1]
xor edi, edi
cmp eax, dword [edx + 0x268]
mov edx, dword [ebp - 0x80]
mov dword [ebp - 0x74], eax
ja 0x40b9f1
mov cl, byte [ecx + edx]
cmp cl, 0x80
jb 0x40b912
mov ebx, dword [ebp - 0x6c]
movzx ecx, cl
and ecx, 0x7f
add eax, ecx
cmp eax, dword [ebx + 0x268]
mov ebx, dword [ebp - 0x84]
ja 0x40b9f1
test ecx, ecx
je 0x40b8c8
mov ebx, dword [ebp - 0x74]
lea esp, [esp]
mov al, byte [ebx + edx]
movzx eax, al
shl edi, 8
inc ebx
or edi, eax
dec ecx
jne 0x40b8b0
mov dword [ebp - 0x74], ebx
mov ebx, dword [ebp - 0x84]
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x6c]
add eax, edi
cmp eax, dword [ecx + 0x268]
ja 0x40b9f1
mov eax, dword [ebp - 0x74]
mov dword [ebx], eax
test edi, edi
js 0x40b9f1
movzx edx, byte [ebp - 0x79]
mov ecx, pe_nt_image_headers32
sub ecx, esi
cmp edi, ecx
mov eax, 1
cmovg edx, eax
cmp byte [ebp - 0x6d], 0
mov dword [ebp - 0x74], edx
je 0x40b960
lea eax, [edi + 0xe]
cmp eax, ecx
jle 0x40b917
mov dl, 1
jmp 0x40b960
movzx edi, cl
jmp 0x40b8cb
test dl, dl
jne 0x40b960
mov ecx, dword [ebp - 0x78]
movq xmm0, qword [str._emailAddress]
mov edx, dword [ebp - 0x6c]
movq qword [esi + ecx], xmm0
mov eax, dword [0x43f714]
mov dword [esi + ecx + 8], eax
mov ax, word [0x43f718]
mov word [esi + ecx + 0xc], ax
mov eax, dword [ebx]
add eax, dword [edx + 0x260]
push edi
add esi, 0xe
push eax
lea eax, [esi + ecx]
push eax
call fcn.004225d0
mov edx, dword [ebp - 0x74]
add esp, 0xc
add esi, edi
cmp byte [ebp - 0x88], 0
je 0x40b9ad
mov eax, pe_nt_image_headers32
lea ecx, [edi + 5]
sub eax, esi
cmp ecx, eax
jg 0x40b9ad
test dl, dl
jne 0x40b9ad
mov eax, dword [str._UID]
mov ecx, dword [ebp - 0x78]
mov edx, dword [ebp - 0x6c]
mov dword [esi + ecx], eax
mov al, byte [0x43f720]
mov byte [esi + ecx + 4], al
mov eax, dword [ebx]
add esi, 5
add eax, dword [edx + 0x260]
push edi
push eax
lea eax, [esi + ecx]
push eax
call fcn.004225d0
add esp, 0xc
add esi, edi
mov eax, dword [ebp - 0x98]
add dword [ebx], edi
cmp dword [ebx], eax
jae 0x40b9d7
mov edi, dword [ebp - 0x6c]
jmp 0x40b4d4
mov eax, 0xffffff70
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b6be
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x78]
mov byte [esi + eax], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b6be
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 0xffffff74
pop ebx
call fcn.0041b6be
mov esp, ebp
pop ebp
ret