Function at 0x516ee0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x544790
mov eax, dword fs:[0]
push eax
sub esp, 0x378
mov eax, dword [0x5c403c]
xor eax, esp
mov dword [esp + 0x370], eax
push ebx
push esi
push edi
mov eax, dword [0x5c403c]
xor eax, esp
push eax
lea eax, [esp + 0x388]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, ecx
mov esi, edx
mov ecx, dword [esi + 4]
push ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], eax
call dword [0x55a504]
mov dword [esp + 0x390], 0
lea edx, [esp + 0x2c]
push edx
mov edi, ebx
call fcn.005177f0
mov edi, eax
mov dword [esp + 0x390], 0xffffffff
lea ecx, [esp + 0x2c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
test edi, edi
jne 0x516f79
mov eax, 0x80070490
jmp 0x51777c
mov ecx, dword [edi]
test ecx, ecx
je 0x516f87
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x516f96
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x516fa5
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
push 0xbc
call sub.mfc90u.dll_new
add esp, 4
mov dword [esp + 0x1c], eax
mov dword [esp + 0x390], 1
test eax, eax
je 0x516fcd
push eax
call fcn.00518950
jmp 0x516fcf
xor eax, eax
mov dword [esp + 0x390], 0xffffffff
mov dword [edi], eax
mov dword [eax + 0x98], edi
mov eax, dword [esi + 4]
mov ecx, dword [edi]
push eax
add ecx, 0xb4
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_3]
mov ecx, dword [edi]
mov dword [ecx + 0x9c], ebx
mov edx, dword [edi]
mov eax, dword [edi + 0x30]
mov dword [edx + 0xa0], eax
test byte [edi + 0x18], 2
je 0x51705c
push 0x98
call sub.mfc90u.dll_new
mov ebx, eax
add esp, 4
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x390], 2
test ebx, ebx
je 0x517041
mov ecx, ebx
call dword [sym.imp.libSock.module_public:_void___thiscall_CAsyncSslSocketLayer::constructor_void_]
mov dword [ebx], vtable.CAsyncSslSocketLayer.0
mov eax, ebx
jmp 0x517043
xor eax, eax
mov dword [esp + 0x390], 0xffffffff
mov ecx, dword [edi]
push eax
mov dword [edi + 8], eax
call dword [sym.imp.libSock.module_public:_int___thiscall_CAsyncSocketEx::AddLayer_class_CAsyncSocketExLayer__]
jmp 0x517063
mov dword [edi + 8], 0
test byte [esi + 0x28], 1
je 0x5172ee
cmp dword [esi + 0x18], 2
je 0x5171b8
push 0x74
call sub.mfc90u.dll_new
mov ebx, eax
add esp, 4
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x390], 3
test ebx, ebx
je 0x5170a6
mov ecx, ebx
call dword [sym.imp.libSock.module_public:_void___thiscall_CAsyncSocksProxyLayer::constructor_void_]
mov dword [ebx], vtable.CAsyncSocksProxyLayer.0
jmp 0x5170a8
xor ebx, ebx
mov dword [esp + 0x390], 0xffffffff
mov dword [edi + 4], ebx
cmp dword [esi + 0x20], 0
jne 0x51710d
mov ecx, dword [esi + 0x14]
push ecx
lea ecx, [esp + 0x14]
call dword [0x55a504]
mov dword [esp + 0x390], 4
mov edx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
push edx
lea eax, [esp + 0x14]
push eax
push ecx
mov ecx, ebx
call dword [sym.imp.libSock.module_public:_int___thiscall_CAsyncSocksProxyLayer::SetProxy_int__class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t____const___int_]
mov dword [esp + 0x390], 0xffffffff
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov ecx, dword [edi]
push ebx
call dword [sym.imp.libSock.module_public:_int___thiscall_CAsyncSocketEx::AddLayer_class_CAsyncSocketExLayer__]
jmp 0x5172f5
mov edx, dword [esi + 0x24]
push edx
lea ecx, [esp + 0x18]
call dword [0x55a504]
mov dword [esp + 0x390], 5
mov eax, dword [esi + 0x20]
push eax
lea ecx, [esp + 0x1c]
call dword [0x55a504]
mov byte [esp + 0x390], 6
mov ecx, dword [esi + 0x14]
push ecx
lea ecx, [esp + 0x14]
call dword [0x55a504]
mov byte [esp + 0x390], 7
mov ecx, dword [esi + 0x1c]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esi + 0x18]
push ecx
lea edx, [esp + 0x1c]
push edx
push eax
mov ecx, ebx
call dword [sym.imp.libSock.module_public:_int___thiscall_CAsyncSocksProxyLayer::SetProxy_int__class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t____const___int__class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t____const___class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t____const__]
mov byte [esp + 0x390], 6
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov byte [esp + 0x390], 5
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov dword [esp + 0x390], 0xffffffff
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov ecx, dword [edi]
push ebx
call dword [sym.imp.libSock.module_public:_int___thiscall_CAsyncSocketEx::AddLayer_class_CAsyncSocketExLayer__]
jmp 0x5172f5
push 0x68
call sub.mfc90u.dll_new
mov ebx, eax
add esp, 4
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x390], 8
test ebx, ebx
je 0x5171e7
mov ecx, ebx
call dword [sym.imp.libSock.module_public:_void___thiscall_CAsyncHttpProxyLayer::constructor_void_]
mov dword [ebx], vtable.CAsyncHttpProxyLayer.0
jmp 0x5171e9
xor ebx, ebx
mov dword [esp + 0x390], 0xffffffff
mov dword [edi + 4], ebx
cmp dword [esi + 0x20], 0
jne 0x51724a
mov ecx, dword [esi + 0x14]
push ecx
lea ecx, [esp + 0x14]
call dword [0x55a504]
mov dword [esp + 0x390], 9
mov edx, dword [esi + 0x1c]
push edx
lea eax, [esp + 0x14]
push eax
mov ecx, ebx
call dword [sym.imp.libSock.module_public:_int___thiscall_CAsyncHttpProxyLayer::SetProxy_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t____const___int_]
mov dword [esp + 0x390], 0xffffffff
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov ecx, dword [edi]
push ebx
call dword [sym.imp.libSock.module_public:_int___thiscall_CAsyncSocketEx::AddLayer_class_CAsyncSocketExLayer__]
jmp 0x5172f5
mov ecx, dword [esi + 0x24]
push ecx
lea ecx, [esp + 0x18]
call dword [0x55a504]
mov dword [esp + 0x390], 0xa
mov edx, dword [esi + 0x20]
push edx
lea ecx, [esp + 0x1c]
call dword [0x55a504]
mov byte [esp + 0x390], 0xb
mov eax, dword [esi + 0x14]
push eax
lea ecx, [esp + 0x14]
call dword [0x55a504]
mov byte [esp + 0x390], 0xc
mov eax, dword [esi + 0x1c]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, ebx
call dword [sym.imp.libSock.module_public:_int___thiscall_CAsyncHttpProxyLayer::SetProxy_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t____const___int__class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t____const___class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t____const__]
mov byte [esp + 0x390], 0xb
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov byte [esp + 0x390], 0xa
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov dword [esp + 0x390], 0xffffffff
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov ecx, dword [edi]
push ebx
call dword [sym.imp.libSock.module_public:_int___thiscall_CAsyncSocketEx::AddLayer_class_CAsyncSocketExLayer__]
jmp 0x5172f5
mov dword [edi + 4], 0
mov edx, dword [edi + 0x24]
mov ecx, dword [edi + 0x20]
mov eax, dword [edi]
call fcn.0051a8d0
mov eax, dword [edi + 0x10]
cmp dword [eax - 0xc], 0
je 0x517318
mov ecx, dword [edi + 0x14]
push eax
push ecx
mov ecx, dword [edi]
call dword [sym.imp.libSock.module_public:_int___thiscall_CAsyncSocketEx::Bind_unsigned_int__wchar_t_const__]
mov eax, dword [edi + 0x18]
test al, 0x14
jne 0x51763c
cmp dword [esi + 0x10], 3
lea ecx, [esp + 0x10]
jne 0x5174e4
call dword [0x55a6c4]
mov dword [esp + 0x390], 0xd
lea ecx, [esp + 0x18]
call dword [0x55a6c4]
mov byte [esp + 0x390], 0xe
mov edx, dword [esi + 8]
push edx
lea ecx, [esp + 0x18]
call dword [0x55a504]
mov bl, 0xf
mov byte [esp + 0x390], bl
push 0
push 0x5888c0
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Find]
mov esi, eax
cmp esi, 0xffffffff
jne 0x5173c3
mov byte [esp + 0x390], 0xe
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov byte [esp + 0x390], 0xd
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov dword [esp + 0x390], 0xffffffff
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
xor eax, eax
jmp 0x51777c
push esi
push 0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Mid_1]
mov byte [esp + 0x390], 0x10
push eax
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_2]
mov byte [esp + 0x390], bl
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
inc esi
push esi
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Mid]
mov byte [esp + 0x390], 0x11
push eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_2]
mov byte [esp + 0x390], bl
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x4c]
push edx
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jl 0x517383
mov ecx, dword [esp + 0x10]
push 0x10
push 0
push ecx
call dword [sym.imp.MSVCR90.dll__wcstoui64]
add esp, 0xc
mov ebx, eax
or eax, edx
mov dword [esp + 0x28], edx
je 0x517383
mov ecx, dword [edi]
call dword [sym.imp.libSock.module_public:_int___thiscall_CAsyncSocketEx::BluetoothCreate_void_]
mov esi, eax
test esi, esi
je 0x5174a6
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
push 0
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x68]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x6c]
mov dword [eax + 8], ecx
mov ecx, dword [edi]
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x3c]
push eax
push ebx
call dword [sym.imp.libSock.module_public:_int___thiscall_CAsyncSocketEx::BluetoothConnect_unsigned_long_long_unsigned___int64___struct__GUID__unsigned_long_int_]
mov esi, eax
mov byte [esp + 0x390], 0xe
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov byte [esp + 0x390], 0xd
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov dword [esp + 0x390], 0xffffffff
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
jmp 0x51777a
mov ebx, dword [0x5c7008]
push ecx
push 2
push str.SYS_IPv6
call fcn.00514350
push 0x110
lea edx, [esp + 0x6c]
push 0
push edx
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [esp + 0x64]
push eax
mov dword [esp + 0x68], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [0x5c6600]
cmp eax, 0xffffffff
jne 0x51757f
xor eax, eax
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x36], eax
mov dword [esp + 0x3a], eax
mov dword [esp + 0x3e], eax
mov dword [esp + 0x42], eax
mov dword [esp + 0x46], eax
mov dword [esp + 0x4a], eax
mov word [esp + 0x4e], ax
lea eax, [esp + 0x180]
push eax
mov ecx, 0x17
push 0
mov word [esp + 0x3c], cx
push 0x1c
lea ecx, [esp + 0x40]
push ecx
mov dword [esp + 0x30], 0xff
call dword [sym.imp.WS2_32.dll_WSAAddressToStringW]
neg eax
sbb eax, eax
inc eax
mov dword [0x5c6600], eax
cmp dword [esp + 0x68], 6
sbb ecx, ecx
inc ecx
test eax, eax
je 0x51758f
mov eax, dword [esp + 0x10]
sub eax, 0
je 0x5175c8
sub eax, 1
je 0x5175c0
sub eax, 1
jne 0x5173bc
test ecx, ecx
je 0x5175b4
mov edx, dword [esp + 0x20]
cmp dword [edx + 0x38], eax
je 0x5175b4
push eax
push eax
push eax
jmp 0x5175ce
push 0
mov eax, 2
push 0
push eax
jmp 0x5175ce
push 0
push 0
push 0
jmp 0x5175ce
push 0
push 0
push 2
mov ecx, dword [edi]
push 0
push 0x3f
push 1
push 0
call dword [sym.imp.libSock.module_public:_int___thiscall_CAsyncSocketEx::Create_unsigned_int__int__long_int__wchar_t_const___int__bool__int_]
test eax, eax
je 0x5173bc
mov ecx, dword [edi]
push 0xffff
push 4
lea eax, [esp + 0x28]
push eax
push 0x1001
mov dword [esp + 0x30], 0x2000
call dword [sym.imp.libSock.module_public:_int___thiscall_CAsyncSocketEx::SetSockOpt_int__void_const___int__int_]
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx]
cmp dword [eax - 0xc], 3
mov ecx, dword [edi]
mov edx, dword [ecx]
jge 0x517629
mov eax, dword [esi + 0xc]
mov edx, dword [edx + 0x10]
push eax
mov eax, dword [esi + 8]
push eax
call edx
jmp 0x51777c
mov edi, dword [esi + 0xc]
mov esi, dword [esi + 8]
push edi
push esi
push eax
mov eax, dword [edx + 0x14]
call eax
jmp 0x51777c
test al, 0x10
jne 0x517673
mov ecx, dword [edi + 0x14]
push 0
push 0
push 2
push 0
push 0x3f
push 1
push ecx
mov ecx, dword [edi]
call dword [sym.imp.libSock.module_public:_int___thiscall_CAsyncSocketEx::Create_unsigned_int__int__long_int__wchar_t_const___int__bool__int_]
mov esi, eax
test esi, esi
je 0x51777a
mov ecx, dword [edi]
push 5
call dword [sym.imp.libSock.module_public:_int___thiscall_CAsyncSocketEx::Listen_int_]
mov esi, eax
jmp 0x51777a
mov ecx, dword [edi + 0x28]
test ecx, ecx
jne 0x517684
mov eax, 0x80070057
jmp 0x51777c
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x48], eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x38]
push eax
mov eax, dword [edi]
mov dword [esp + 0x38], 0x1c
mov dword [esp + 0x4c], 0x10
mov edx, dword [ecx]
mov edx, dword [edx + 4]
push eax
call edx
mov esi, eax
test esi, esi
je 0x51777a
push 0x100
call sub.mfc90u.dll_new__
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x5176f5
push 0x100
push 0
push ebx
call sub.MSVCR90.dll_memset
add esp, 0xc
jmp 0x5176f7
xor ebx, ebx
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x24]
push eax
push ebx
push 0
push ecx
lea edx, [esp + 0x44]
push edx
mov dword [esp + 0x38], 0x80
call dword [sym.imp.WS2_32.dll_WSAAddressToStringW]
cmp dword [edi + 0x20], 0
mov dword [esp + 0x48], ebx
je 0x517771
mov ecx, dword [edi]
test ecx, ecx
je 0x517771
xor eax, eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x4c], 0x18
mov dword [esp + 0x50], 0x12
call dword [sym.imp.libSock.module_public:_unsigned_int___thiscall_CAsyncSocketEx::GetSocketHandle_void_]
mov dword [esp + 0x58], eax
mov eax, dword [edi + 0x24]
push eax
mov eax, dword [edi + 0x20]
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x54]
push edx
call eax
add esp, 0xc
push ebx
call sub.mfc90u.dll_delete__
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x388]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x370]
xor ecx, esp
call fcn.00532776
mov esp, ebp
pop ebp
ret 4