Function at 0x10042bc0
Capabilities:
Hash data using sha1

Disassembly:
sub esp, 0x310
mov eax, dword [0x100de040]
xor eax, esp
mov dword [esp + 0x30c], eax
push ebx
mov ebx, dword [esp + 0x318]
push ebp
mov ebp, dword [esp + 0x320]
cmp byte [ebp], 0
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ebp
je 0x100430a3
cmp byte [esp + 0x328], 0
push esi
push edi
je 0x10042d7d
cmp dword [0x100e439c], 0
jne 0x10042c14
call fcn.100407d0
mov eax, ebp
mov esi, ebx
call fcn.10043130
push 0x80
lea eax, [esp + 0x98]
push 0
push eax
mov dword [ebx + 0x204], 0xd3a3b879
mov dword [ebx + 0x208], 0x3f6d12f7
mov dword [ebx + 0x20c], 0x7515a235
mov dword [ebx + 0x210], 0xa4e7f123
call fcn.10064e10
mov eax, ebp
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10042c61
sub eax, edx
push eax
lea ecx, [esp + 0x98]
push ecx
push ebp
call dword [sym.imp.USER32.dll_CharToOemBuffA]
mov eax, ebp
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10042c80
sub eax, edx
lea ebp, [ebx + 0x104]
mov ecx, 0x40
mov esi, 0x100e1710
mov edi, ebp
xor edx, edx
mov dword [esp + 0x10], eax
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x1c], edx
xor ecx, ecx
mov dword [esp + 0x14], ecx
test eax, eax
jle 0x10042d44
jmp 0x10042cc0
movzx eax, byte [esp + ecx + 0x94]
movzx esi, byte [esp + ecx + 0x95]
sub eax, edx
add esi, edx
and esi, 0xff
movzx edi, byte [esi*4 + 0x100e4398]
and eax, 0xff
movzx eax, byte [eax*4 + 0x100e4398]
mov esi, 1
cmp eax, edi
je 0x10042d33
jmp 0x10042d00
lea edx, [esi + eax]
add edx, ecx
and edx, 0xff
lea ecx, [edx + ebx + 0x104]
mov bl, byte [ecx]
mov dl, byte [eax + ebp]
mov byte [eax + ebp], bl
mov ebx, dword [esp + 0x18]
inc eax
and eax, 0xff
inc esi
mov byte [ecx], dl
mov ecx, dword [esp + 0x14]
cmp eax, edi
jne 0x10042d00
mov edx, dword [esp + 0x1c]
add ecx, 2
cmp ecx, dword [esp + 0x10]
mov dword [esp + 0x14], ecx
jl 0x10042cc0
mov eax, dword [esp + 0x10]
inc edx
cmp edx, 0x100
mov dword [esp + 0x1c], edx
jl 0x10042ca7
xor esi, esi
test eax, eax
jle 0x100430a1
nop
lea eax, [esp + esi + 0x94]
push eax
mov eax, ebx
call fcn.100422d0
add esi, 0x10
cmp esi, dword [esp + 0x10]
jl 0x10042d60
jmp 0x100430a1
xor esi, esi
mov eax, 0x81
sub eax, dword [esp + 0x32c]
mov dword [esp + 0x10], esi
mov dword [esp + 0x1c], eax
lea edi, [esi + 0x100e7b38]
mov edx, ebp
mov ecx, edi
lea ecx, [ecx]
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x10042dc0
test al, al
je 0x10042dbc
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x10042dc0
add ecx, 2
add edx, 2
test al, al
jne 0x10042da0
xor eax, eax
jmp 0x10042dc5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x10042e17
mov eax, dword [esp + 0x32c]
test eax, eax
jne 0x10042dde
cmp byte [esi + 0x100e7bb8], al
je 0x10042e04
jmp 0x10042e17
cmp byte [esi + 0x100e7bb8], 0
je 0x10042e17
mov edx, dword [esp + 0x1c]
mov ecx, 8
add edx, edi
mov edi, dword [eax + edx]
cmp edi, dword [eax]
jne 0x10042e17
sub ecx, 4
add eax, 4
cmp ecx, 4
jae 0x10042df2
mov al, byte [esp + 0x334]
cmp byte [esi + 0x100e7bc1], al
je 0x100430bc
inc dword [esp + 0x10]
add esi, 0xaa
cmp esi, 0x2a8
jb 0x10042d93
push 0x7f
lea ecx, [esp + 0x118]
push ecx
push 0xffffffffffffffff
push ebp
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor edx, edx
lea edi, [esp + 0x214]
lea ecx, [esp + 0x114]
mov word [esp + 0x212], dx
call fcn.100409c0
xor ecx, ecx
lea eax, [esp + 0x114]
cmp word [esp + 0x114], cx
je 0x10042e7e
add eax, 2
inc ecx
cmp word [eax], 0
jne 0x10042e74
mov eax, dword [esp + 0x32c]
xor ebx, ebx
lea ebp, [ecx + ecx]
cmp eax, ebx
je 0x10042ea4
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + ebp + 0x214], ecx
mov dword [esp + ebp + 0x218], edx
add ebp, 8
mov dword [esp + 0x38], 0x67452301
mov dword [esp + 0x3c], 0xefcdab89
mov dword [esp + 0x40], 0x98badcfe
mov dword [esp + 0x44], 0x10325476
mov dword [esp + 0x48], 0xc3d2e1f0
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], ebx
jmp 0x10042ee0
mov eax, dword [esp + 0x334]
push eax
lea ecx, [esp + 0x218]
push ebp
push ecx
lea esi, [esp + 0x44]
call fcn.10047310
mov ecx, dword [esp + 0x340]
mov edx, ebx
sar edx, 8
push ecx
mov byte [esp + 0x25], dl
mov eax, ebx
lea edx, [esp + 0x24]
sar eax, 0x10
push 3
push edx
mov byte [esp + 0x2c], bl
mov byte [esp + 0x2e], al
call fcn.10047310
mov eax, ebx
add esp, 0x18
and eax, 0x80003fff
jns 0x10042f37
dec eax
or eax, 0xffffc000
inc eax
jne 0x10042f83
mov ecx, 0x17
lea esi, [esp + 0x38]
lea edi, [esp + 0x94]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x334]
push ecx
lea edx, [esp + 0x28]
lea ecx, [esp + 0x98]
call fcn.100473d0
mov ecx, dword [esp + 0x1c]
mov eax, ebx
cdq
and edx, 0x3fff
add eax, edx
mov dl, byte [esp + 0x38]
add esp, 4
sar eax, 0xe
mov byte [eax + ecx + 0x22f], dl
inc ebx
cmp ebx, 0x40000
jl 0x10042ee0
mov ebx, dword [esp + 0x334]
push ebx
lea edx, [esp + 0x28]
lea ecx, [esp + 0x3c]
call fcn.100473d0
mov edi, dword [esp + 0x1c]
add esp, 4
xor esi, esi
lea ecx, [edi + 0x220]
mov eax, dword [esp + esi*4 + 0x24]
mov edx, eax
shr edx, 8
mov byte [ecx], dl
mov edx, eax
mov byte [ecx - 1], al
shr edx, 0x10
shr eax, 0x18
mov byte [ecx + 1], dl
mov byte [ecx + 2], al
inc esi
add ecx, 4
cmp esi, 4
jl 0x10042fb4
mov ebp, dword [0x100e79e4]
mov ecx, dword [esp + 0x20]
mov eax, ebp
imul eax, eax, 0xaa
mov edx, eax
sub edx, ecx
lea esi, [edx + 0x100e7b38]
mov dl, byte [ecx]
mov byte [ecx + esi], dl
inc ecx
test dl, dl
jne 0x10042ff5
mov edx, dword [esp + 0x32c]
test edx, edx
setne cl
mov byte [eax + 0x100e7bb8], cl
cmp cl, 1
jne 0x10043027
mov ecx, dword [edx]
mov dword [eax + 0x100e7bb9], ecx
mov edx, dword [edx + 4]
mov dword [eax + 0x100e7bbd], edx
mov byte [eax + 0x100e7bc1], bl
mov edx, dword [edi + 0x21f]
mov dword [eax + 0x100e7b18], edx
mov edx, dword [edi + 0x223]
mov ebx, dword [esp + 0x18]
lea ecx, [edi + 0x21f]
mov dword [eax + 0x100e7b1c], edx
mov edx, dword [ecx + 8]
mov dword [eax + 0x100e7b20], edx
mov edx, dword [ecx + 0xc]
mov dword [eax + 0x100e7b24], edx
mov edx, dword [edi + 0x22f]
add edi, 0x22f
mov dword [eax + 0x100e7b28], edx
mov edx, dword [edi + 4]
mov dword [eax + 0x100e7b2c], edx
mov edx, dword [edi + 8]
mov dword [eax + 0x100e7b30], edx
mov edx, dword [edi + 0xc]
inc ebp
and ebp, 3
mov dword [eax + 0x100e7b34], edx
mov dword [0x100e79e4], ebp
push 1
mov esi, ebx
call fcn.10040e20
pop edi
pop esi
mov ecx, dword [esp + 0x314]
pop ebp
pop ebx
xor ecx, esp
call fcn.10062448
add esp, 0x310
ret 0x14
mov eax, dword [esp + 0x10]
imul eax, eax, 0xaa
mov edx, dword [eax + 0x100e7b18]
mov dword [ebx + 0x21f], edx
mov edx, dword [eax + 0x100e7b1c]
lea ecx, [ebx + 0x21f]
mov dword [ecx + 4], edx
mov edx, dword [eax + 0x100e7b20]
mov dword [ecx + 8], edx
mov edx, dword [eax + 0x100e7b24]
mov dword [ecx + 0xc], edx
mov edx, dword [eax + 0x100e7b28]
lea edi, [ebx + 0x22f]
mov dword [edi], edx
mov edx, dword [eax + 0x100e7b2c]
mov dword [edi + 4], edx
mov edx, dword [eax + 0x100e7b30]
mov dword [edi + 8], edx
mov eax, dword [eax + 0x100e7b34]
mov dword [edi + 0xc], eax
jmp 0x10043098