Function at 0x50a9c0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53b97c
mov eax, dword fs:[0]
push eax
sub esp, 0x15c
mov eax, dword [0x59a0a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14c], ecx
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x160], eax
lea eax, [ecx + 0x424]
lea ecx, [ebp - 0x160]
mov dword [ebp - 0x164], esi
push ecx
lea ecx, [ebp - 0x15c]
mov dword [ebp - 0x150], eax
push ecx
mov ecx, eax
call fcn.0042be10
mov ebx, dword [ebp - 0x15c]
mov eax, dword [ebx + 0x34]
mov dword [esi + 0x38], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x3c], eax
lea ecx, [ebp - 0xc0]
sub eax, dword [esi + 0x38]
xorps xmm0, xmm0
mov dword [esi + 0x34], eax
mov byte [ebp - 0x20], 0
movq qword [ebp - 0x1f], xmm0
mov dword [ebp - 0x17], 0
mov word [ebp - 0x13], 0
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x80], 0x67452301
mov dword [ebp - 0x7c], 0xefcdab89
mov dword [ebp - 0x78], 0x98badcfe
mov dword [ebp - 0x74], 0x10325476
call fcn.0044c8e2
mov dword [ebp - 4], 0
lea edx, [ebp - 0xc0]
cmp dword [ebp - 0xac], 0x10
lea ecx, [ebp - 0x80]
push dword [ebp - 0xb0]
cmovae edx, dword [ebp - 0xc0]
call fcn.004cf050
mov edx, dword [ebx + 0x84]
lea ecx, [ebp - 0x80]
add esp, 4
mov eax, dword [edx - 0xc]
add eax, eax
push eax
call fcn.004cf050
add esp, 4
lea edx, [ebp - 0x80]
lea ecx, [ebp - 0x20]
call fcn.004cf120
call fcn.00401980
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x50aafe
push 0x80004005
call fcn.00401b40
mov eax, dword [edx]
mov esi, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x50ab13
lock inc dword [edx + 0x14]
lea eax, [edx + 8]
jmp 0x50ab17
mov ecx, edx
call esi
add eax, 0x10
mov dword [ebp - 0x158], eax
mov byte [ebp - 4], 1
xor edi, edi
call fcn.00401980
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x50aaf4
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
cmp ecx, vtable.ATL::CAtlStringMgr.0
jne 0x50ab4c
lock inc dword [eax + 0x14]
add eax, 8
jmp 0x50ab50
mov ecx, eax
call edx
add eax, 0x10
mov dword [ebp - 0x154], eax
mov byte [ebp - 4], 2
movzx eax, byte [ebp + edi - 0x20]
push eax
lea eax, [ebp - 0x154]
push 0x56e904
push eax
call fcn.004023f0
mov esi, dword [ebp - 0x154]
lea ecx, [ebp - 0x158]
add esp, 0xc
push dword [esi - 0xc]
push esi
call fcn.00402320
mov byte [ebp - 4], 1
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x50abc1
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x50abbf
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x50abc1
call edx
inc edi
cmp edi, 0x10
jl 0x50ab26
mov esi, dword [ebp - 0x158]
lea eax, [ebp - 0xa4]
push 3
push esi
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0xa8], eax
call fcn.0042ac40
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0xa8]
cmp byte [edx], 0
jne 0x50abfe
xor ecx, ecx
jmp 0x50ac0c
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x50ac03
sub ecx, edi
mov edi, dword [ebp - 0x164]
push ecx
push edx
mov ecx, edi
call fcn.00406560
mov eax, dword [ebp - 0xa8]
lea ecx, [ebp - 0xa4]
cmp eax, ecx
je 0x50ac34
push eax
call fcn.004a51fb
add esp, 4
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x50ac69
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x50ac67
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x50ac69
call edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xac]
cmp eax, 0x10
jb 0x50accc
lea ecx, [eax + 1]
mov eax, dword [ebp - 0xc0]
cmp ecx, 0xffffffff
jbe 0x50ac8e
call fcn.004a4e3e
cmp ecx, 0x1000
jb 0x50acc3
test al, 0x1f
je 0x50ac9f
call fcn.004a4e3e
mov ecx, dword [eax - 4]
cmp ecx, eax
jb 0x50acab
call fcn.004a4e3e
sub eax, ecx
cmp eax, 4
jae 0x50acb7
call fcn.004a4e3e
cmp eax, 0x23
jbe 0x50acc1
call fcn.004a4e3e
mov eax, ecx
push eax
call fcn.0049aa1d
add esp, 4
mov eax, dword [ebx + 0x2c]
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 0x14c]
cmp dword [eax + 0x994], 4
jne 0x50ad56
lea ecx, [ebp - 0xa4]
push 3
push dword [eax + 0x478]
mov dword [ebp - 0xa8], ecx
lea ecx, [ebp - 0xa8]
call fcn.0042ac40
mov dword [ebp - 4], 4
mov edx, dword [ebp - 0xa8]
cmp byte [edx], 0
jne 0x50ad16
xor ecx, ecx
jmp 0x50ad29
mov ecx, edx
lea esi, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x50ad20
sub ecx, esi
push ecx
push edx
lea ecx, [edi + 0x84]
call fcn.00406560
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa4]
mov eax, dword [ebp - 0xa8]
cmp eax, ecx
je 0x50ad56
push eax
call fcn.004a51fb
add esp, 4
mov eax, dword [0x59fae0]
mov ecx, dword [ebp - 0x150]
mov dword [edi + 0xa0], eax
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 0x168]
mov dword [ebp - 0x14c], 7
push eax
call fcn.0042be10
mov eax, dword [ebp - 0x168]
lea ecx, [ebp - 0xa4]
push 3
mov eax, dword [eax + 0x80]
mov dword [ebp - 0xa8], ecx
lea ecx, [ebp - 0xa8]
push eax
call fcn.0042ac40
mov dword [ebp - 4], 5
mov edx, dword [ebp - 0xa8]
cmp byte [edx], 0
jne 0x50adc0
xor ecx, ecx
jmp 0x50adce
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x50adc5
sub ecx, esi
push ecx
push edx
lea ecx, [edi + 0xa4]
call fcn.00406560
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa4]
mov eax, dword [ebp - 0xa8]
cmp eax, ecx
je 0x50adfb
push eax
call fcn.004a51fb
add esp, 4
push 3
push dword [ebx + 0x60]
lea eax, [ebp - 0xa4]
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0xa8], eax
call fcn.0042ac40
mov dword [ebp - 4], 6
mov edx, dword [ebp - 0xa8]
cmp byte [edx], 0
jne 0x50ae2d
xor ecx, ecx
jmp 0x50ae3b
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x50ae32
sub ecx, esi
push ecx
push edx
lea ecx, [edi + 0xbc]
call fcn.00406560
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa4]
mov eax, dword [ebp - 0xa8]
cmp eax, ecx
je 0x50ae68
push eax
call fcn.004a51fb
add esp, 4
push 3
push dword [ebx + 0x84]
lea eax, [ebp - 0xa4]
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0xa8], eax
call fcn.0042ac40
mov dword [ebp - 4], 7
mov edx, dword [ebp - 0xa8]
cmp byte [edx], 0
jne 0x50ae9d
xor ecx, ecx
jmp 0x50aeab
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x50aea2
sub ecx, esi
push ecx
lea esi, [edi + 0x4c]
push edx
mov ecx, esi
call fcn.00406560
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa4]
mov eax, dword [ebp - 0xa8]
cmp eax, ecx
je 0x50aed7
push eax
call fcn.004a51fb
add esp, 4
mov eax, dword [ebx + 0xb0]
cmp eax, dword [ebx + 0xb4]
sete al
test al, al
je 0x50af04
lea ecx, [edi + 0x64]
cmp ecx, esi
je 0x50afdd
push 0xffffffffffffffff
push 0
push esi
call fcn.00406660
jmp 0x50afdd
lea esi, [ebx + 0xc8]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0xb4]
mov edx, dword [ebx + 0xb0]
sub eax, edx
mov ecx, dword [ebx + 0xac]
sar eax, 2
cmp eax, ecx
ja 0x50af36
push 0x57962c
call fcn.00498105
mov eax, dword [edx + ecx*4]
lea ecx, [ebp - 0x144]
push 3
mov dword [ebp - 0x148], ecx
lea ecx, [ebp - 0x148]
push eax
call fcn.0042ac40
mov dword [ebp - 4], 8
mov edx, dword [ebp - 0x148]
cmp byte [edx], 0
jne 0x50af69
xor ecx, ecx
jmp 0x50af81
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x150], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x50af74
sub ecx, dword [ebp - 0x150]
push ecx
push edx
lea ecx, [edi + 0x64]
call fcn.00406560
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x144]
mov eax, dword [ebp - 0x148]
cmp eax, ecx
je 0x50afab
push eax
call fcn.004a51fb
add esp, 4
mov eax, dword [ebx + 0xc0]
mov edx, dword [ebx + 0xbc]
sub eax, edx
mov ecx, dword [ebx + 0xac]
sar eax, 2
cmp eax, ecx
ja 0x50afd0
push 0x57962c
call fcn.00498105
mov eax, dword [edx + ecx*4]
push esi
mov dword [edi + 0x48], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049aa22
mov esp, ebp
pop ebp
ret 8