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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
test eax, eax
je 0x610c3370
mov edx, dword [0x61147f60]
lea edi, [eax - 8]
cmp edx, edi
mov dword [esp + 0x14], edx
ja 0x610c36f3
mov edx, dword [edi + 4]
test dl, 2
je 0x610c36f3
mov ebp, edx
and ebp, 0xfffffffc
test dl, 1
lea ebx, [edi + ebp]
je 0x610c3378
cmp edi, ebx
jae 0x610c36f3
mov eax, dword [ebx + 4]
test al, 1
je 0x610c36f3
test al, 2
jne 0x610c3460
cmp dword [0x61147f68], ebx
je 0x610c36f8
mov ecx, dword [0x61147f64]
cmp ecx, ebx
mov dword [esp + 0x10], ecx
je 0x610c373f
and eax, 0xfffffffc
mov ecx, eax
add ebp, eax
shr ecx, 3
cmp ecx, 0x1f
jbe 0x610c3600
mov eax, dword [ebx + 0xc]
mov esi, dword [ebx + 0x18]
cmp eax, ebx
je 0x610c3773
mov edx, dword [ebx + 8]
cmp dword [esp + 0x14], edx
ja 0x610c36f3
mov dword [edx + 0xc], eax
mov dword [eax + 8], edx
test esi, esi
je 0x610c3350
mov ecx, dword [ebx + 0x1c]
lea edx, [ecx*4]
cmp dword [edx + 0x6114807c], ebx
je 0x610c381b
cmp dword [esp + 0x14], esi
ja 0x610c36f3
cmp dword [esi + 0x10], ebx
je 0x610c385b
mov dword [esi + 0x14], eax
test eax, eax
je 0x610c3350
cmp dword [esp + 0x14], eax
ja 0x610c36f3
mov dword [eax + 0x18], esi
mov edx, dword [ebx + 0x10]
test edx, edx
je 0x610c3336
cmp dword [esp + 0x14], edx
ja 0x610c36f3
mov dword [eax + 0x10], edx
mov dword [edx + 0x18], eax
mov edx, dword [ebx + 0x14]
test edx, edx
je 0x610c3350
cmp dword [esp + 0x14], edx
ja 0x610c36f3
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 0x610c3471
mov dword [0x61147f58], 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 0x610c36b3
mov esi, edi
add ebp, eax
sub esi, eax
cmp dword [esp + 0x14], esi
mov edi, esi
ja 0x610c36f3
cmp dword [0x61147f64], esi
je 0x610c368a
mov ecx, eax
shr ecx, 3
cmp ecx, 0x1f
jbe 0x610c363f
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 0x18]
cmp eax, esi
mov dword [esp + 0x18], edx
je 0x610c37cd
mov edx, dword [esi + 8]
cmp dword [esp + 0x14], edx
ja 0x610c36f3
mov dword [edx + 0xc], eax
mov dword [eax + 8], edx
mov edx, dword [esp + 0x18]
test edx, edx
je 0x610c3271
mov ecx, dword [esi + 0x1c]
lea edx, [ecx*4]
cmp dword [edx + 0x6114807c], esi
je 0x610c383b
mov ecx, dword [esp + 0x18]
cmp dword [esp + 0x14], ecx
ja 0x610c36f3
cmp dword [ecx + 0x10], esi
je 0x610c3863
mov dword [ecx + 0x14], eax
test eax, eax
je 0x610c3271
cmp dword [esp + 0x14], eax
ja 0x610c36f3
mov edx, dword [esp + 0x18]
mov dword [eax + 0x18], edx
mov edx, dword [esi + 0x10]
test edx, edx
je 0x610c3440
cmp dword [esp + 0x14], edx
ja 0x610c36f3
mov dword [eax + 0x10], edx
mov dword [edx + 0x18], eax
mov edx, dword [esi + 0x14]
test edx, edx
je 0x610c3271
cmp dword [esp + 0x14], edx
ja 0x610c36f3
mov dword [eax + 0x14], edx
mov dword [edx + 0x18], eax
jmp 0x610c3271
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 0x610c34b5
mov edx, dword [0x61147f50]
lea ebx, [ecx*8 + 0x61147f74]
mov eax, edx
shr eax, cl
test al, 1
je 0x610c35e0
mov eax, dword [ebx + 8]
cmp eax, dword [esp + 0x14]
jb 0x610c36f3
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 0x610c3583
cmp eax, 0xffff
jbe 0x610c3675
mov esi, 0x1f
mov dword [edi + 0x1c], esi
lea ecx, [esi*4]
mov edx, dword [0x61147f54]
mov dword [esp + 0xc], ecx
mov ebx, ecx
mov ecx, esi
mov dword [edi + 0x14], 0
mov eax, edx
add ebx, 0x6114807c
mov dword [edi + 0x10], 0
shr eax, cl
test al, 1
je 0x610c35b4
mov eax, dword [esp + 0xc]
cmp esi, 0x1f
mov ecx, ebp
mov ebx, dword [eax + 0x6114807c]
je 0x610c354a
shr esi, 1
mov ecx, 0x19
sub ecx, esi
mov edx, ebp
shl edx, cl
mov ecx, edx
jmp 0x610c354a
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 0x610c36db
mov ebx, eax
mov eax, dword [ebx + 4]
and eax, 0xfffffffc
cmp eax, ebp
jne 0x610c3530
cmp dword [esp + 0x14], ebx
mov eax, dword [ebx + 8]
ja 0x610c36f3
cmp dword [esp + 0x14], eax
ja 0x610c36f3
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 0x610c3370
mov dword [edi + 0x1c], 0
xor eax, eax
xor esi, esi
mov dword [esp + 0xc], eax
mov edx, dword [0x61147f54]
mov ebx, 0x6114807c
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
test dl, 1
jne 0x610c3508
mov eax, 1
mov ecx, esi
shl eax, cl
or edx, eax
mov eax, dword [esp + 0xc]
mov dword [0x61147f54], edx
mov dword [eax + 0x6114807c], 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 [0x61147f50], edx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
jmp 0x610c34ad
mov edx, dword [ebx + 8]
mov ebx, dword [ebx + 0xc]
cmp edx, ebx
je 0x610c3761
lea eax, [ecx*8 + 0x61147f74]
cmp eax, edx
je 0x610c3623
cmp dword [esp + 0x14], edx
ja 0x610c36f3
cmp eax, ebx
jne 0x610c36e9
mov dword [edx + 0xc], ebx
mov dword [ebx + 8], edx
mov eax, dword [0x61147f64]
mov dword [esp + 0x10], eax
jmp 0x610c3350
mov edx, dword [esi + 8]
mov esi, dword [esi + 0xc]
cmp edx, esi
je 0x610c37bb
lea eax, [ecx*8 + 0x61147f74]
cmp eax, edx
je 0x610c3662
cmp dword [esp + 0x14], edx
ja 0x610c36f3
cmp eax, esi
jne 0x610c38a9
mov dword [edx + 0xc], esi
mov dword [esi + 8], edx
jmp 0x610c3271
bsr edx, eax
mov eax, ebp
lea ecx, [edx + 7]
shr eax, cl
and eax, 1
lea esi, [eax + edx*2]
jmp 0x610c34d0
mov eax, dword [ebx + 4]
and eax, 3
cmp eax, 3
jne 0x610c3271
mov dword [0x61147f58], ebp
mov eax, ebp
or eax, 1
and dword [ebx + 4], 0xfffffffe
mov dword [esi + ebp], ebp
mov dword [esi + 4], eax
jmp 0x610c3370
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 0x610c3370
sub dword [0x611480fc], ebp
jmp 0x610c3370
cmp dword [esp + 0x14], esi
ja 0x610c36f3
mov dword [edx + 0x10], edi
jmp 0x610c35cf
cmp dword [esp + 0x14], ebx
jbe 0x610c362b
call sym.cygwin1.dll_abort
mov dword [0x61147f68], edi
mov edx, dword [0x61147f5c]
add edx, ebp
mov dword [0x61147f5c], edx
mov eax, edx
or eax, 1
cmp dword [0x61147f64], edi
mov dword [edi + 4], eax
je 0x610c386f
cmp dword [0x61147f6c], edx
jae 0x610c3370
add esp, 0x1c
xor edx, edx
mov eax, 0x61147f50
pop ebx
pop esi
pop edi
pop ebp
jmp sym.sys_trim_malloc_state__unsigned_int_
mov dword [0x61147f64], edi
mov eax, dword [0x61147f58]
add eax, ebp
mov dword [0x61147f58], eax
mov edx, eax
or edx, 1
mov dword [edi + 4], edx
mov dword [edi + eax], eax
jmp 0x610c3370
mov eax, 0xfffffffe
rol eax, cl
and dword [0x61147f50], eax
jmp 0x610c3350
mov eax, dword [ebx + 0x14]
lea ecx, [ebx + 0x14]
test eax, eax
je 0x610c3883
cmp dword [eax + 0x14], 0
lea edx, [eax + 0x14]
je 0x610c379d
lea esi, [esi]
mov eax, dword [edx]
mov ecx, edx
lea edx, [eax + 0x14]
cmp dword [eax + 0x14], 0
jne 0x610c3790
cmp dword [eax + 0x10], 0
lea edx, [eax + 0x10]
jne 0x610c3790
cmp dword [esp + 0x14], ecx
ja 0x610c36f3
mov dword [ecx], 0
jmp 0x610c32de
mov eax, 0xfffffffe
rol eax, cl
and dword [0x61147f50], eax
jmp 0x610c3271
mov eax, dword [esi + 0x14]
lea ecx, [esi + 0x14]
test eax, eax
je 0x610c3896
cmp dword [eax + 0x14], 0
lea edx, [eax + 0x14]
je 0x610c37fd
lea esi, [esi]
lea edi, [edi]
mov eax, dword [edx]
mov ecx, edx
lea edx, [eax + 0x14]
cmp dword [eax + 0x14], 0
jne 0x610c37f0
cmp dword [eax + 0x10], 0
lea edx, [eax + 0x10]
jne 0x610c37f0
cmp dword [esp + 0x14], ecx
ja 0x610c36f3
mov dword [ecx], 0
jmp 0x610c33d4
mov dword [edx + 0x6114807c], eax
test eax, eax
jne 0x610c3312
mov eax, 0xfffffffe
rol eax, cl
and dword [0x61147f54], eax
jmp 0x610c3350
mov dword [edx + 0x6114807c], eax
test eax, eax
jne 0x610c3418
mov eax, 0xfffffffe
rol eax, cl
and dword [0x61147f54], eax
jmp 0x610c3271
mov dword [esi + 0x10], eax
jmp 0x610c330e
mov ecx, dword [esp + 0x18]
mov dword [ecx + 0x10], eax
jmp 0x610c3410
xor ecx, ecx
xor eax, eax
mov dword [0x61147f64], ecx
mov dword [0x61147f58], eax
jmp 0x610c3720
mov eax, dword [ebx + 0x10]
lea ecx, [ebx + 0x10]
test eax, eax
jne 0x610c3781
jmp 0x610c32de
mov eax, dword [esi + 0x10]
lea ecx, [esi + 0x10]
test eax, eax
jne 0x610c37db
jmp 0x610c33d4
cmp dword [esp + 0x14], esi
jbe 0x610c366a
call sym.cygwin1.dll_abort
nop
lea esi, [esi]