Function at 0x430ea0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4df458
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x10]
push 0x7530
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x430ee5
cmp eax, 0x102
jne 0x431154
push str.SocketAppender::ConnectorThread::run____running...
call fcn.0040e0d0
mov ecx, eax
call fcn.00417b80
mov eax, dword [edi + 4]
lea esi, [edi + 8]
mov eax, dword [eax + 4]
add esi, eax
mov dword [ebp - 0x10], esi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
cmp byte [edi + 0x14], 0
jne 0x43113f
mov eax, dword [edi + 0x10]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
je 0x431163
push dword [esi]
call ebx
mov ecx, dword [edi + 0xc]
mov eax, dword [ecx + 4]
lea esi, [ecx + 8]
mov eax, dword [eax + 4]
add esi, eax
mov dword [ebp - 0x1c], esi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 1
mov ecx, dword [edi + 0xc]
add ecx, 0x38
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
test al, al
je 0x430f75
mov dword [ebp - 4], 0xffffffff
push dword [esi]
call ebx
jmp 0x430ec6
push dword [esi]
call ebx
mov eax, dword [edi + 0xc]
movzx edx, word [eax + 0x60]
lea ecx, [eax + 0x48]
mov dword [ebp - 0x34], 0xffffffff
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 2
push eax
push 0
mov dword [ebp - 0x38], vtable.log4cplus::helpers::Socket.0
call fcn.00436760
add esp, 8
mov dword [ebp - 0x34], eax
cmp eax, 0xffffffff
je 0x430fe7
push 4
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 1
push ecx
push 1
push 6
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x430ff1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call fcn.004bad04
mov dword [eax], esi
call fcn.004bad04
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 3
cmp dword [ebp - 0x34], 0xffffffff
jne 0x4310c6
call fcn.0040e0d0
push dword [eax + 0xc]
mov dword [ebp - 0x10], eax
lea esi, [eax + 0xc]
mov dword [ebp - 0x20], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
add ecx, 8
mov eax, dword [ecx]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
jne 0x431040
mov edx, 0x4ff85c
call fcn.00417e40
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 8]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 3
push dword [esi]
call ebx
cmp dword [ebp - 0x14], 1
je 0x43108e
call fcn.0040df90
mov esi, eax
mov dword [ebp - 0x24], esi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push str.SocketAppender::ConnectorThread::run____Cannot_connect_to_server
push str.log4cplus:ERROR
push 0x535610
mov byte [ebp - 4], 5
call fcn.00418120
add esp, 8
push eax
call fcn.00418120
push eax
call fcn.004183f0
add esp, 0xc
push dword [esi]
call ebx
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], vtable.log4cplus::helpers::AbstractSocket.0
cmp eax, 0xffffffff
je 0x430ec6
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebp - 0x34], 0xffffffff
jmp 0x430ec6
mov ecx, dword [edi + 0xc]
mov eax, dword [ecx + 4]
lea esi, [ecx + 8]
mov eax, dword [eax + 4]
add esi, eax
mov dword [ebp - 0x28], esi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 7
lea edx, [ebp - 0x38]
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x14], eax
lea ecx, [eax + 0x38]
cmp edx, ecx
je 0x43110a
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x38]
add ecx, 0x38
push edx
mov eax, dword [ecx]
call dword [eax + 0x10]
mov eax, dword [edi + 0xc]
mov byte [eax + 0x7c], 1
push dword [esi]
call ebx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], vtable.log4cplus::helpers::AbstractSocket.0
cmp eax, 0xffffffff
je 0x430ec6
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebp - 0x34], 0xffffffff
jmp 0x430ec6
push dword [esi]
call ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x100
mov ecx, str.ManualResetEvent::timed_wait
call fcn.0041cb60
push 0x10d
mov ecx, str.ManualResetEvent::reset
call fcn.0041cb60
int3