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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov eax, dword [sym.imp.cygwin1.dll___stack_chk_guard]
mov dword [esp + 0x3c], eax
xor eax, eax
mov ebx, dword [esp + 0x60]
mov esi, dword [esp + 0x64]
cmp ebx, esi
je 0x41871c
cmp esi, ebx
je 0x4185cd
mov edx, dword [esi + 4]
mov edi, dword [esi]
mov ebp, dword [ebx]
mov eax, dword [ebx + 8]
mov ecx, edx
sub ecx, edi
sub eax, ebp
mov dword [esp + 0x14], ecx
cmp eax, ecx
jb 0x4188f8
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
sub eax, ebp
cmp ecx, eax
ja 0x418740
test ecx, ecx
jle 0x41884f
sar ecx, 3
mov dword [esp + 0x28], ebx
mov eax, edi
mov ebx, ebp
mov dword [esp + 0x2c], esi
mov esi, ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ebp
jmp 0x418572
mov dword [ebx + 4], edi
add eax, 8
add ebx, 8
sub esi, 1
je 0x418830
mov ecx, dword [eax]
mov edi, dword [eax + 4]
mov ebp, dword [ebx + 4]
mov dword [ebx], ecx
cmp edi, ebp
je 0x418563
test edi, edi
je 0x41858c
lock add dword [edi + 4], 1
mov ebp, dword [ebx + 4]
test ebp, ebp
je 0x418560
lock sub dword [ebp + 4], 1
jne 0x418560
mov ecx, dword [ebp]
mov dword [esp + 0x1c], eax
mov dword [esp], ebp
call dword [ecx + 8]
lock sub dword [ebp + 8], 1
mov eax, dword [esp + 0x1c]
jne 0x418560
mov ecx, dword [ebp]
mov dword [esp], ebp
call dword [ecx + 0xc]
mov eax, dword [esp + 0x1c]
jmp 0x418560
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
add eax, dword [ebx]
mov dword [ebx + 4], eax
lea edx, [esi + 0xc]
lea eax, [ebx + 0xc]
call fcn.00418180
lea eax, [ebx + 0x18]
lea edx, [esi + 0x18]
call fcn.00418180
mov eax, dword [esi + 0x24]
mov dword [ebx + 0x24], eax
movzx eax, byte [esi + 0x28]
mov byte [ebx + 0x28], al
mov eax, dword [esi + 0x2c]
mov dword [ebx + 0x2c], eax
mov eax, dword [esi + 0x30]
mov dword [ebx + 0x30], eax
mov eax, dword [esi + 0x34]
mov dword [ebx + 0x34], eax
mov eax, dword [esi + 0x38]
mov dword [ebx + 0x38], eax
mov eax, dword [esi + 0x3c]
mov dword [ebx + 0x3c], eax
mov eax, dword [esi + 0x40]
mov dword [ebx + 0x40], eax
movzx eax, byte [esi + 0x44]
mov byte [ebx + 0x44], al
lea eax, [ebx + 0x48]
mov dword [esp + 0x18], eax
mov ecx, eax
lea eax, [esi + 0x48]
cmp ecx, eax
je 0x418680
mov ebp, dword [esi + 0x50]
mov eax, dword [esi + 0x48]
mov edi, dword [ebx + 0x48]
mov ecx, dword [esi + 0x54]
mov edx, ebp
mov dword [esp + 0x14], eax
sub edx, eax
sar edx, 2
shl edx, 5
mov eax, edx
mov dword [esp + 0x1c], edx
mov edx, dword [ebx + 0x58]
add eax, ecx
mov dword [esp + 0x20], edx
sub edx, edi
mov dword [esp + 0x24], edx
sar edx, 2
shl edx, 5
cmp eax, edx
ja 0x4187c0
mov dword [esp], edi
mov eax, dword [esp + 0x14]
mov edx, ebp
call fcn.004180e0
mov edi, dword [esp + 0x18]
mov dword [edi + 8], eax
mov dword [edi + 0xc], edx
mov eax, dword [esi + 0x5c]
mov dword [ebx + 0x5c], eax
mov eax, dword [esi + 0x60]
mov dword [ebx + 0x60], eax
mov eax, dword [esi + 0x64]
mov dword [ebx + 0x64], eax
mov eax, dword [esi + 0x68]
mov dword [ebx + 0x68], eax
mov eax, dword [esi + 0x6c]
mov dword [ebx + 0x6c], eax
mov eax, dword [esi + 0x70]
mov dword [ebx + 0x70], eax
movzx eax, word [esi + 0x74]
mov word [ebx + 0x74], ax
movzx eax, byte [esi + 0x78]
mov byte [ebx + 0x78], al
movzx eax, byte [esi + 0x79]
mov byte [ebx + 0x79], al
movzx eax, byte [esi + 0x7a]
mov byte [ebx + 0x7a], al
movzx eax, byte [esi + 0x7b]
mov byte [ebx + 0x7b], al
movzx eax, byte [esi + 0x7c]
mov byte [ebx + 0x7c], al
movzx eax, byte [esi + 0x7d]
mov byte [ebx + 0x7d], al
movzx eax, byte [esi + 0x7e]
mov byte [ebx + 0x7e], al
mov eax, dword [esi + 0x80]
mov dword [ebx + 0x80], eax
movzx eax, byte [esi + 0x84]
mov byte [ebx + 0x84], al
movzx eax, byte [esi + 0x85]
mov byte [ebx + 0x85], al
mov eax, dword [esi + 0x88]
mov dword [ebx + 0x88], eax
movzx eax, byte [esi + 0x8c]
mov byte [ebx + 0x8c], al
mov eax, dword [esp + 0x3c]
sub eax, dword [sym.imp.cygwin1.dll___stack_chk_guard]
jne 0x418a69
add esp, 0x4c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, eax
sar ecx, 3
test eax, eax
jle 0x4188b8
mov dword [esp + 0x20], esi
mov eax, edi
mov esi, ecx
mov dword [esp + 0x1c], ebx
jmp 0x418772
mov dword [ebp + 4], edi
add eax, 8
add ebp, 8
sub esi, 1
je 0x4188a0
mov edx, dword [eax]
mov edi, dword [eax + 4]
mov ebx, dword [ebp + 4]
mov dword [ebp], edx
cmp edi, ebx
je 0x418763
test edi, edi
je 0x41878d
lock add dword [edi + 4], 1
mov ebx, dword [ebp + 4]
test ebx, ebx
je 0x418760
lock sub dword [ebx + 4], 1
jne 0x418760
mov edx, dword [ebx]
mov dword [esp + 0x18], eax
mov dword [esp], ebx
call dword [edx + 8]
lock sub dword [ebx + 8], 1
mov eax, dword [esp + 0x18]
jne 0x418760
mov edx, dword [ebx]
mov dword [esp], ebx
call dword [edx + 0xc]
mov eax, dword [esp + 0x18]
jmp 0x418760
test edi, edi
je 0x418815
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
sub eax, edi
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.cygstdc_6.dll_operator_delete_void__unsigned_int_
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x4c], 0
mov dword [ebx + 0x50], 0
mov dword [ebx + 0x54], 0
mov ebp, dword [esi + 0x50]
mov eax, dword [esi + 0x48]
mov dword [ebx + 0x58], 0
mov edx, ebp
sub edx, eax
mov dword [esp + 0x14], eax
sar edx, 2
shl edx, 5
mov dword [esp + 0x1c], edx
mov ecx, dword [esi + 0x54]
add dword [esp + 0x1c], ecx
jne 0x4189e0
mov edi, dword [ebx + 0x48]
jmp 0x418668
mov eax, dword [esp + 0x20]
mov edx, 0
mov ebp, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
sub eax, 1
cmovs eax, edx
lea ebp, [ebp + eax*8 + 8]
cmp dword [esp + 0x18], ebp
je 0x4185c4
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x18]
jmp 0x418873
add ebp, 8
cmp ebx, ebp
je 0x4185c0
mov edi, dword [ebp + 4]
test edi, edi
je 0x418868
lock sub dword [edi + 4], 1
jne 0x418868
mov eax, dword [edi]
mov dword [esp], edi
call dword [eax + 8]
lock sub dword [edi + 8], 1
jne 0x418868
mov eax, dword [edi]
mov dword [esp], edi
call dword [eax + 0xc]
jmp 0x418868
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
mov eax, dword [ebx + 4]
mov ebp, dword [ebx]
mov edx, dword [esi + 4]
mov edi, dword [esi]
mov dword [esp + 0x18], eax
sub eax, ebp
add eax, edi
cmp eax, edx
je 0x418a50
mov edi, dword [esp + 0x18]
lea esi, [esi]
lea esi, [esi]
mov ecx, dword [eax]
mov dword [edi], ecx
mov ecx, dword [eax + 4]
mov dword [edi + 4], ecx
test ecx, ecx
je 0x4188e3
lock add dword [ecx + 4], 1
add eax, 8
add edi, 8
cmp eax, edx
jne 0x4188d0
jmp 0x4185c4
test ecx, ecx
je 0x4189d0
cmp ecx, 0x7ffffff8
ja 0x418a5b
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], edx
mov dword [esp], eax
call sub.cygwin1.dll___wrap__Znwj
mov edx, dword [esp + 0x18]
mov ebp, eax
cmp edx, edi
je 0x41894d
sub edx, edi
mov eax, ebp
add edx, ebp
lea esi, [esi]
mov ecx, dword [edi]
mov dword [eax], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
test ecx, ecx
je 0x418943
lock add dword [ecx + 4], 1
add eax, 8
add edi, 8
cmp eax, edx
jne 0x418930
mov edx, dword [ebx + 4]
mov eax, dword [ebx]
cmp edx, eax
je 0x4189aa
mov dword [esp + 0x18], ebx
mov ebx, edx
mov dword [esp + 0x1c], esi
mov esi, eax
jmp 0x41896f
add esi, 8
cmp ebx, esi
je 0x4189a0
mov edi, dword [esi + 4]
test edi, edi
je 0x418968
lock sub dword [edi + 4], 1
jne 0x418968
mov ecx, dword [edi]
mov dword [esp], edi
call dword [ecx + 8]
lock sub dword [edi + 8], 1
jne 0x418968
mov ecx, dword [edi]
mov dword [esp], edi
call dword [ecx + 0xc]
jmp 0x418968
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov eax, dword [ebx]
test eax, eax
je 0x4189bf
mov edx, dword [ebx + 8]
mov dword [esp], eax
sub edx, eax
mov dword [esp + 4], edx
call sub.cygstdc_6.dll_operator_delete_void__unsigned_int_
mov eax, dword [esp + 0x14]
mov dword [ebx], ebp
add eax, ebp
mov dword [ebx + 8], eax
jmp 0x4185ca
xor ebp, ebp
jmp 0x418922
mov eax, dword [esp + 0x1c]
lea ebp, [eax + 0x1f]
mov edx, ebp
shr edx, 5
shl edx, 2
mov dword [esp], edx
mov dword [esp + 0x14], edx
call sub.cygwin1.dll___wrap__Znwj
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov dword [ebx + 0x4c], 0
mov edi, eax
mov dword [ebx + 0x48], eax
add edx, eax
test ecx, ecx
mov eax, ecx
cmovns ebp, ecx
sar eax, 0x1f
mov dword [ebx + 0x58], edx
shr eax, 0x1b
add ecx, eax
sar ebp, 5
and ecx, 0x1f
lea edx, [edi + ebp*4]
sub ecx, eax
jns 0x418a36
add ecx, 0x20
sub edx, 4
mov dword [ebx + 0x50], edx
mov dword [ebx + 0x54], ecx
mov eax, dword [esi + 0x48]
mov ecx, dword [esi + 0x54]
mov ebp, dword [esi + 0x50]
mov dword [esp + 0x14], eax
jmp 0x418668
mov eax, dword [esp + 0x14]
add eax, ebp
jmp 0x4185ca
test ecx, ecx
jns 0x418a64
call fcn.00450fd0
call fcn.00451018
call sub.cygwin1.dll___stack_chk_fail
nop
sub esp, 0x1c
mov eax, dword [esp + 0x20]
mov edx, dword [sym.imp.cygwin1.dll___stack_chk_guard]
mov dword [esp + 0xc], edx
mov edx, dword [eax + 8]
mov dword [eax + 0x10], edx
mov edx, dword [eax + 0xc]
mov dword [eax + 0x14], edx
mov eax, dword [esp + 0xc]
sub eax, dword [sym.imp.cygwin1.dll___stack_chk_guard]
jne 0x418a9d
add esp, 0x1c
ret
call sub.cygwin1.dll___stack_chk_fail
lea esi, [esi]
lea esi, [esi]