Function at 0x436530
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5f8
mov eax, dword [0x4441a0]
xor eax, ebp
mov dword [ebp - 0x234], eax
call fcn.00432610
push 0x446fe0
push 0x446dd8
call fcn.00436210
add esp, 8
lea eax, [ebp - 0x3c8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00436330
add esp, 4
test eax, eax
je 0x43658c
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x436843
mov edx, dword [str.GlobalMangoTv_Mini]
push edx
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4365ff
cmp dword [0x446dd4], 1
jne 0x4365f3
push 0
push 0x43c818
call dword [sym.imp.USER32.dll_FindWindowW]
mov dword [ebp - 0x3cc], eax
cmp dword [ebp - 0x3cc], 0
je 0x4365f3
push 1
mov eax, dword [ebp - 0x3cc]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xa
push 1
push 0x465
mov ecx, dword [ebp - 0x3cc]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
jmp 0x436843
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3d0], eax
cmp dword [ebp - 0x3d0], 5
jne 0x4366ea
xor edx, edx
mov word [ebp - 0x5e0], dx
push 0x206
push 0
lea eax, [ebp - 0x5de]
push eax
call fcn.004135e0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x5e0]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x5e0]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov dword [ebp - 0x3d4], eax
mov eax, dword [ebp - 0x3d4]
push eax
lea ecx, [ebp - 0x5ec]
call fcn.00402950
lea ecx, [ebp - 0x5ec]
push ecx
call fcn.00401e20
add esp, 4
mov dword [ebp - 0x5e8], eax
lea ecx, [ebp - 0x5ec]
call fcn.00401e00
cmp dword [ebp - 0x5e8], 0
je 0x4366ea
cmp dword [0x446dd4], 1
jne 0x4366e3
push 0
push 0x43c818
call dword [sym.imp.USER32.dll_FindWindowW]
mov dword [ebp - 0x5e4], eax
cmp dword [ebp - 0x5e4], 0
je 0x4366e3
push 1
mov edx, dword [ebp - 0x5e4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xa
push 1
push 0x465
mov eax, dword [ebp - 0x5e4]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
jmp 0x436843
mov ecx, dword [str.GlobalMangoTv_Mini]
push ecx
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x18], eax
push 0
mov edx, dword [ebp + 8]
push edx
push 0
mov ecx, 0x447498
call fcn.00402310
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0
push 0
push 0
lea ecx, [ebp - 0x2c]
call fcn.004022d0
push 0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 4]
push ecx
call sub.gdiplus.dll_GdiplusStartup
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0x2b7
mov dword [ebp - 8], 0x1db
lea ecx, [ebp - 0x230]
call fcn.00436b10
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x5f0], esp
push 0
call fcn.00401c70
push 0
push 0x860a0000
push 0x4457b0
push ecx
mov ecx, esp
mov dword [ebp - 0x5f4], esp
lea edx, [ebp - 0x14]
push edx
call fcn.00401c70
push 0
lea ecx, [ebp - 0x230]
call dword [sym.imp.SkinUI.dll_public_virtual:_struct_HWND______thiscall_CSkinWindow::Create_struct_HWND_____class_ATL::_U_RECT__wchar_t_const___unsigned_long_int__unsigned_long_int__class_ATL::_U_MENUorID__void__]
push 0
lea ecx, [ebp - 0x22c]
call fcn.00402060
cmp dword [0x446dd4], 1
jne 0x4367d4
push 5
lea ecx, [ebp - 0x22c]
call fcn.00401540
push 0
push 0
push 0
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x4367fe
lea ecx, [ebp - 0x48]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [ebp - 0x48]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x4367d4
mov eax, dword [ebp - 4]
push eax
call sub.gdiplus.dll_GdiplusShutdown
call dword [sym.imp.WS2_32.dll_WSACleanup]
call dword [sym.imp.ole32.dll_OleUninitialize]
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [ebp - 0x18], 0
je 0x436829
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x5f8], edx
lea ecx, [ebp - 0x230]
call fcn.00436980
mov eax, dword [ebp - 0x5f8]
mov ecx, dword [ebp - 0x234]
xor ecx, ebp
call fcn.00412dbc
mov esp, ebp
pop ebp
ret 0x10