Function at 0x610c3620
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
test eax, eax
je 0x610c3760
mov edx, dword [0x61149db0]
lea edi, [eax - 8]
cmp edx, edi
mov dword [esp + 0x14], edx
ja 0x610c3ae3
mov edx, dword [edi + 4]
test dl, 2
je 0x610c3ae3
mov ebp, edx
and ebp, 0xfffffffc
test dl, 1
lea ebx, [edi + ebp]
je 0x610c3768
cmp edi, ebx
jae 0x610c3ae3
mov eax, dword [ebx + 4]
test al, 1
je 0x610c3ae3
test al, 2
jne 0x610c3850
cmp dword [0x61149db8], ebx
je 0x610c3ae8
mov ecx, dword [0x61149db4]
cmp ecx, ebx
mov dword [esp + 0x10], ecx
je 0x610c3b2f
and eax, 0xfffffffc
mov ecx, eax
add ebp, eax
shr ecx, 3
cmp ecx, 0x1f
jbe 0x610c39f0
mov eax, dword [ebx + 0xc]
mov esi, dword [ebx + 0x18]
cmp eax, ebx
je 0x610c3b63
mov edx, dword [ebx + 8]
cmp dword [esp + 0x14], edx
ja 0x610c3ae3
mov dword [edx + 0xc], eax
mov dword [eax + 8], edx
test esi, esi
je 0x610c3740
mov ecx, dword [ebx + 0x1c]
lea edx, [ecx*4]
cmp dword [edx + 0x61149ecc], ebx
je 0x610c3c0b
cmp dword [esp + 0x14], esi
ja 0x610c3ae3
cmp dword [esi + 0x10], ebx
je 0x610c3c4b
mov dword [esi + 0x14], eax
test eax, eax
je 0x610c3740
cmp dword [esp + 0x14], eax
ja 0x610c3ae3
mov dword [eax + 0x18], esi
mov edx, dword [ebx + 0x10]
test edx, edx
je 0x610c3726
cmp dword [esp + 0x14], edx
ja 0x610c3ae3
mov dword [eax + 0x10], edx
mov dword [edx + 0x18], eax
mov edx, dword [ebx + 0x14]
test edx, edx
je 0x610c3740
cmp dword [esp + 0x14], edx
ja 0x610c3ae3
mov dword [eax + 0x14], edx
mov dword [edx + 0x18], eax
lea esi, [esi]
mov dword [edi + ebp], ebp
mov eax, ebp
or eax, 1
cmp dword [esp + 0x10], edi
mov dword [edi + 4], eax
jne 0x610c3861
mov dword [0x61149da8], ebp
nop
lea esi, [esi]
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [eax - 8]
test al, 1
jne 0x610c3aa3
mov esi, edi
add ebp, eax
sub esi, eax
cmp dword [esp + 0x14], esi
mov edi, esi
ja 0x610c3ae3
cmp dword [0x61149db4], esi
je 0x610c3a7a
mov ecx, eax
shr ecx, 3
cmp ecx, 0x1f
jbe 0x610c3a2f
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 0x18]
cmp eax, esi
mov dword [esp + 0x18], edx
je 0x610c3bbd
mov edx, dword [esi + 8]
cmp dword [esp + 0x14], edx
ja 0x610c3ae3
mov dword [edx + 0xc], eax
mov dword [eax + 8], edx
mov edx, dword [esp + 0x18]
test edx, edx
je 0x610c3661
mov ecx, dword [esi + 0x1c]
lea edx, [ecx*4]
cmp dword [edx + 0x61149ecc], esi
je 0x610c3c2b
mov ecx, dword [esp + 0x18]
cmp dword [esp + 0x14], ecx
ja 0x610c3ae3
cmp dword [ecx + 0x10], esi
je 0x610c3c53
mov dword [ecx + 0x14], eax
test eax, eax
je 0x610c3661
cmp dword [esp + 0x14], eax
ja 0x610c3ae3
mov edx, dword [esp + 0x18]
mov dword [eax + 0x18], edx
mov edx, dword [esi + 0x10]
test edx, edx
je 0x610c3830
cmp dword [esp + 0x14], edx
ja 0x610c3ae3
mov dword [eax + 0x10], edx
mov dword [edx + 0x18], eax
mov edx, dword [esi + 0x14]
test edx, edx
je 0x610c3661
cmp dword [esp + 0x14], edx
ja 0x610c3ae3
mov dword [eax + 0x14], edx
mov dword [edx + 0x18], eax
jmp 0x610c3661
mov dword [edi + ebp], ebp
and eax, 0xfffffffe
mov dword [ebx + 4], eax
mov eax, ebp
or eax, 1
mov dword [edi + 4], eax
mov ecx, ebp
shr ecx, 3
cmp ecx, 0x1f
ja 0x610c38a5
mov edx, dword [0x61149da0]
lea ebx, [ecx*8 + 0x61149dc4]
mov eax, edx
shr eax, cl
test al, 1
je 0x610c39d0
mov eax, dword [ebx + 8]
cmp eax, dword [esp + 0x14]
jb 0x610c3ae3
mov dword [ebx + 8], edi
mov dword [eax + 0xc], edi
mov dword [edi + 8], eax
mov dword [edi + 0xc], ebx
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, ebp
shr eax, 8
je 0x610c3973
cmp eax, 0xffff
jbe 0x610c3a65
mov esi, 0x1f
mov dword [edi + 0x1c], esi
lea ecx, [esi*4]
mov edx, dword [0x61149da4]
mov dword [esp + 0xc], ecx
mov ebx, ecx
mov ecx, esi
mov dword [edi + 0x14], 0
mov eax, edx
add ebx, 0x61149ecc
mov dword [edi + 0x10], 0
shr eax, cl
test al, 1
je 0x610c39a4
mov eax, dword [esp + 0xc]
cmp esi, 0x1f
mov ecx, ebp
mov ebx, dword [eax + 0x61149ecc]
je 0x610c393a
shr esi, 1
mov ecx, 0x19
sub ecx, esi
mov edx, ebp
shl edx, cl
mov ecx, edx
jmp 0x610c393a
mov eax, ecx
shr eax, 0x1f
add ecx, ecx
lea edx, [ebx + eax*4]
mov eax, dword [edx + 0x10]
lea esi, [edx + 0x10]
test eax, eax
je 0x610c3acb
mov ebx, eax
mov eax, dword [ebx + 4]
and eax, 0xfffffffc
cmp eax, ebp
jne 0x610c3920
cmp dword [esp + 0x14], ebx
mov eax, dword [ebx + 8]
ja 0x610c3ae3
cmp dword [esp + 0x14], eax
ja 0x610c3ae3
mov dword [eax + 0xc], edi
mov dword [ebx + 8], edi
mov dword [edi + 0xc], ebx
mov dword [edi + 8], eax
mov dword [edi + 0x18], 0
jmp 0x610c3760
mov dword [edi + 0x1c], 0
xor eax, eax
xor esi, esi
mov dword [esp + 0xc], eax
mov edx, dword [0x61149da4]
mov ebx, 0x61149ecc
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
test dl, 1
jne 0x610c38f8
mov eax, 1
mov ecx, esi
shl eax, cl
or edx, eax
mov eax, dword [esp + 0xc]
mov dword [0x61149da4], edx
mov dword [eax + 0x61149ecc], edi
mov dword [edi + 0x18], ebx
mov dword [edi + 0xc], edi
mov dword [edi + 8], edi
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebx + 8], edi
mov eax, 1
shl eax, cl
mov dword [ebx + 0xc], edi
or edx, eax
mov dword [0x61149da0], edx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
jmp 0x610c389d
mov edx, dword [ebx + 8]
mov ebx, dword [ebx + 0xc]
cmp edx, ebx
je 0x610c3b51
lea eax, [ecx*8 + 0x61149dc4]
cmp eax, edx
je 0x610c3a13
cmp dword [esp + 0x14], edx
ja 0x610c3ae3
cmp eax, ebx
jne 0x610c3ad9
mov dword [edx + 0xc], ebx
mov dword [ebx + 8], edx
mov eax, dword [0x61149db4]
mov dword [esp + 0x10], eax
jmp 0x610c3740
mov edx, dword [esi + 8]
mov esi, dword [esi + 0xc]
cmp edx, esi
je 0x610c3bab
lea eax, [ecx*8 + 0x61149dc4]
cmp eax, edx
je 0x610c3a52
cmp dword [esp + 0x14], edx
ja 0x610c3ae3
cmp eax, esi
jne 0x610c3c99
mov dword [edx + 0xc], esi
mov dword [esi + 8], edx
jmp 0x610c3661
bsr edx, eax
mov eax, ebp
lea ecx, [edx + 7]
shr eax, cl
and eax, 1
lea esi, [eax + edx*2]
jmp 0x610c38c0
mov eax, dword [ebx + 4]
and eax, 3
cmp eax, 3
jne 0x610c3661
mov dword [0x61149da8], ebp
mov eax, ebp
or eax, 1
and dword [ebx + 4], 0xfffffffe
mov dword [esi + ebp], ebp
mov dword [esi + 4], eax
jmp 0x610c3760
and eax, 0xfffffffe
sub edi, eax
lea ebp, [eax + ebp + 0x10]
mov dword [esp + 4], ebp
mov dword [esp], edi
call sym._munmap
test eax, eax
jne 0x610c3760
sub dword [0x61149f4c], ebp
jmp 0x610c3760
cmp dword [esp + 0x14], esi
ja 0x610c3ae3
mov dword [edx + 0x10], edi
jmp 0x610c39bf
cmp dword [esp + 0x14], ebx
jbe 0x610c3a1b
call sym.cygwin1.dll_abort
mov dword [0x61149db8], edi
mov edx, dword [0x61149dac]
add edx, ebp
mov dword [0x61149dac], edx
mov eax, edx
or eax, 1
cmp dword [0x61149db4], edi
mov dword [edi + 4], eax
je 0x610c3c5f
cmp dword [0x61149dbc], edx
jae 0x610c3760
add esp, 0x1c
xor edx, edx
mov eax, 0x61149da0
pop ebx
pop esi
pop edi
pop ebp
jmp sym.sys_trim_malloc_state__unsigned_int_
mov dword [0x61149db4], edi
mov eax, dword [0x61149da8]
add eax, ebp
mov dword [0x61149da8], eax
mov edx, eax
or edx, 1
mov dword [edi + 4], edx
mov dword [edi + eax], eax
jmp 0x610c3760
mov eax, 0xfffffffe
rol eax, cl
and dword [0x61149da0], eax
jmp 0x610c3740
mov eax, dword [ebx + 0x14]
lea ecx, [ebx + 0x14]
test eax, eax
je 0x610c3c73
cmp dword [eax + 0x14], 0
lea edx, [eax + 0x14]
je 0x610c3b8d
lea esi, [esi]
mov eax, dword [edx]
mov ecx, edx
lea edx, [eax + 0x14]
cmp dword [eax + 0x14], 0
jne 0x610c3b80
cmp dword [eax + 0x10], 0
lea edx, [eax + 0x10]
jne 0x610c3b80
cmp dword [esp + 0x14], ecx
ja 0x610c3ae3
mov dword [ecx], 0
jmp 0x610c36ce
mov eax, 0xfffffffe
rol eax, cl
and dword [0x61149da0], eax
jmp 0x610c3661
mov eax, dword [esi + 0x14]
lea ecx, [esi + 0x14]
test eax, eax
je 0x610c3c86
cmp dword [eax + 0x14], 0
lea edx, [eax + 0x14]
je 0x610c3bed
lea esi, [esi]
lea edi, [edi]
mov eax, dword [edx]
mov ecx, edx
lea edx, [eax + 0x14]
cmp dword [eax + 0x14], 0
jne 0x610c3be0
cmp dword [eax + 0x10], 0
lea edx, [eax + 0x10]
jne 0x610c3be0
cmp dword [esp + 0x14], ecx
ja 0x610c3ae3
mov dword [ecx], 0
jmp 0x610c37c4
mov dword [edx + 0x61149ecc], eax
test eax, eax
jne 0x610c3702
mov eax, 0xfffffffe
rol eax, cl
and dword [0x61149da4], eax
jmp 0x610c3740
mov dword [edx + 0x61149ecc], eax
test eax, eax
jne 0x610c3808
mov eax, 0xfffffffe
rol eax, cl
and dword [0x61149da4], eax
jmp 0x610c3661
mov dword [esi + 0x10], eax
jmp 0x610c36fe
mov ecx, dword [esp + 0x18]
mov dword [ecx + 0x10], eax
jmp 0x610c3800
xor ecx, ecx
xor eax, eax
mov dword [0x61149db4], ecx
mov dword [0x61149da8], eax
jmp 0x610c3b10
mov eax, dword [ebx + 0x10]
lea ecx, [ebx + 0x10]
test eax, eax
jne 0x610c3b71
jmp 0x610c36ce
mov eax, dword [esi + 0x10]
lea ecx, [esi + 0x10]
test eax, eax
jne 0x610c3bcb
jmp 0x610c37c4
cmp dword [esp + 0x14], esi
jbe 0x610c3a5a
call sym.cygwin1.dll_abort
nop
lea esi, [esi]