Function at 0x10042770
Capabilities:
Hash data using sha1

Disassembly:
sub esp, 0x310
mov eax, dword [0x100d1040]
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 0x10042c53
cmp byte [esp + 0x328], 0
push esi
push edi
je 0x1004292d
cmp dword [0x100d7154], 0
jne 0x100427c4
call fcn.10040440
mov eax, ebp
mov esi, ebx
call fcn.10042ce0
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.10059a00
mov eax, ebp
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10042811
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 0x10042830
sub eax, edx
lea ebp, [ebx + 0x104]
mov ecx, 0x40
mov esi, 0x100d3ee0
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 0x100428f4
jmp 0x10042870
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 + 0x100d7150]
and eax, 0xff
movzx eax, byte [eax*4 + 0x100d7150]
mov esi, 1
cmp eax, edi
je 0x100428e3
jmp 0x100428b0
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 0x100428b0
mov edx, dword [esp + 0x1c]
add ecx, 2
cmp ecx, dword [esp + 0x10]
mov dword [esp + 0x14], ecx
jl 0x10042870
mov eax, dword [esp + 0x10]
inc edx
cmp edx, 0x100
mov dword [esp + 0x1c], edx
jl 0x10042857
xor esi, esi
test eax, eax
jle 0x10042c51
nop
lea eax, [esp + esi + 0x94]
push eax
mov eax, ebx
call fcn.10041e90
add esi, 0x10
cmp esi, dword [esp + 0x10]
jl 0x10042910
jmp 0x10042c51
xor esi, esi
mov eax, 0x81
sub eax, dword [esp + 0x32c]
mov dword [esp + 0x10], esi
mov dword [esp + 0x1c], eax
lea edi, [esi + 0x100da8f8]
mov edx, ebp
mov ecx, edi
lea ecx, [ecx]
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x10042970
test al, al
je 0x1004296c
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x10042970
add ecx, 2
add edx, 2
test al, al
jne 0x10042950
xor eax, eax
jmp 0x10042975
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x100429c7
mov eax, dword [esp + 0x32c]
test eax, eax
jne 0x1004298e
cmp byte [esi + 0x100da978], al
je 0x100429b4
jmp 0x100429c7
cmp byte [esi + 0x100da978], 0
je 0x100429c7
mov edx, dword [esp + 0x1c]
mov ecx, 8
add edx, edi
mov edi, dword [eax + edx]
cmp edi, dword [eax]
jne 0x100429c7
sub ecx, 4
add eax, 4
cmp ecx, 4
jae 0x100429a2
mov al, byte [esp + 0x334]
cmp byte [esi + 0x100da981], al
je 0x10042c6c
inc dword [esp + 0x10]
add esi, 0xaa
cmp esi, 0x2a8
jb 0x10042943
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.10040630
xor ecx, ecx
lea eax, [esp + 0x114]
cmp word [esp + 0x114], cx
je 0x10042a2e
add eax, 2
inc ecx
cmp word [eax], 0
jne 0x10042a24
mov eax, dword [esp + 0x32c]
xor ebx, ebx
lea ebp, [ecx + ecx]
cmp eax, ebx
je 0x10042a54
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 0x10042a90
mov eax, dword [esp + 0x334]
push eax
lea ecx, [esp + 0x218]
push ebp
push ecx
lea esi, [esp + 0x44]
call fcn.10046ec0
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.10046ec0
mov eax, ebx
add esp, 0x18
and eax, 0x80003fff
jns 0x10042ae7
dec eax
or eax, 0xffffc000
inc eax
jne 0x10042b33
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.10046f80
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 0x10042a90
mov ebx, dword [esp + 0x334]
push ebx
lea edx, [esp + 0x28]
lea ecx, [esp + 0x3c]
call fcn.10046f80
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 0x10042b64
mov ebp, dword [0x100da794]
mov ecx, dword [esp + 0x20]
mov eax, ebp
imul eax, eax, 0xaa
mov edx, eax
sub edx, ecx
lea esi, [edx + 0x100da8f8]
mov dl, byte [ecx]
mov byte [ecx + esi], dl
inc ecx
test dl, dl
jne 0x10042ba5
mov edx, dword [esp + 0x32c]
test edx, edx
setne cl
mov byte [eax + 0x100da978], cl
cmp cl, 1
jne 0x10042bd7
mov ecx, dword [edx]
mov dword [eax + 0x100da979], ecx
mov edx, dword [edx + 4]
mov dword [eax + 0x100da97d], edx
mov byte [eax + 0x100da981], bl
mov edx, dword [edi + 0x21f]
mov dword [eax + 0x100da8d8], edx
mov edx, dword [edi + 0x223]
mov ebx, dword [esp + 0x18]
lea ecx, [edi + 0x21f]
mov dword [eax + 0x100da8dc], edx
mov edx, dword [ecx + 8]
mov dword [eax + 0x100da8e0], edx
mov edx, dword [ecx + 0xc]
mov dword [eax + 0x100da8e4], edx
mov edx, dword [edi + 0x22f]
add edi, 0x22f
mov dword [eax + 0x100da8e8], edx
mov edx, dword [edi + 4]
mov dword [eax + 0x100da8ec], edx
mov edx, dword [edi + 8]
mov dword [eax + 0x100da8f0], edx
mov edx, dword [edi + 0xc]
inc ebp
and ebp, 3
mov dword [eax + 0x100da8f4], edx
mov dword [0x100da794], ebp
push 1
mov esi, ebx
call fcn.10040ac0
pop edi
pop esi
mov ecx, dword [esp + 0x314]
pop ebp
pop ebx
xor ecx, esp
call fcn.1005710f
add esp, 0x310
ret 0x14
mov eax, dword [esp + 0x10]
imul eax, eax, 0xaa
mov edx, dword [eax + 0x100da8d8]
mov dword [ebx + 0x21f], edx
mov edx, dword [eax + 0x100da8dc]
lea ecx, [ebx + 0x21f]
mov dword [ecx + 4], edx
mov edx, dword [eax + 0x100da8e0]
mov dword [ecx + 8], edx
mov edx, dword [eax + 0x100da8e4]
mov dword [ecx + 0xc], edx
mov edx, dword [eax + 0x100da8e8]
lea edi, [ebx + 0x22f]
mov dword [edi], edx
mov edx, dword [eax + 0x100da8ec]
mov dword [edi + 4], edx
mov edx, dword [eax + 0x100da8f0]
mov dword [edi + 8], edx
mov eax, dword [eax + 0x100da8f4]
mov dword [edi + 0xc], eax
jmp 0x10042c48