Function at 0x46bd40
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b0
mov eax, dword [0x51e080]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0x148]
push ecx
mov dword [ebp - 0x144], eax
lea ecx, [ebp - 0x134]
mov eax, dword [ebp + 0x20]
push ecx
mov dword [ebp - 0x140], eax
lea ecx, [ebp - 0x130]
mov eax, dword [ebx + 0x14]
push ecx
push edi
push 0x5aa01092
mov ecx, dword [eax + 0x470]
mov dword [ebp - 0x154], ebx
mov dword [ebp - 0x150], esi
mov dword [ebp - 0x14c], edi
mov dword [ebp - 0x134], 4
call fcn.00419020
cmp eax, 1
je 0x46bdf1
cmp dword [ebp - 0x134], 4
jb 0x46bde0
mov eax, dword [ebp - 0x130]
test eax, eax
je 0x46bde0
cmp eax, 1
je 0x46bde0
cmp eax, 2
je 0x46bde0
cmp eax, 6
jne 0x46c631
mov ecx, dword [ebp - 0x148]
shr ecx, 0x10
and ecx, 1
jmp 0x46bf06
mov eax, dword [ebx + 0x14]
lea ecx, [ebp - 0x148]
push ecx
lea ecx, [ebp - 0x134]
mov dword [ebp - 0x134], 4
push ecx
lea ecx, [ebp - 0x130]
push ecx
mov ecx, dword [eax + 0x470]
push edi
push 0x7fa8011c
call fcn.00419020
cmp eax, 1
je 0x46be5e
cmp dword [ebp - 0x134], 4
jb 0x46be4f
mov eax, dword [ebp - 0x130]
test eax, eax
je 0x46be4f
cmp eax, 1
je 0x46be4f
cmp eax, 2
je 0x46be4f
cmp eax, 6
jne 0x46c631
mov dword [ebp - 0x148], 1
jmp 0x46bf0c
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0x4d8]
mov esi, dword [eax + 0xbc]
test edi, edi
je 0x46c631
lea edi, [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x1ac]
mov ecx, esi
push eax
push dword [ebp - 0x14c]
call fcn.0042ceb0
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
jne 0x46c631
mov eax, dword [ebp - 0x16c]
shr eax, 8
dec eax
movzx eax, al
test eax, eax
je 0x46bebe
cmp eax, 1
jne 0x46c631
mov eax, dword [ebp - 0x19c]
mov ecx, dword [ebp - 0x178]
test eax, eax
je 0x46beea
cmp eax, 2
jne 0x46bee1
test ecx, 0x200
je 0x46c631
jmp 0x46beea
cmp eax, 1
jne 0x46c631
mov esi, dword [ebp - 0x150]
test cl, 0x80
mov edi, dword [ebp - 0x14c]
mov ecx, 0
mov eax, 1
cmovne ecx, eax
mov dword [ebp - 0x148], ecx
mov eax, dword [ebp + 8]
cmp eax, 0x7d0
jne 0x46bf43
push dword [ebp + 0x18]
mov ecx, dword [ebx + 0x3c]
push esi
call fcn.004ab560
test eax, eax
jne 0x46c631
lea eax, [ebp - 0x138]
push eax
push ecx
push esi
call fcn.004ab250
mov ecx, dword [ebp - 0x138]
jmp 0x46c17b
cmp eax, 0x7d1
jne 0x46c139
mov ecx, dword [ebx + 0x38]
mov dword [ebp - 0x134], ecx
test edi, edi
je 0x46c631
test esi, esi
je 0x46c631
mov eax, dword [ebp + 0x18]
cmp eax, 0x68
jb 0x46c631
cmp dword [esi], 0x7d1
jne 0x46c631
mov edx, dword [esi + 4]
test edx, edx
je 0x46c0b9
movzx eax, dx
mov dword [ebp - 0x138], eax
mov eax, dword [ecx + 0x90]
mov dword [ebp - 0x13c], eax
lea eax, [ebp - 0x13c]
push eax
push dword [ecx + 0x9c]
lea eax, [ecx + 0x10]
mov ecx, dword [ecx + 8]
push eax
push edi
call fcn.004a73f0
test eax, eax
jne 0x46c631
lea eax, [ebp - 0x130]
push eax
mov eax, dword [ebp - 0x134]
push ecx
push dword [eax + 0x9c]
call fcn.004abbd0
test eax, eax
jne 0x46c631
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebp - 0x134]
push 0x20
push edi
mov dword [ebp - 0x64], 0x67452301
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x60], 0xefcdab89
mov dword [ebp - 0x5c], 0x98badcfe
mov dword [ebp - 0x58], 0x10325476
call fcn.004b2200
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebp - 0x134]
push dword [ebp - 0x130]
push dword [eax + 0x9c]
mov ecx, dword [eax + 0xc]
call fcn.004b2200
lea eax, [ebp - 0x64]
push eax
push 4
lea eax, [ebp - 0x138]
push eax
mov eax, dword [ebp - 0x134]
mov ecx, dword [eax + 0xc]
call fcn.004b2200
lea eax, [ebp - 0x64]
push eax
push 4
lea eax, [ebp - 0x130]
push eax
mov eax, dword [ebp - 0x134]
mov ecx, dword [eax + 0xc]
call fcn.004b2200
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebp - 0x134]
push 0x20
push edi
mov ecx, dword [eax + 0xc]
call fcn.004b2200
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebp - 0x134]
mov ecx, dword [eax + 0xc]
call fcn.004b2580
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x138]
lea edx, [esi + 0x2c]
lea ecx, [ebp - 0x12c]
call fcn.004bd9f0
mov eax, dword [ebp + 0x18]
add esp, 8
mov dword [esi + 4], 0
mov ecx, dword [ebx + 0x3c]
push eax
push esi
call fcn.004ab560
test eax, eax
jne 0x46c631
push dword [ebp + 0x18]
push esi
push dword [ebp - 0x144]
push eax
call fcn.004ab3f0
test eax, eax
jne 0x46c631
cmp dword [esi + 4], eax
jne 0x46c106
mov eax, dword [esi + 0x64]
add eax, dword [esi + 0x60]
add eax, dword [esi + 0x5c]
test byte [esi + 8], 1
je 0x46c100
mov eax, dword [esi + eax*2 + 0xb8]
jmp 0x46c10c
mov eax, dword [esi + eax*2 + 0x68]
jmp 0x46c10c
mov eax, dword [ebp - 0x138]
mov dword [ebp - 0x130], eax
lea eax, [ebp - 0x13c]
push eax
push ecx
push esi
call fcn.004ab1f0
mov eax, dword [ebp - 0x13c]
mov ecx, dword [ebp - 0x130]
add eax, 0x78
cmp ecx, eax
ja 0x46c631
jmp 0x46c17b
cmp eax, 0x7d5
jne 0x46c631
push dword [ebp + 0x18]
mov ecx, dword [ebx + 0x3c]
push esi
call fcn.004ab560
test eax, eax
jne 0x46c631
push dword [ebp + 0x18]
push esi
push dword [ebp - 0x144]
push eax
call fcn.004ab3f0
test eax, eax
jne 0x46c631
mov eax, dword [esi + 0x50]
mov ecx, eax
mov dword [ebp - 0x130], eax
mov eax, dword [ebp + 0x1c]
add eax, 0x78
cmp ecx, eax
ja 0x46c631
mov edx, dword [ebx + 0x3c]
lea ecx, [ebp - 0x134]
push ecx
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x13c], 0
mov eax, dword [edx + 0x10]
push dword [edx + 0x14]
mov dword [ebp - 0x134], eax
mov eax, dword [ebx + 0x14]
push dword [ebp - 0x144]
push edi
mov ecx, dword [eax + 0x49c]
call fcn.004a73f0
test eax, eax
jne 0x46c242
mov eax, dword [ebx + 0x3c]
push dword [ebp - 0x134]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x138], ecx
push ecx
mov ecx, eax
call fcn.004ab560
test eax, eax
jne 0x46c242
push dword [ebp - 0x134]
mov ecx, dword [ebx + 0x3c]
push dword [ebp - 0x138]
push dword [ebp + 0x18]
push esi
push dword [ebp + 8]
call fcn.004aafa0
test eax, eax
jne 0x46c238
cmp dword [ebp + 8], 0x7d1
mov eax, 1
mov dword [ebp - 0x138], eax
jne 0x46c23a
lea eax, [ebp - 0x13c]
push eax
mov eax, dword [ebx + 0x3c]
push ecx
push dword [eax + 0x14]
call fcn.004ab1a0
mov eax, dword [ebp - 0x138]
jmp 0x46c23a
xor eax, eax
test eax, eax
je 0x46c631
mov eax, dword [ebp + 8]
cmp eax, 0x7d1
jne 0x46c45d
mov eax, dword [ebx + 0x38]
mov dword [ebp - 0x134], eax
test esi, esi
je 0x46c47b
cmp dword [esi], 0x7d1
jne 0x46c47b
cmp dword [esi + 4], 0
jne 0x46c47b
lea eax, [esi + 0xc]
push eax
push edi
call fcn.004abe70
test eax, eax
jne 0x46c47b
test byte [esi + 8], 1
je 0x46c2d5
mov ebx, dword [esi + 0x5c]
mov edx, dword [esi + 0x60]
lea edi, [ebx + 0x34]
lea edi, [esi + edi*2]
mov esi, dword [esi + 0x64]
add esi, edx
lea ecx, [edi + esi*2]
lea eax, [ecx + 0x28]
push eax
push ecx
mov ecx, dword [ebp - 0x134]
lea eax, [ebx + esi]
mov esi, dword [ebp - 0x150]
lea eax, [eax*2 + 0x68]
push edx
push edi
push eax
push esi
call fcn.004adcb0
test eax, eax
jne 0x46c47b
mov edi, dword [ebp - 0x14c]
mov ecx, dword [ebp - 0x134]
mov eax, dword [ecx + 0x90]
mov dword [ebp - 0x138], eax
lea eax, [ebp - 0x138]
push eax
push dword [ecx + 0x9c]
lea eax, [ecx + 0x10]
mov ecx, dword [ecx + 8]
push eax
push edi
call fcn.004a73f0
test eax, eax
jne 0x46c47b
push eax
mov eax, dword [ebp - 0x134]
mov ecx, eax
push dword [ebp - 0x138]
push dword [eax + 0x9c]
call fcn.004ace30
test eax, eax
jne 0x46c47b
mov eax, dword [ebp - 0x134]
mov ecx, dword [eax + 0x9c]
mov dword [ebp - 0x14c], ecx
cmp dword [ecx], 1
jne 0x46c47b
mov edx, dword [ecx + 4]
mov eax, dword [eax + 4]
mov ebx, dword [ebp - 0x154]
mov dword [ebp - 0x138], edx
lea edx, [ecx + edx*2]
mov ecx, dword [edx + 0xc]
add ecx, dword [edx + 8]
mov ax, word [eax + 0x28e]
cmp ax, word [edx + ecx*2 + 0x1a]
jne 0x46c47b
mov eax, dword [edx + 0xc]
add eax, dword [edx + 8]
add eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x14c]
mov al, byte [ecx + eax*2 + 0x11]
cmp al, 1
je 0x46c395
cmp al, 3
je 0x46c395
cmp al, 4
jne 0x46c39f
test byte [esi + 8], 1
je 0x46c47b
mov eax, dword [esi + 4]
test eax, eax
je 0x46c3b0
movzx ecx, ax
add ecx, 0x30
add ecx, esi
jmp 0x46c3c8
mov eax, dword [esi + 0x64]
add eax, dword [esi + 0x60]
add eax, dword [esi + 0x5c]
test byte [esi + 8], 1
lea ecx, [eax + 0x5e]
jne 0x46c3c5
lea ecx, [eax + 0x36]
lea ecx, [esi + ecx*2]
mov eax, dword [ecx]
mov edx, dword [ebp - 0x13c]
and eax, 0xfffffffd
mov dword [ecx], eax
test edx, edx
je 0x46c451
test byte [edx], 2
je 0x46c451
or eax, 2
mov dword [ecx], eax
mov eax, dword [ebx + 0x18]
mov edx, dword [ebp - 0x144]
mov eax, dword [eax + 0xc8]
mov dword [ebp - 0x13c], eax
test edx, edx
je 0x46c493
test esi, esi
je 0x46c493
lea esi, [eax + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 0x13c]
push 0
push 0
push dword [ebp + 0x18]
push dword [ebp - 0x150]
push dword [ebp - 0x144]
call fcn.004a5310
push esi
mov dword [ebp - 0x13c], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp - 0x150]
mov eax, dword [ebp - 0x13c]
mov edx, dword [ebp - 0x144]
jmp 0x46c498
mov dword [ebp - 0x130], 1
jmp 0x46c3e3
cmp eax, 0x7d5
jne 0x46c3e3
push ecx
mov ecx, dword [ebx + 0x38]
push esi
push edi
call fcn.004ae3f0
test eax, eax
je 0x46c3e3
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004d3878
mov esp, ebp
pop ebp
ret 0x1c
mov eax, 1
cmp dword [ebp + 8], 0x7d0
jne 0x46c4b0
mov ecx, dword [ebx + 0x18]
push eax
mov ecx, dword [ecx + 0xcc]
call fcn.0049bf00
test eax, eax
jne 0x46c631
push dword [ebp + 0x18]
mov ecx, dword [ebx + 0x14]
push esi
push edx
push edi
mov ecx, dword [ecx + 0x49c]
call fcn.004a72a0
mov edx, dword [ebp - 0x140]
test edx, edx
je 0x46c4d9
or dword [edx], 2
mov eax, dword [ebp + 8]
cmp eax, 0x7d0
jne 0x46c50a
mov ecx, dword [ebx + 0x68]
call fcn.00409ee0
test al, 0xf
jne 0x46c530
push edi
mov ecx, ebx
call fcn.0046cd00
mov esi, dword [ebp - 0x130]
mov ecx, esi
cmp eax, 1
jne 0x46c61f
jmp 0x46c536
mov esi, dword [ebp - 0x130]
cmp eax, 0x7d1
je 0x46c524
mov ecx, esi
cmp eax, 0x7d5
jne 0x46c625
mov ecx, dword [ebx + 0x34]
push eax
push edi
call fcn.004af9a0
jmp 0x46c536
mov esi, dword [ebp - 0x130]
xor edx, edx
mov ecx, esi
cmp dword [ebp - 0x148], edx
mov esi, dword [ebx + 0x14]
cmovne ecx, edx
mov dword [ebp - 0x130], ecx
test edi, edi
je 0x46c61f
mov ecx, dword [esi + 0x49c]
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0xa4]
mov dword [ebp - 0x13c], 0x40
push eax
mov eax, dword [esi + 0x4a0]
add eax, 0x70
push eax
push edi
call fcn.004a73f0
test eax, eax
jne 0x46c619
cmp dword [ebp - 0x13c], 0x40
je 0x46c5ad
push ecx
mov ecx, dword [esi + 0x49c]
push eax
mov eax, dword [esi + 0x4a0]
add eax, 0x70
push eax
push edi
call fcn.004a7df0
jmp 0x46c619
mov eax, dword [ebp - 0x9c]
xor ebx, ebx
or eax, 1
test byte [ebp - 0x130], 1
je 0x46c5cd
test al, 2
jne 0x46c5cd
or eax, 2
mov ebx, 1
mov ecx, dword [esi + 0x4c8]
or eax, 4
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0x94]
push eax
call fcn.0047acd0
mov ecx, dword [esi + 0x49c]
lea eax, [ebp - 0xa4]
push 0x40
push eax
mov eax, dword [esi + 0x4a0]
add eax, 0x70
push eax
push edi
call fcn.004a72a0
test ebx, ebx
je 0x46c619
mov ecx, dword [esi + 0x478]
push 0
push edi
call fcn.0045bf70
mov ecx, dword [ebp - 0x130]
mov edx, dword [ebp - 0x140]
test cl, 1
je 0x46c631
test edx, edx
je 0x46c631
or dword [edx], 1
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d3878
mov esp, ebp
pop ebp
ret 0x1c