Function at 0x40d7a0
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c8
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push 0x40
mov dword [ebp - 0x2c4], eax
mov ebx, edx
lea eax, [ebp - 0x248]
push 0
push eax
call fcn.004459f0
add esp, 0xc
lea eax, [ebp - 0x2c0]
push 0x5c
push 0
push eax
call fcn.004459f0
mov edx, dword [0x4769bc]
lea ecx, [ebp - 0x260]
add esp, 0xc
mov dword [ebp - 0x260], 0
mov dword [ebp - 0x25c], 0
mov dword [ebp - 0x258], 0x67452301
lea edx, [edx + 0x464]
mov dword [ebp - 0x254], 0xefcdab89
push 0x40
mov dword [ebp - 0x250], 0x98badcfe
mov dword [ebp - 0x24c], 0x10325476
call fcn.00412a30
mov esi, eax
add esp, 4
test esi, esi
je 0x40d8a6
mov eax, dword [0x476980]
test eax, eax
je 0x40db44
cmp dword [eax + 0x10], 0
je 0x40db44
cmp dword [0x474488], 1
jl 0x40db44
cmp esi, 0xffff9700
je 0x40db44
mov eax, esi
neg eax
push eax
push esi
push str.mbedtls_md5_update_ret
push str._s___returned__d___0x_04x__n
lea eax, [ebp - 0x208]
push 0x200
push eax
call fcn.0042e840
lea ecx, [ebp - 0x208]
push ecx
push 0x25c9
jmp 0x40db2d
push dword [ebp + 0xc]
mov edx, dword [ebp - 0x2c4]
lea ecx, [ebp - 0x260]
call fcn.00412a30
mov esi, eax
add esp, 4
test esi, esi
je 0x40d925
mov eax, dword [0x476980]
test eax, eax
je 0x40db44
cmp dword [eax + 0x10], 0
je 0x40db44
cmp dword [0x474488], 1
jl 0x40db44
cmp esi, 0xffff9700
je 0x40db44
mov eax, esi
neg eax
push eax
push esi
push str.mbedtls_md5_update_ret
push str._s___returned__d___0x_04x__n
lea eax, [ebp - 0x208]
push 0x200
push eax
call fcn.0042e840
lea ecx, [ebp - 0x208]
push ecx
push 0x25ce
jmp 0x40db2d
mov edx, ebx
lea ecx, [ebp - 0x260]
call fcn.00412ae0
mov esi, eax
test esi, esi
je 0x40d99a
mov eax, dword [0x476980]
test eax, eax
je 0x40db44
cmp dword [eax + 0x10], 0
je 0x40db44
cmp dword [0x474488], 1
jl 0x40db44
cmp esi, 0xffff9700
je 0x40db44
mov eax, esi
neg eax
push eax
push esi
push str.mbedtls_md5_finish_ret
push str._s___returned__d___0x_04x__n
lea eax, [ebp - 0x208]
push 0x200
push eax
call fcn.0042e840
lea ecx, [ebp - 0x208]
push ecx
push 0x25d3
jmp 0x40db2d
mov edx, dword [0x4769bc]
lea ecx, [ebp - 0x2c0]
push 0x40
mov dword [ebp - 0x2b8], 0x67452301
mov dword [ebp - 0x2b4], 0xefcdab89
lea edx, [edx + 0x464]
mov dword [ebp - 0x2b0], 0x98badcfe
mov dword [ebp - 0x2ac], 0x10325476
mov dword [ebp - 0x2a8], 0xc3d2e1f0
call fcn.0041a630
mov esi, eax
add esp, 4
test esi, esi
je 0x40da50
mov eax, dword [0x476980]
test eax, eax
je 0x40db44
cmp dword [eax + 0x10], 0
je 0x40db44
cmp dword [0x474488], 1
jl 0x40db44
cmp esi, 0xffff9700
je 0x40db44
mov eax, esi
neg eax
push eax
push esi
push str.mbedtls_sha1_update_ret
push str._s___returned__d___0x_04x__n
lea eax, [ebp - 0x208]
push 0x200
push eax
call fcn.0042e840
lea ecx, [ebp - 0x208]
push ecx
push 0x25df
jmp 0x40db2d
push dword [ebp + 0xc]
mov edx, dword [ebp - 0x2c4]
lea ecx, [ebp - 0x2c0]
call fcn.0041a630
mov esi, eax
add esp, 4
test esi, esi
je 0x40dacc
mov eax, dword [0x476980]
test eax, eax
je 0x40db44
cmp dword [eax + 0x10], 0
je 0x40db44
cmp dword [0x474488], 1
jl 0x40db44
cmp esi, 0xffff9700
je 0x40db44
mov eax, esi
neg eax
push eax
push esi
push str.mbedtls_sha1_update_ret
push str._s___returned__d___0x_04x__n
lea eax, [ebp - 0x208]
push 0x200
push eax
call fcn.0042e840
lea ecx, [ebp - 0x208]
push ecx
push 0x25e5
jmp 0x40db2d
lea edx, [ebx + 0x10]
lea ecx, [ebp - 0x2c0]
call fcn.0041a6e0
mov esi, eax
test esi, esi
je 0x40db44
mov eax, dword [0x476980]
test eax, eax
je 0x40db44
cmp dword [eax + 0x10], 0
je 0x40db44
cmp dword [0x474488], 1
jl 0x40db44
cmp esi, 0xffff9700
je 0x40db44
mov eax, esi
neg eax
push eax
push esi
push str.mbedtls_sha1_finish_ret
push str._s___returned__d___0x_04x__n
lea eax, [ebp - 0x208]
push 0x200
push eax
call fcn.0042e840
lea ecx, [ebp - 0x208]
push ecx
push 0x25eb
mov eax, dword [0x476980]
push str.C:UserspentesterDownloadsxxxxxxxcs4.5externalmbedtls_2.14.1library_ssl_tls.c
push 1
push dword [eax + 0x14]
mov eax, dword [eax + 0x10]
call eax
add esp, 0x2c
push 0x58
lea eax, [ebp - 0x260]
push 0
push eax
mov eax, dword [fcn.004459f0]
call eax
add esp, 0xc
lea eax, [ebp - 0x2c0]
push 0x5c
push 0
push eax
mov eax, dword [fcn.004459f0]
call eax
add esp, 0xc
test esi, esi
je 0x40db7e
push 0x50
mov dl, 2
call fcn.00409860
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00444a17
mov esp, ebp
pop ebp
ret