Function at 0x10039540
Capabilities:
Hash data with md5

Disassembly:
push 0xffffffffffffffff
push 0x10058139
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x1006c3ac]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1006c3ac]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x44]
xor ecx, ecx
mov dword [esp + 0x3c], ecx
mov ebx, edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ecx
lea eax, [ebp + 0x56]
lea esp, [esp]
movzx edx, byte [eax - 2]
mov byte [esp + ecx + 0x28], dl
movzx edx, byte [eax - 1]
mov byte [esp + ecx + 0x29], dl
movzx edx, byte [eax]
mov byte [esp + ecx + 0x2a], dl
movzx edx, byte [eax + 1]
mov byte [esp + ecx + 0x2b], dl
add ecx, 4
add eax, 4
cmp ecx, 8
jb 0x10039590
mov ecx, dword [ebp + 0x54]
shr ecx, 3
and ecx, 0x3f
mov eax, 0x38
cmp ecx, 0x38
jb 0x100395d2
mov eax, 0x78
sub eax, ecx
push 0x1006d198
mov ecx, ebp
call fcn.100397d0
lea eax, [esp + 0x28]
push eax
mov eax, 8
mov ecx, ebp
call fcn.100397d0
lea esi, [ebp + 4]
lea ecx, [esi + 1]
lea eax, [ebp + 0x5e]
mov edi, 4
nop
movzx edx, byte [eax - 2]
mov byte [ecx - 1], dl
movzx edx, byte [eax - 1]
mov byte [ecx], dl
movzx edx, byte [eax]
mov byte [ecx + 1], dl
movzx edx, byte [eax + 1]
mov byte [ecx + 2], dl
add eax, 4
add ecx, 4
sub edi, 1
jne 0x10039600
mov eax, dword [0x1006e504]
mov edx, dword [eax + 0xc]
mov ecx, 0x1006e504
call edx
add eax, 0x10
mov dword [ebx], eax
mov ebx, 1
mov dword [esp + 0x3c], edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], 0x10
mov eax, dword [0x1006e504]
mov edx, dword [eax + 0xc]
mov ecx, 0x1006e504
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x18]
mov dword [esp + 0x3c], ebx
mov al, byte [eax]
test al, al
jne 0x1003970c
lea ecx, [esp + 0x28]
push ecx
mov ecx, 0x100625e4
call fcn.10001cd0
mov byte [esp + 0x3c], 2
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea edi, [esi - 0x10]
cmp eax, edi
je 0x100396e5
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x100396cf
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x100396cf
call fcn.10002fe0
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x100396c6
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
lea esi, [ebx + 0x10]
mov dword [esp + 0x14], esi
jmp 0x100396e0
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x18]
call fcn.10002f40
mov esi, dword [esp + 0x14]
mov ebx, 1
mov byte [esp + 0x3c], 1
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10039734
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x10039734
lea edi, [esp + 0x14]
cmp al, 0xf
ja 0x1003971f
movzx ecx, al
push ecx
push 0x100625ec
jmp 0x10039728
movzx edx, al
push edx
push 0x100625f4
call fcn.100126a0
mov esi, dword [esp + 0x1c]
add esp, 8
mov eax, dword [esi - 0xc]
mov edi, dword [esp + 0x20]
push eax
push esi
push edi
call fcn.10013900
lea eax, [esi - 0x10]
mov byte [esp + 0x3c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10039764
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add dword [esp + 0x18], ebx
sub dword [esp + 0x1c], ebx
jne 0x10039652
push 0x40
xor esi, esi
lea ecx, [ebp + 0x14]
push esi
push ecx
call fcn.10042250
add esp, 0xc
mov dword [ebp + 0x58], esi
mov dword [ebp + 0x54], esi
mov dword [ebp + 0x5c], 0x67452301
mov dword [ebp + 0x60], 0xefcdab89
mov dword [ebp + 0x64], 0x98badcfe
mov dword [ebp + 0x68], 0x10325476
mov eax, edi
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.1003f2d1
add esp, 0x2c
ret 4