Function at 0x535940
Capabilities:
Hash data with md5

Disassembly:
push 0xffffffffffffffff
push 0x54463e
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x597c40]
xor eax, esp
mov dword [esp + 0x7c], eax
push ebp
push esi
push edi
mov eax, dword [0x597c40]
xor eax, esp
push eax
lea eax, [esp + 0x94]
mov dword fs:[0], eax
mov eax, dword [esp + 0xa4]
xor ebp, ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebp
call fcn.004111a6
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x5359a2
push 0x80004005
call fcn.00401670
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
push pe_nt_image_headers32
mov dword [esp + 0xa0], ebp
call fcn.00406394
add esp, 4
push 0x571c16
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], eax
call fcn.00401d00
mov ecx, 1
mov byte [esp + 0x9c], 1
cmp dword [ebx + 0x14], ecx
jne 0x535b1e
mov eax, dword [ebx]
mov esi, dword [eax - 0xc]
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x2c], 0x67452301
mov dword [esp + 0x30], 0xefcdab89
mov dword [esp + 0x34], 0x98badcfe
mov dword [esp + 0x38], 0x10325476
cmp esi, ebp
jge 0x535a29
push 0x80070057
call fcn.00401670
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, esi
or eax, ecx
jge 0x535a3d
push esi
mov ecx, ebx
call fcn.004015d0
mov eax, dword [ebx]
mov ecx, esi
push eax
lea esi, [esp + 0x28]
call fcn.005350d0
add esp, 4
mov ecx, esi
call fcn.00535390
xor esi, esi
jmp 0x535a60
movzx edx, byte [esp + esi + 0x7c]
push 0x10
lea ecx, [esp + 0x14]
push ecx
push edx
call fcn.00504a52
lea eax, [esp + 0x1c]
add esp, 0xc
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x535a80
sub eax, edx
cmp eax, 1
jne 0x535a9f
mov al, byte [esp + 0x10]
mov byte [esp + 0x11], al
mov byte [esp + 0x10], 0x30
mov byte [esp + 0x12], cl
lea eax, [esp + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x535aa6
sub eax, edx
push eax
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401a20
inc esi
cmp esi, 0x10
jl 0x535a60
mov ecx, dword [esp + 0x14]
lea eax, [ecx - 0x10]
lea esi, [edi - 0x10]
cmp eax, esi
je 0x535b1e
cmp dword [esi + 0xc], ebp
lea edi, [esi + 0xc]
jl 0x535b0c
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x535b0c
push eax
call fcn.00401bd0
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x535b01
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea edi, [ebp + 0x10]
mov dword [esp + 0x18], edi
xor ebp, ebp
jmp 0x535b1e
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00401e20
mov edi, dword [esp + 0x18]
cmp dword [ebx + 0x14], 2
jne 0x535c8e
mov ecx, dword [ebx + 8]
cmp dword [ecx - 0xc], ebp
jne 0x535b96
mov esi, dword [esp + 0x1c]
push 0x571c16
mov ecx, esi
call fcn.00401d00
mov byte [esp + 0x9c], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x535b68
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x9c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x535b8f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x535d4d
mov eax, ecx
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or eax, ecx
jge 0x535bb9
push 0x104
lea ecx, [ebx + 8]
call fcn.004015d0
mov esi, dword [ebx + 8]
push esi
lea ecx, [esp + 0x28]
call fcn.00535840
add esp, 4
test eax, eax
je 0x535c34
xor esi, esi
nop
movzx edx, byte [esp + esi + 0x7c]
push 0x10
lea ecx, [esp + 0x14]
push ecx
push edx
call fcn.00504a52
lea eax, [esp + 0x1c]
add esp, 0xc
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x535bf0
sub eax, edx
cmp eax, 1
jne 0x535c0f
mov al, byte [esp + 0x10]
mov byte [esp + 0x11], al
mov byte [esp + 0x10], 0x30
mov byte [esp + 0x12], cl
lea eax, [esp + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x535c16
sub eax, edx
push eax
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401a20
inc esi
cmp esi, 0x10
jl 0x535bd0
mov ecx, dword [esp + 0x14]
lea eax, [ecx - 0x10]
lea esi, [edi - 0x10]
cmp eax, esi
je 0x535c8e
cmp dword [esi + 0xc], ebp
lea edi, [esi + 0xc]
jl 0x535c7c
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x535c7c
push eax
call fcn.00401bd0
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x535c71
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea edi, [ebp + 0x10]
mov dword [esp + 0x18], edi
xor ebp, ebp
jmp 0x535c8e
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00401e20
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00406389
mov ecx, dword [edi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
lea esi, [edi - 0x10]
add esp, 4
call eax
cmp dword [esi + 0xc], ebp
lea ecx, [esi + 0xc]
jl 0x535cc1
cmp eax, dword [esi]
jne 0x535cc1
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x535cf6
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
cmp edi, ebp
jne 0x535cda
call fcn.00401580
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.00504340
add esp, 0x10
lea eax, [edi + 0x10]
mov edi, dword [esp + 0x1c]
mov dword [edi], eax
mov byte [esp + 0x9c], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x535d27
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x9c], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x535d4b
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, edi
mov ecx, dword [esp + 0x94]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x7c]
xor ecx, esp
call fcn.00504076
add esp, 0x90
ret 4