Function at 0x404c50
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59a970
mov eax, dword fs:[0]
push eax
sub esp, 0x4c0
mov eax, dword [0x5fdb00]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x4b4], esi
mov dword [ebp - 0x4ac], ebx
lea ecx, [ebp - 0x4c8]
mov dword [ebp - 4], 1
call fcn.0040b644
mov byte [ebp - 4], 2
call fcn.00409b4c
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x404cbe
push 0x80004005
call fcn.00402740
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x4a8], edi
push ebx
mov byte [ebp - 4], 3
mov ecx, dword [ebp + 8]
push ebx
push ecx
lea ecx, [ebp - 0x4c8]
call fcn.0040bb59
test eax, eax
jne 0x404d63
push ebx
push ebx
push str.open_file_error
call fcn.0040c04d
push 0x5cf79c
mov ecx, esi
call fcn.004054a0
add edi, 0xfffffff0
mov dword [ebp - 0x4ac], 1
mov byte [ebp - 4], 2
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x404d2b
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
lea ecx, [ebp - 0x4c8]
mov byte [ebp - 4], 1
call fcn.0040b7b2
mov byte [ebp - 4], bl
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404d5c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x404fdf
push 0x400
lea ecx, [ebp - 0x44c]
push ecx
lea ecx, [ebp - 0x4c8]
mov dword [ebp - 0x490], ebx
mov dword [ebp - 0x494], ebx
mov dword [ebp - 0x4a4], 0x67452301
mov dword [ebp - 0x4a0], 0xefcdab89
mov dword [ebp - 0x49c], 0x98badcfe
mov dword [ebp - 0x498], 0x10325476
call fcn.0040b30a
cmp eax, ebx
je 0x404ddf
lea edx, [ebp - 0x44c]
push edx
lea ecx, [ebp - 0x4a4]
call fcn.004042f0
push 0x400
lea eax, [ebp - 0x44c]
push eax
lea ecx, [ebp - 0x4c8]
call fcn.0040b30a
cmp eax, ebx
jne 0x404db2
lea esi, [ebp - 0x4a4]
lea ebx, [ebp - 0x24]
call fcn.004043b0
lea ecx, [ebp - 0x4c8]
call fcn.0040b5df
xor esi, esi
lea ebx, [ebp - 0x48]
lea ecx, [ecx]
movzx ecx, byte [ebp + esi - 0x24]
push ecx
push str._02x
push ebx
call fcn.00508da6
inc esi
add esp, 0xc
add ebx, 2
cmp esi, 0x10
jl 0x404e00
push 0x20
lea edx, [ebp - 0x48]
push edx
push 0x6080c4
call fcn.0050c4c0
mov esi, 0x6080c4
add esp, 0xc
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x404e38
sub esi, ecx
jne 0x404ea5
cmp dword [edi - 0xc], 0
mov esi, dword [edi - 0x10]
lea eax, [edi - 0x10]
je 0x404f1d
cmp dword [eax + 0xc], 0
lea ecx, [eax + 0xc]
jge 0x404e7b
cmp dword [edi - 8], 0
jge 0x404e6c
push 0x80070057
call fcn.00402740
mov dword [edi - 0xc], 0
mov byte [edi], 0
jmp 0x404f1d
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404e91
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x4a8], edi
jmp 0x404f1d
mov ecx, dword [edi - 0xc]
mov ebx, 0x6080c4
sub ebx, edi
mov dword [ebp - 0x4b0], ecx
test esi, esi
jns 0x404ec3
push 0x80070057
call fcn.00402740
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, esi
or eax, ecx
jge 0x404ee6
push esi
lea ecx, [ebp - 0x4a8]
call fcn.00403df0
mov edi, dword [ebp - 0x4a8]
mov eax, dword [edi - 8]
push esi
cmp ebx, dword [ebp - 0x4b0]
ja 0x404efe
add ebx, edi
push ebx
push eax
push edi
call fcn.00509485
jmp 0x404f0a
push 0x6080c4
push eax
push edi
call fcn.00508131
add esp, 0x10
cmp esi, dword [edi - 8]
jg 0x404e62
mov dword [edi - 0xc], esi
mov byte [esi + edi], 0
mov ecx, dword [edi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
lea esi, [edi - 0x10]
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x404f44
cmp eax, dword [esi]
jne 0x404f44
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x404f79
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
jne 0x404f5d
call fcn.00403da0
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
inc eax
push eax
lea ecx, [esi + 0x10]
push ecx
push eax
lea edx, [edi + 0x10]
push edx
call fcn.00508131
add esp, 0x10
lea eax, [edi + 0x10]
mov edi, dword [ebp - 0x4b4]
mov dword [edi], eax
mov dword [ebp - 0x4ac], 1
mov byte [ebp - 4], 2
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404fab
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
lea ecx, [ebp - 0x4c8]
mov byte [ebp - 4], 1
call fcn.0040b7b2
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404fdd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00507bdc
mov esp, ebp
pop ebp
ret 4