Function at 0x449970
Capabilities:
Get process heap flags
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x59116a
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x62d414]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x62d414]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xb8]
movzx eax, word [ebp + 8]
xor esi, esi
mov dword [esp + 0x14], connect
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], esi
lea ebx, [esi + 0x18]
test al, 0x40
je 0x449a35
or eax, 0x100
mov word [ebp + 8], ax
mov eax, dword [0x68cb74]
mov ebx, 0x358
mov dword [esp + 0x28], esi
cmp eax, esi
je 0x449a35
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [0x68cb69], 1
jne 0x449a17
mov eax, dword [0x68cb78]
cmp eax, esi
je 0x449a17
mov dword [esp + 0x28], eax
mov eax, dword [0x68cb74]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x28], esi
je 0x449a35
mov eax, dword [esp + 0x28]
lea edi, [ebp + 0x2a]
call fcn.0048fb10
lea edi, [ebp + 0x2a]
push edi
push esi
lea eax, [esp + 0x20]
call fcn.0048dda0
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
js 0x449ec4
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.MSVCR90.dll_malloc]
mov esi, eax
add esp, 4
mov dword [esp + 0x34], esi
test esi, esi
je 0x449ec0
push edi
push esi
lea eax, [esp + 0x20]
call fcn.0048dda0
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
js 0x449eb6
mov eax, dword [0x68cb64]
mov edx, dword [eax]
push str.Sending_Connect_Request
push str.MThree::dsClientLibSendConnect
push 2
push eax
mov eax, dword [edx]
call eax
mov ecx, dword [ebp + 0x4c]
mov eax, dword [ebp + 0x1c]
movzx edx, word [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 4]
push eax
movzx eax, word [ebp + 0x28]
push edx
push eax
push ebx
push ecx
mov ecx, dword [esp + 0x40]
mov edx, esi
call fcn.0048b800
add esp, 0x28
mov dword [esp + 0x14], eax
test eax, eax
js 0x449eb6
mov eax, dword [0x68cb64]
mov edx, dword [eax]
push str.Waiting_for_Connect_Response
push str.MThree::dsClientLibSendConnect
push 2
push eax
mov eax, dword [edx]
call eax
movzx ecx, word [ebp + 0x28]
mov edx, dword [ebp + 0x50]
mov eax, dword [ebp + 0x1c]
push ecx
movzx ecx, word [ebp + 0xa]
push 1
push edx
mov edx, dword [ebp + 4]
push eax
movzx eax, word [ebp + 0xc]
push eax
push ecx
push ebx
push edx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x50]
push ecx
call fcn.0048bd40
add esp, 0x38
mov dword [esp + 0x14], eax
test eax, eax
jne 0x449eb6
push eax
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x24]
push edx
push eax
mov ecx, ebx
lea eax, [esp + 0x34]
lea edi, [esp + 0x24]
xor esi, esi
call fcn.00486820
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
js 0x449e9c
mov eax, dword [esp + 0x20]
cmp ax, 4
jne 0x449e71
lea edi, [ebp + 0x3a]
push edi
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x34]
push edx
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x3c]
push eax
push ecx
push edx
mov eax, ebx
call fcn.00486c60
add esp, 0x18
mov dword [esp + 0x14], eax
test eax, eax
js 0x449e9c
xor ebx, ebx
push 0x1c
mov dword [esp + 0x18], ebx
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x20], eax
mov dword [esp + 0xb0], ebx
cmp eax, ebx
je 0x449bbf
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
jmp 0x449bc1
xor eax, eax
mov dword [esp + 0xb0], 0xffffffff
mov edx, dword [esp + 0x24]
push edx
mov dword [ebp + 0x20], eax
call dword [sym.imp.MSVCR90.dll_free]
mov eax, dword [0x68cb64]
push str.Connection_Handshake_completed.
push str.MThree::dsClientLibSendConnect
mov dword [esp + 0x30], ebx
mov ecx, dword [eax]
mov edx, dword [ecx]
push 2
push eax
call edx
mov eax, dword [esp + 0x44]
mov cx, word [esp + 0x40]
add esp, 0x14
mov word [ebp + 0xe], ax
mov word [ebp + 0x10], cx
cmp ax, 4
jb 0x449e2a
movzx ecx, word [ebp + 8]
test cl, 0x40
je 0x449e2a
mov edx, ecx
and edx, 0x100
mov esi, 0x100
cmp si, dx
jne 0x449e2a
test ecx, 0x200
je 0x449c49
add ecx, 0xfffffe00
mov word [ebp + 8], cx
mov ecx, dword [ebp + 0x4c]
cmp ecx, ebx
je 0x449c58
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov ecx, dword [ebp + 0x50]
cmp ecx, ebx
je 0x449c67
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
xor eax, eax
mov ecx, dword [ebp + 0x1c]
mov dword [esp + 0x65], eax
mov dword [esp + 0x69], eax
mov dword [esp + 0x6d], eax
mov dword [esp + 0x71], eax
mov dword [esp + 0x75], eax
mov dword [esp + 0x79], eax
mov dword [esp + 0x7d], eax
mov word [esp + 0x81], ax
mov byte [esp + 0x83], al
mov byte [esp + 0x84], al
mov dword [esp + 0x85], eax
mov dword [esp + 0x89], eax
mov dword [esp + 0x8d], eax
mov dword [esp + 0x91], eax
mov dword [esp + 0x95], eax
mov dword [esp + 0x99], eax
mov dword [esp + 0x9d], eax
mov word [esp + 0xa1], ax
mov byte [esp + 0xa3], al
mov al, 0x58
mov byte [esp + 0x3c], al
mov byte [esp + 0x41], al
xor eax, eax
mov dword [esp + 0x45], eax
mov dword [esp + 0x49], eax
mov dword [esp + 0x4d], eax
mov dword [esp + 0x51], eax
mov dword [esp + 0x55], eax
mov dword [esp + 0x59], eax
mov dword [esp + 0x5d], eax
mov word [esp + 0x61], ax
mov byte [esp + 0x63], al
mov eax, dword [ebp + 0x18]
push eax
push ecx
lea eax, [esp + 0x4c]
push 0x20
push eax
mov byte [esp + 0x74], 0
mov byte [esp + 0x48], 0xdf
mov byte [esp + 0x49], 0x51
mov byte [esp + 0x4a], 0xc
mov byte [esp + 0x4b], 0x98
mov byte [esp + 0x4d], 0xda
mov byte [esp + 0x4e], 0xa9
mov byte [esp + 0x4f], 0xca
mov byte [esp + 0x50], 0x3f
mov byte [esp + 0x54], 0
call dword [sym.imp.MSVCR90.dll_memcpy_s]
add esp, 0x10
call fcn.0048fcc0
mov esi, eax
cmp esi, ebx
je 0x449e5d
push edi
lea edi, [ebp + 0x2a]
push edi
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x50]
push edx
push esi
lea ebx, [esp + 0x78]
call fcn.0048fb60
cmp al, 1
jne 0x449e5d
push edi
lea eax, [ebp + 0x3a]
push eax
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x50]
push ecx
push esi
lea ebx, [esp + 0x98]
call fcn.0048fb60
mov ebx, 1
cmp al, bl
jne 0x449e5d
push 0x1c
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x20], eax
mov dword [esp + 0xb0], ebx
test eax, eax
je 0x449dd7
push edi
lea edx, [esp + 0x68]
push edx
mov esi, eax
call fcn.0048fd40
jmp 0x449dd9
xor eax, eax
or edi, 0xffffffff
mov dword [esp + 0xb0], edi
push 0x1c
mov dword [ebp + 0x4c], eax
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x20], eax
mov dword [esp + 0xb0], 2
test eax, eax
je 0x449e1a
lea ecx, [ebp + 0x3a]
push ecx
lea ecx, [esp + 0x88]
push ecx
xor bl, bl
mov esi, eax
call fcn.0048fd40
jmp 0x449e1c
xor eax, eax
mov dword [esp + 0xb0], edi
mov dword [ebp + 0x50], eax
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x14], 0x80000000
je 0x449e9c
movzx ecx, word [ebp + 8]
test cl, 0x20
jbe 0x449e9c
test ax, ax
ja 0x449e67
jne 0x449e4c
cmp word [esp + 0x2c], 2
jae 0x449e67
add ecx, 0xffffffe0
mov dword [esp + 0x14], 1
mov word [ebp + 8], cx
jmp 0x449e9c
mov dword [esp + 0x14], connect
jmp 0x449e9c
mov dword [esp + 0x14], 0
jmp 0x449e9c
cmp ax, 2
jne 0x449e94
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov bx, word [ebp + 8]
lea edx, [esp + 0x14]
push edx
push eax
push ecx
call fcn.00486d40
add esp, 0xc
jmp 0x449e9c
mov dword [esp + 0x14], 0x83000001
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.MSVCR90.dll_free]
mov esi, dword [esp + 0x38]
add esp, 4
mov dword [esp + 0x1c], 0
push esi
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.0051ed00
add esp, 0xa0
ret