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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [sym.imp.cygwin1.dll___stack_chk_guard]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x54]
mov esi, dword [esp + 0x50]
mov edx, dword [eax]
mov eax, dword [edx - 0xc]
lea ebx, [eax + eax]
cmp ebx, 0x7ffffffe
ja 0x404764
mov dword [esp + 0x1c], edx
test ebx, ebx
je 0x404748
mov dword [esp], ebx
call sub.cygwin1.dll___wrap__Znwj
mov edx, dword [esp + 0x1c]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov edi, eax
lea ebp, [eax + ebx]
mov dword [esp + 4], edx
call fcn.004513c4
mov eax, dword [esi]
mov edx, dword [esi + 8]
mov dword [esi], edi
mov dword [esi + 4], ebp
mov dword [esi + 8], ebp
test eax, eax
je 0x404750
mov ecx, dword [esp + 0x2c]
sub ecx, dword [sym.imp.cygwin1.dll___stack_chk_guard]
jne 0x404770
sub edx, eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], edx
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
jmp sub.cygstdc_6.dll_operator_delete_void__unsigned_int_
xor ebp, ebp
xor edi, edi
jmp 0x404711
mov eax, dword [esp + 0x2c]
sub eax, dword [sym.imp.cygwin1.dll___stack_chk_guard]
jne 0x404770
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0x477040
call fcn.00450ff0
call sub.cygwin1.dll___stack_chk_fail
nop
lea esi, [esi]
lea esi, [esi]
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov eax, dword [esp + 0x6c]
mov edi, dword [esp + 0x60]
mov edx, dword [esp + 0x68]
mov dword [esp + 0x2c], eax
mov esi, dword [edi + 0x1c]
lea ebp, [edi + 0x1c]
mov eax, dword [sym.imp.cygwin1.dll___stack_chk_guard]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x28], edi
add eax, 0xffffffff
mov dword [esp + 0x10], eax
adc edx, 0xffffffff
lea eax, [esp + 0x34]
mov dword [esp + 0x14], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], eax
cmp esi, ebp
je 0x40486f
mov dword [esp + 0x18], ebp
mov edi, dword [esp + 0x14]
mov ebp, esi
mov dword [esp + 0x20], eax
mov esi, dword [esp + 0x10]
jmp 0x4047ee
cmp dword [esp + 0x18], ebp
je 0x404834
mov ebx, ebp
mov ebp, dword [ebp]
mov dword [esp + 4], esi
lea eax, [ebx + 8]
mov dword [esp + 8], edi
mov dword [esp], eax
call fcn.00467130
test al, al
je 0x4047e8
mov eax, dword [esp + 0x20]
cmp eax, ebp
je 0x4047e8
cmp eax, ebx
je 0x4047e8
mov dword [esp], eax
mov dword [esp + 8], ebp
mov dword [esp + 4], ebx
call fcn.00451080
mov eax, dword [esp + 0x34]
mov dword [esp + 0x20], eax
cmp dword [esp + 0x18], ebp
jne 0x4047ee
mov ebx, dword [esp + 0x20]
lea eax, [esp + 0x34]
mov ebp, dword [esp + 0x18]
cmp ebx, eax
je 0x40486f
lea esi, [esi]
mov esi, ebx
mov ebx, dword [ebx]
mov eax, dword [esi + 8]
lea edx, [esi + 8]
mov dword [esp], edx
call dword [eax]
mov dword [esp + 4], 0x38
mov dword [esp], esi
call sub.cygstdc_6.dll_operator_delete_void__unsigned_int_
lea eax, [esp + 0x34]
cmp ebx, eax
jne 0x404848
mov edi, dword [esp + 0x28]
mov edx, dword [edi + 0x44]
mov ecx, dword [edi + 0x2c]
mov eax, dword [edi + 0x40]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x24], ecx
mov ebx, dword [edx + 0x34]
mov edx, dword [edx + 0x38]
mov dword [esp + 0x18], eax
mov dword [esp + 0x2c], edx
mov edx, dword [edi + 0x28]
mov edi, ecx
mov dword [esp], 0x38
mov esi, edx
mov dword [esp + 0x20], edx
add esi, 1
adc edi, 0
call sub.cygwin1.dll___wrap__Znwj
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x2c]
mov dword [eax + 0x18], ebx
mov ebx, dword [esp + 0x1c]
mov dword [eax + 0x14], edi
mov dword [eax + 0x10], esi
mov byte [eax + 0x1c], 0
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ebx
mov dword [eax + 0x28], 0xffffffff
mov dword [eax + 0x2c], 0xffffffff
mov dword [eax + 8], 0x47f7b4
mov dword [eax + 0x30], edx
mov dword [esp + 4], ebp
mov dword [esp], eax
call fcn.00451078
mov edi, dword [esp + 0x28]
cmp dword [edi + 0x1c], ebp
je 0x404a17
mov edi, dword [esp + 0x28]
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x14]
mov byte [eax + 0x1c], 1
mov eax, edi
add eax, 0x14
mov dword [esp + 0x20], eax
cmp ecx, eax
je 0x4049c0
lea esi, [esi]
mov esi, dword [ecx + 0xc]
mov ebp, ecx
cmp esi, dword [ecx + 0x10]
jne 0x404948
jmp 0x4049b4
add esi, 0x48
cmp esi, dword [ebp + 0x10]
je 0x4049b2
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cmp eax, dword [esi + 0x18]
mov eax, edx
sbb eax, dword [esi + 0x1c]
jae 0x404940
mov ecx, dword [esi + 0x38]
mov edi, dword [esi + 0x3c]
mov byte [esi + 0x34], 0
cmp ecx, edi
je 0x40498a
mov dword [esp + 0x18], ecx
mov ebx, ecx
nop
mov eax, dword [ebx]
lea edx, [eax - 0xc]
cmp eax, method.std::string.swap_std::string_
jne 0x4049f0
add ebx, 0xc
cmp edi, ebx
jne 0x404970
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x3c], ecx
mov dword [esi + 0x18], 0xffffffff
add esi, 0x48
mov dword [esi - 0x2c], 0xffffffff
mov dword [esi - 0x40], 0xffffffff
mov dword [esi - 0x3c], 0xffffffff
mov byte [esi - 0x34], 0
cmp esi, dword [ebp + 0x10]
jne 0x404948
mov ecx, ebp
mov ecx, dword [ecx]
cmp ecx, dword [esp + 0x20]
jne 0x404928
mov eax, dword [esp + 0x28]
cmp dword [eax + 0x6c], 3
je 0x4049d6
mov eax, dword [esp + 0x28]
add dword [eax + 0x40], 1
adc dword [eax + 0x44], 0
mov eax, dword [esp + 0x3c]
sub eax, dword [sym.imp.cygwin1.dll___stack_chk_guard]
jne 0x404a1c
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, 0xffffffff
lock xadd dword [eax - 4], ecx
test ecx, ecx
jg 0x40497c
lea eax, [esp + 0x34]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.00451180
jmp 0x40497c
call fcn.00403ec0
call sub.cygwin1.dll___stack_chk_fail
nop
lea esi, [esi]
lea esi, [esi]
lea esi, [esi]
lea esi, [esi]
mov esi, ebx
mov ebx, dword [ebx]
mov eax, dword [esi + 8]
lea edx, [esi + 8]
mov dword [esp], edx
call dword [eax]
mov dword [esp + 4], 0x38
mov dword [esp], esi
call sub.cygstdc_6.dll_operator_delete_void__unsigned_int_
cmp edi, ebx
jne 0x404a60
lea esi, [esi]
nop
mov esi, edi
mov edi, dword [edi]
mov ebx, dword [esi + 0x10]
mov ebp, dword [esi + 0xc]
cmp ebx, ebp
je 0x404ac2
nop
mov edx, dword [ebp]
mov dword [esp], ebp
add ebp, 0x48
call dword [edx]
cmp ebx, ebp
jne 0x404ab0
mov ebp, dword [esi + 0xc]
test ebp, ebp
je 0x404ad7
mov edx, dword [esi + 0x14]
mov dword [esp], ebp
sub edx, ebp
mov dword [esp + 4], edx
call sub.cygstdc_6.dll_operator_delete_void__unsigned_int_
mov dword [esp + 4], 0x18
mov dword [esp], esi
call sub.cygstdc_6.dll_operator_delete_void__unsigned_int_
cmp edi, dword [esp + 0x18]
jne 0x404aa0
mov eax, dword [esp + 0x1c]
add dword [eax + 0x40], 1
adc dword [eax + 0x44], 0
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret