Function at 0x4a9910
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
push edi
mov eax, ecx
mov dword [esp + 0x24], 0
or ebx, 0xffffffff
mov dword [esp + 0x14], eax
xor edi, edi
movlpd qword [esp + 0x48], xmm0
movlpd qword [esp + 0x50], xmm0
movlpd qword [esp + 0x58], xmm0
test esi, esi
je 0x4aa4e3
mov edx, dword [ebp + 0xc]
test edx, edx
js 0x4aa4e3
mov dword [esp + 0x20], eax
mov eax, dword [0x7f02bc]
mov dword [esp + 0x30], esi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], 1
mov ecx, dword [eax + 0xc8]
mov eax, dword [eax + 0xcc]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x34], edx
call fcn.004a8860
test eax, eax
jne 0x4aa366
mov ebx, dword [esp + 0x5c]
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
je 0x4a9c1e
cmp ebx, 0x277b
je 0x4a9a6c
cmp dword [0x7f02b8], edi
je 0x4a9c16
mov eax, dword [0x7f02b8]
cmp dword [eax + 0x14], 4
jl 0x4a9c16
push edi
push 0x400
push 0x7f05e0
push 0x400
push ebx
push edi
push 0x12ff
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov ecx, dword [esp + 0x14]
mov eax, 0x7d3deb
push 0x7f05e0
push ebx
push dword [ebp + 8]
test ecx, ecx
cmovne eax, ecx
push eax
push 0x17d
push str.d:_srcmaster_2022ClientOSSServicecsproxy_src_sock.c
push str.__s:_d_:_n___s_n___csp_sock_resolve___for__s_failed__error__d:_s
push 4
call fcn.00472f60
mov edi, eax
add esp, 0x20
mov dword [esp + 0xc], edi
test edi, edi
je 0x4a9c16
mov edi, dword [0x7f02b8]
test edi, edi
je 0x4a9c0a
cmp byte [edi + 8], 0
je 0x4a9c0a
cmp dword [edi + 0x14], 4
jl 0x4a9c0a
mov esi, eax
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4a9a60
jmp 0x4a9afa
call esi
mov ecx, dword [0x7f02b8]
mov ebx, eax
test ecx, ecx
je 0x4a9c16
cmp dword [ecx + 0x14], 4
jl 0x4a9c16
push ebx
call fcn.006e72af
mov ecx, dword [esp + 0x18]
add esp, 4
test ecx, ecx
push eax
push ebx
push dword [ebp + 8]
mov eax, 0x7d3deb
cmovne eax, ecx
push eax
push 0x177
push str.d:_srcmaster_2022ClientOSSServicecsproxy_src_sock.c
push str.__s:_d_:_n___s_n___csp_sock_resolve___for__s_failed__error__d:_s
push 4
call fcn.00472f60
mov edi, eax
add esp, 0x20
mov dword [esp + 0xc], edi
test edi, edi
je 0x4a9c16
mov edi, dword [0x7f02b8]
test edi, edi
je 0x4a9c0a
cmp byte [edi + 8], 0
je 0x4a9c0a
cmp dword [edi + 0x14], 4
jl 0x4a9c0a
mov esi, eax
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4a9af3
mov eax, dword [edi + 0x20]
sub esi, ecx
add eax, esi
cmp dword [edi + 0x28], eax
jb 0x4a9c04
test esi, esi
je 0x4a9c04
push 8
push 1
call fcn.006e6b64
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
je 0x4a9c04
push 1
push esi
call fcn.006e6b64
mov ecx, eax
add esp, 8
mov eax, dword [esp + 0x10]
mov dword [eax], ecx
test ecx, ecx
jne 0x4a9b4d
mov dword [eax + 4], 0
jmp 0x4a9c04
push esi
push dword [esp + 0x10]
push ecx
call fcn.006dccc0
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [eax + 4], esi
mov eax, dword [edi + 0x24]
test eax, eax
je 0x4a9b75
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x24]
add dword [edi + 0x20], esi
test eax, eax
je 0x4a9b85
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [edi + 0x1c]
test esi, esi
je 0x4a9c04
cmp byte [esi + 0x10], 0
je 0x4a9ba2
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4a9ba2
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esi + 0xc]
push 0xc
push 1
call fcn.006e6b64
add esp, 8
test edi, edi
je 0x4a9bd9
test eax, eax
je 0x4a9bee
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
mov ecx, dword [edi + 8]
mov dword [eax + 4], edi
mov dword [edi + 8], eax
mov dword [eax + 8], ecx
test ecx, ecx
je 0x4a9bd4
mov dword [ecx + 4], eax
jmp 0x4a9beb
mov dword [esi + 0xc], eax
jmp 0x4a9beb
mov ecx, eax
test ecx, ecx
je 0x4a9bee
mov eax, dword [esp + 0x10]
mov dword [esi + 0xc], ecx
mov dword [ecx], eax
mov dword [esi + 8], ecx
inc dword [esi + 4]
cmp byte [esi + 0x10], 0
je 0x4a9c04
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4a9c04
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
push dword [esp + 0xc]
call fcn.006e60fe
add esp, 4
test ebx, ebx
jne 0x4aa35e
mov edi, dword [esp + 0x58]
mov dword [esp + 0x10], edi
nop word [eax + eax]
push dword [edi + 0xc]
mov eax, dword [0x7f02bc]
push dword [edi + 8]
push dword [edi + 4]
mov eax, dword [eax + 0x60]
mov dword [esp + 0x28], eax
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
mov dword [esp + 0xc], ebx
test ebx, ebx
jns 0x4a9dee
call esi
mov ecx, dword [0x7f02b8]
mov esi, eax
test ecx, ecx
je 0x4aa347
cmp dword [ecx + 0x14], 4
jl 0x4aa347
push esi
call fcn.006e72af
add esp, 4
push eax
push esi
push dword [ebp + 8]
push dword [edi + 0xc]
push dword [edi + 8]
push dword [edi + 4]
push 0x193
push str.d:_srcmaster_2022ClientOSSServicecsproxy_src_sock.c
push str.__s:_d_:_n__failed_to_create_socket__d___d___d__to__s__error__d:_s
push 4
call fcn.00472f60
mov edi, eax
add esp, 0x28
mov dword [esp + 0x18], edi
test edi, edi
je 0x4a9de5
mov edi, dword [0x7f02b8]
test edi, edi
je 0x4a9dd9
cmp byte [edi + 8], 0
je 0x4a9dd9
cmp dword [edi + 0x14], 4
jl 0x4a9dd9
mov esi, eax
lea ecx, [esi + 1]
nop word [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x4a9ce0
mov eax, dword [edi + 0x20]
sub esi, ecx
add eax, esi
cmp dword [edi + 0x28], eax
jb 0x4a9dd9
test esi, esi
je 0x4a9dd9
push 8
push 1
call fcn.006e6b64
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4a9dd5
push 1
push esi
call fcn.006e6b64
add esp, 8
mov dword [ebx], eax
test eax, eax
jne 0x4a9d2e
mov dword [ebx + 4], eax
jmp 0x4a9dd5
push esi
push dword [esp + 0x1c]
push eax
call fcn.006dccc0
mov dword [ebx + 4], esi
add esp, 0xc
mov eax, dword [edi + 0x24]
test eax, eax
je 0x4a9d52
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x24]
add dword [edi + 0x20], esi
test eax, eax
je 0x4a9d62
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [edi + 0x1c]
test esi, esi
je 0x4a9dd5
cmp byte [esi + 0x10], 0
je 0x4a9d7f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4a9d7f
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esi + 0xc]
push 0xc
push 1
call fcn.006e6b64
add esp, 8
test edi, edi
je 0x4a9db0
test eax, eax
je 0x4a9dbf
mov dword [eax], ebx
mov ecx, dword [edi + 8]
mov dword [eax + 8], ecx
mov dword [edi + 8], eax
mov ecx, dword [eax + 8]
mov dword [eax + 4], edi
test ecx, ecx
je 0x4a9db9
mov dword [ecx + 4], eax
jmp 0x4a9dbc
test eax, eax
je 0x4a9dbf
mov dword [eax], ebx
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
inc dword [esi + 4]
cmp byte [esi + 0x10], 0
je 0x4a9dd5
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4a9dd5
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [esp + 0xc]
push dword [esp + 0x18]
call fcn.006e60fe
add esp, 4
mov edi, dword [esp + 0x10]
jmp 0x4aa347
push ebx
call fcn.004bae8d
mov eax, dword [ebp + 0x10]
add esp, 4
test eax, eax
je 0x4a9e17
push eax
push ecx
mov ecx, dword [esp + 0x1c]
mov edx, ebx
call fcn.004a9080
add esp, 8
test eax, eax
je 0x4a9e3b
jmp 0x4aa340
mov eax, dword [0x7f02bc]
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x4a9e3b
push eax
push ecx
mov ecx, dword [esp + 0x1c]
mov edx, ebx
call fcn.004a9080
add esp, 8
test eax, eax
jne 0x4aa340
push 4
lea eax, [esp + 0x20]
push eax
push 0x1001
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x4a9fe0
mov eax, dword [0x7f02b8]
test eax, eax
je 0x4a9fe0
cmp dword [eax + 0x14], 4
jl 0x4a9fe0
call esi
push eax
call fcn.006e72af
add esp, 4
push eax
call esi
push eax
push ebx
push 0x1b1
push str.d:_srcmaster_2022ClientOSSServicecsproxy_src_sock.c
push str.__s:_d_:_n__fd__03d__Failed_to_set_SO_SNDBUF__error__d:_s
push 4
call fcn.00472f60
mov edi, eax
add esp, 0x1c
mov dword [esp + 0x18], edi
test edi, edi
je 0x4a9fdc
mov edi, dword [0x7f02b8]
test edi, edi
je 0x4a9fd0
cmp byte [edi + 8], 0
je 0x4a9fd0
cmp dword [edi + 0x14], 4
jl 0x4a9fd0
mov esi, eax
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4a9ed1
mov eax, dword [edi + 0x20]
sub esi, ecx
add eax, esi
cmp dword [edi + 0x28], eax
jb 0x4a9fca
test esi, esi
je 0x4a9fca
push 8
push 1
call fcn.006e6b64
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4a9fc6
push 1
push esi
call fcn.006e6b64
add esp, 8
mov dword [ebx], eax
test eax, eax
jne 0x4a9f1f
mov dword [ebx + 4], eax
jmp 0x4a9fc6
push esi
push dword [esp + 0x1c]
push eax
call fcn.006dccc0
mov dword [ebx + 4], esi
add esp, 0xc
mov eax, dword [edi + 0x24]
test eax, eax
je 0x4a9f43
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x24]
add dword [edi + 0x20], esi
test eax, eax
je 0x4a9f53
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [edi + 0x1c]
test esi, esi
je 0x4a9fc6
cmp byte [esi + 0x10], 0
je 0x4a9f70
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4a9f70
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esi + 0xc]
push 0xc
push 1
call fcn.006e6b64
add esp, 8
test edi, edi
je 0x4a9fa1
test eax, eax
je 0x4a9fb0
mov dword [eax], ebx
mov ecx, dword [edi + 8]
mov dword [eax + 8], ecx
mov dword [edi + 8], eax
mov ecx, dword [eax + 8]
mov dword [eax + 4], edi
test ecx, ecx
je 0x4a9faa
mov dword [ecx + 4], eax
jmp 0x4a9fad
test eax, eax
je 0x4a9fb0
mov dword [eax], ebx
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
inc dword [esi + 4]
cmp byte [esi + 0x10], 0
je 0x4a9fc6
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4a9fc6
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [esp + 0xc]
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
push dword [esp + 0x18]
call fcn.006e60fe
add esp, 4
mov edi, dword [esp + 0x10]
push 4
lea eax, [esp + 0x20]
push eax
push 0x1002
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x4aa185
mov eax, dword [0x7f02b8]
test eax, eax
je 0x4aa185
cmp dword [eax + 0x14], 4
jl 0x4aa185
call esi
push eax
call fcn.006e72af
add esp, 4
push eax
call esi
push eax
push ebx
push 0x1b9
push str.d:_srcmaster_2022ClientOSSServicecsproxy_src_sock.c
push str.__s:_d_:_n__fd__03d__Failed_to_set_SO_RCVBUF__error__d:_s
push 4
call fcn.00472f60
mov edi, eax
add esp, 0x1c
mov dword [esp + 0x18], edi
test edi, edi
je 0x4aa181
mov edi, dword [0x7f02b8]
test edi, edi
je 0x4aa175
cmp byte [edi + 8], 0
je 0x4aa175
cmp dword [edi + 0x14], 4
jl 0x4aa175
mov esi, eax
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4aa076
mov eax, dword [edi + 0x20]
sub esi, ecx
add eax, esi
cmp dword [edi + 0x28], eax
jb 0x4aa16f
test esi, esi
je 0x4aa16f
push 8
push 1
call fcn.006e6b64
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4aa16b
push 1
push esi
call fcn.006e6b64
add esp, 8
mov dword [ebx], eax
test eax, eax
jne 0x4aa0c4
mov dword [ebx + 4], eax
jmp 0x4aa16b
push esi
push dword [esp + 0x1c]
push eax
call fcn.006dccc0
mov dword [ebx + 4], esi
add esp, 0xc
mov eax, dword [edi + 0x24]
test eax, eax
je 0x4aa0e8
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x24]
add dword [edi + 0x20], esi
test eax, eax
je 0x4aa0f8
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [edi + 0x1c]
test esi, esi
je 0x4aa16b
cmp byte [esi + 0x10], 0
je 0x4aa115
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4aa115
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esi + 0xc]
push 0xc
push 1
call fcn.006e6b64
add esp, 8
test edi, edi
je 0x4aa146
test eax, eax
je 0x4aa155
mov dword [eax], ebx
mov ecx, dword [edi + 8]
mov dword [eax + 8], ecx
mov dword [edi + 8], eax
mov ecx, dword [eax + 8]
mov dword [eax + 4], edi
test ecx, ecx
je 0x4aa14f
mov dword [ecx + 4], eax
jmp 0x4aa152
test eax, eax
je 0x4aa155
mov dword [eax], ebx
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
inc dword [esi + 4]
cmp byte [esi + 0x10], 0
je 0x4aa16b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4aa16b
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [esp + 0xc]
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
push dword [esp + 0x18]
call fcn.006e60fe
add esp, 4
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 1
push eax
push 0x8004667e
push ebx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push dword [edi + 0x10]
push dword [edi + 0x18]
push ebx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x4aa363
call esi
mov esi, eax
cmp esi, 0x2733
je 0x4aa363
mov eax, dword [0x7f02b8]
test eax, eax
je 0x4aa340
cmp dword [eax + 0x14], 4
jl 0x4aa340
push esi
call fcn.006e72af
add esp, 4
push eax
push esi
push dword [ebp + 8]
push ebx
push 0x1ce
push str.d:_srcmaster_2022ClientOSSServicecsproxy_src_sock.c
push str.__s:_d_:_n__fd__03d__failed_to_connect_to__s__error__d:_s
push 4
call fcn.00472f60
mov edi, eax
add esp, 0x20
mov dword [esp + 0x18], edi
test edi, edi
je 0x4aa33c
mov edi, dword [0x7f02b8]
test edi, edi
je 0x4aa330
cmp byte [edi + 8], 0
je 0x4aa330
cmp dword [edi + 0x14], 4
jl 0x4aa330
mov esi, eax
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4aa237
mov eax, dword [edi + 0x20]
sub esi, ecx
add eax, esi
cmp dword [edi + 0x28], eax
jb 0x4aa330
test esi, esi
je 0x4aa330
push 8
push 1
call fcn.006e6b64
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4aa32c
push 1
push esi
call fcn.006e6b64
add esp, 8
mov dword [ebx], eax
test eax, eax
jne 0x4aa285
mov dword [ebx + 4], eax
jmp 0x4aa32c
push esi
push dword [esp + 0x1c]
push eax
call fcn.006dccc0
mov dword [ebx + 4], esi
add esp, 0xc
mov eax, dword [edi + 0x24]
test eax, eax
je 0x4aa2a9
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x24]
add dword [edi + 0x20], esi
test eax, eax
je 0x4aa2b9
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [edi + 0x1c]
test esi, esi
je 0x4aa32c
cmp byte [esi + 0x10], 0
je 0x4aa2d6
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4aa2d6
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esi + 0xc]
push 0xc
push 1
call fcn.006e6b64
add esp, 8
test edi, edi
je 0x4aa307
test eax, eax
je 0x4aa316
mov dword [eax], ebx
mov ecx, dword [edi + 8]
mov dword [eax + 8], ecx
mov dword [edi + 8], eax
mov ecx, dword [eax + 8]
mov dword [eax + 4], edi
test ecx, ecx
je 0x4aa310
mov dword [ecx + 4], eax
jmp 0x4aa313
test eax, eax
je 0x4aa316
mov dword [eax], ebx
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
inc dword [esi + 4]
cmp byte [esi + 0x10], 0
je 0x4aa32c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4aa32c
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [esp + 0xc]
push dword [esp + 0x18]
call fcn.006e60fe
add esp, 4
mov edi, dword [esp + 0x10]
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov edi, dword [edi + 0x1c]
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0x10], edi
test edi, edi
jne 0x4a9c30
jmp 0x4aa363
or ebx, 0xffffffff
xor edi, edi
mov esi, dword [ebp + 8]
mov eax, dword [esp + 0x58]
test eax, eax
je 0x4aa375
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test edi, edi
jne 0x4aa4ed
mov ecx, dword [0x7f02b8]
test ecx, ecx
je 0x4aa4e3
cmp dword [ecx + 0x14], 4
jl 0x4aa4e3
push esi
push ebx
push 0x1e1
push str.d:_srcmaster_2022ClientOSSServicecsproxy_src_sock.c
push str.__s:_d_:_n__fd__03d__Could_not_establish_a_connection_to__s
push 4
call fcn.00472f60
mov edi, eax
add esp, 0x18
mov dword [esp + 0x18], edi
test edi, edi
je 0x4aa4e3
mov edi, dword [0x7f02b8]
test edi, edi
je 0x4aa4d7
cmp byte [edi + 8], 0
je 0x4aa4d7
cmp dword [edi + 0x14], 4
jl 0x4aa4d7
mov esi, eax
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4aa3e5
mov eax, dword [edi + 0x20]
sub esi, ecx
add eax, esi
cmp dword [edi + 0x28], eax
jb 0x4aa4d7
test esi, esi
je 0x4aa4d7
push 8
push 1
call fcn.006e6b64
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4aa4d7
push 1
push esi
call fcn.006e6b64
add esp, 8
mov dword [ebx], eax
test eax, eax
jne 0x4aa433
mov dword [ebx + 4], eax
jmp 0x4aa4d7
push esi
push dword [esp + 0x1c]
push eax
call fcn.006dccc0
mov eax, dword [edi + 0x24]
add esp, 0xc
mov dword [ebx + 4], esi
test eax, eax
je 0x4aa457
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x24]
add dword [edi + 0x20], esi
test eax, eax
je 0x4aa467
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [edi + 0x1c]
test esi, esi
je 0x4aa4d7
cmp byte [esi + 0x10], 0
je 0x4aa484
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4aa484
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esi + 0xc]
push 0xc
push 1
call fcn.006e6b64
add esp, 8
test edi, edi
je 0x4aa4b2
test eax, eax
je 0x4aa4c1
mov ecx, dword [edi + 8]
mov dword [eax], ebx
mov dword [eax + 8], ecx
mov dword [edi + 8], eax
mov dword [eax + 4], edi
test ecx, ecx
je 0x4aa4bb
mov dword [ecx + 4], eax
jmp 0x4aa4be
test eax, eax
je 0x4aa4c1
mov dword [eax], ebx
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
inc dword [esi + 4]
cmp byte [esi + 0x10], 0
je 0x4aa4d7
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4aa4d7
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [esp + 0x18]
call fcn.006e60fe
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret