Function at 0x40a950
Capabilities:
Download and write a file
Receive and write data from server to client
Receive data
Receive data on socket
Send data
Send data on socket
Send http request
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40e16b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x10544
call fcn.0040d6a0
push ebx
push esi
mov ebx, ecx
push edi
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x28], ebx
call fcn.0040d18a
xor edi, edi
mov ecx, ebx
mov dword [ebp - 4], edi
mov dword [ebx + 0x10], 1
mov dword [ebp - 0x60], edi
mov dword [ebx + 0x70], edi
mov dword [ebp - 0x38], edi
call fcn.0040c150
test eax, eax
jne 0x40aa02
mov eax, dword [ebx + 0x18]
or esi, 0xffffffff
lea ecx, [eax + eax*2]
lea edx, [eax + ecx*4]
mov eax, dword [0x413794]
shl edx, 4
mov dword [edx + eax + 0x1b0], esi
mov ecx, dword [ebx + 0x18]
inc ecx
lea edx, [ebp - 0x18]
push ecx
push 0x803e
push edx
mov dword [ebx + 0x10], edi
call sub.MFC42.DLL_CString::Format_1
mov eax, dword [ebp - 0x18]
push eax
call fcn.00402f90
mov edx, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x2c]
shl edx, 5
add esp, 0x10
lea eax, [edx + ecx + 0x2728]
push edi
push eax
call fcn.00408a50
mov dword [ebp - 4], esi
jmp 0x40c0cf
mov ecx, dword [ebx + 0x2c]
mov edx, dword [ecx + 0x1930]
push edx
call dword [sym.imp.JVSDKP.dll_JVSP_CreatePlayer]
mov ecx, dword [ebx + 0x24]
add esp, 4
mov dword [ecx], eax
mov edx, dword [ebx + 0x24]
cmp dword [edx], 0xffffffff
jne 0x40aa6a
mov eax, dword [ebx + 0x48]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebx + 0x18]
lea edx, [ebp - 0x18]
inc ecx
push ecx
push 0x803f
push edx
call sub.MFC42.DLL_CString::Format_1
mov eax, dword [ebp - 0x18]
push eax
call fcn.00402f90
mov edx, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x2c]
shl edx, 5
add esp, 0x10
mov dword [ebx + 0x10], edi
lea eax, [edx + ecx + 0x2728]
push edi
push eax
call fcn.00408a50
jmp 0x40c0c8
mov eax, dword [ebx + 0x2c]
cmp eax, edi
jne 0x40aa75
xor eax, eax
jmp 0x40aa78
mov eax, dword [eax + 0x20]
push 0x900
push eax
call dword [sym.imp.JVSDKP.dll_JVSP_RegisterNotify]
mov eax, dword [ebx + 0x24]
add esp, 8
cmp dword [eax + 0xa0], edi
je 0x40adff
lea ecx, [ebp - 0x1c]
call fcn.0040d18a
push edi
push edi
push edi
push edi
push edi
push edi
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 1
mov dword [ebp - 0x3c], edi
call sub.MFC42.DLL_CInternetSession::CInternetSession
push edi
push edi
push 1
push 1
push str.http:__www.jovetech.com_down_ser703_antong_ipsecu601.txt
lea ecx, [ebp - 0x120]
mov dword [ebp - 0x34], edi
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CInternetSession::OpenURL
mov esi, eax
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x34], esi
jmp 0x40aafa
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 4], 2
test eax, eax
je 0x40abcd
mov edx, dword [esi]
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call dword [edx + 0x60]
test eax, eax
je 0x40abcd
mov dword [ebp - 0x24], 0x41379c
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::TrimRight
lea ecx, [ebp - 0x40]
push 2
push ecx
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
push 0x413600
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [ebp - 0x40]
test eax, eax
sete byte [ebp - 0x11]
call sub.MFC42.DLL_CString::CString
mov al, byte [ebp - 0x11]
test al, al
je 0x40abc2
mov eax, dword [ebp - 0x38]
mov edi, dword [ebp - 0x24]
inc eax
add edi, 4
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x24], edi
mov edi, dword [ebp - 0x1c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x20]
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffc
push ecx
push edx
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::Right
mov ecx, dword [ebp - 0x24]
push eax
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi]
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, esi
call dword [eax + 0x60]
test eax, eax
jne 0x40ab26
mov eax, dword [ebp - 0x38]
test eax, eax
jg 0x40acd7
push 0
push 0
push 1
push 1
push str.http:__www.afdvr.com_down_ser703_antong_ipsecu601.txt
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CInternetSession::OpenURL
mov esi, eax
mov eax, 1
jmp 0x40ac01
test eax, eax
mov dword [ebp - 4], 2
je 0x40add8
mov edx, dword [esi]
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call dword [edx + 0x60]
test eax, eax
je 0x40accc
mov ecx, dword [ebp - 0x38]
lea edx, [ecx*4 + 0x41379c]
mov dword [ebp - 0x24], edx
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::TrimRight
lea eax, [ebp - 0x40]
push 2
push eax
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
push 0x413600
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [ebp - 0x40]
test eax, eax
sete byte [ebp - 0x11]
call sub.MFC42.DLL_CString::CString
mov al, byte [ebp - 0x11]
test al, al
je 0x40accc
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x24]
mov edi, dword [ebp - 0x1c]
inc ecx
add eax, 4
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x24], eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffc
push ecx
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::Right
mov ecx, dword [ebp - 0x24]
push eax
mov byte [ebp - 4], 8
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
mov edx, dword [esi]
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call dword [edx + 0x60]
test eax, eax
jne 0x40ac30
mov eax, dword [ebp - 0x38]
test eax, eax
jle 0x40adb1
mov ecx, dword [ebp - 0x38]
lea eax, [ecx + 1]
cmp eax, 1
jle 0x40adb1
dec eax
mov esi, 0x4137a0
mov dword [ebp - 0x28], eax
mov edi, dword [esi]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x40]
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffa
push ecx
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
lea ecx, [ebp - 0x40]
mov edi, eax
call sub.MFC42.DLL_CString::CString
lea eax, [ebp - 0x20]
push 4
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
mov ecx, dword [0x413794]
add esp, 4
mov dword [ecx + 0x1734], eax
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString
mov edx, dword [0x413794]
mov dword [ebp - 0x58], edi
mov word [ebp - 0x5c], 2
mov ax, word [edx + 0x1734]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebx + 0x24]
mov word [ebp - 0x5a], ax
mov dword [ebp - 0x1a4], 0x16
lea eax, [ebp - 0x5c]
mov edx, dword [ecx + 0xa4]
push 0x10
push eax
mov dword [ebp - 0x1a0], edx
mov edx, dword [ebx + 0x48]
push 0
lea ecx, [ebp - 0x1a4]
push 0x84
push ecx
push edx
call dword [sym.imp.WS2_32.dll_sendto]
mov eax, dword [ebp - 0x28]
add esi, 4
dec eax
mov dword [ebp - 0x28], eax
jne 0x40acef
lea ecx, [ebp - 0x120]
mov dword [ebx + 0x6c], 1
mov byte [ebp - 4], 1
call fcn.0040d496
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
jmp 0x40aed3
lea ecx, [ebp - 0x120]
mov dword [ebx + 0x10], 0
mov byte [ebp - 4], 1
call fcn.0040d496
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
jmp 0x40c0c8
mov ecx, dword [eax + 0x68]
mov dword [ebp - 0x58], ecx
mov dx, word [eax + 0x6c]
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [ebp - 0x58]
lea esi, [ebx + 0x4c]
mov word [ebp - 0x5a], ax
mov word [ebp - 0x5c], 2
mov ecx, dword [ebp - 0x5c]
mov eax, esi
mov dword [eax], ecx
mov ecx, dword [ebp - 0x54]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x50]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [ebx + 0x24]
lea edx, [ebp - 0x11]
mov ecx, dword [eax + 0xa8]
push ecx
push 0x4135c4
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov eax, dword [ebx + 0x24]
mov dword [ebp - 0x100], 6
add esp, 0xc
lea ecx, [eax + 0x70]
add eax, 0x80
push 0x10
push esi
mov edx, dword [ecx]
push edi
mov dword [ebp - 0xfc], edx
push 0x84
mov edx, dword [ecx + 4]
mov dword [ebp - 0xf8], edx
mov edx, dword [ecx + 8]
mov dword [ebp - 0xf4], edx
mov ecx, dword [ecx + 0xc]
mov dword [ebp - 0xf0], ecx
mov edx, dword [eax]
mov dword [ebp - 0xec], edx
mov ecx, dword [eax + 4]
mov dword [ebp - 0xe8], ecx
mov cl, byte [ebp - 0x11]
mov edx, dword [eax + 8]
mov dword [ebp - 0xe4], edx
lea edx, [ebp - 0x100]
mov eax, dword [eax + 0xc]
push edx
mov dword [ebp - 0xe0], eax
mov eax, dword [ebx + 0x48]
push eax
mov byte [ebp - 0xdc], cl
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [ebx + 0x6c], edi
xor eax, eax
mov dword [ebx + 0xc], 1
mov dword [ebp - 0x104], 0x10
xor edi, edi
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x104]
lea edx, [ebp - 0x70]
push ecx
mov ecx, dword [ebx + 0x48]
xor esi, esi
push edx
push esi
lea eax, [ebp - 0x554]
push 0x3b0
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recvfrom]
test eax, eax
jle 0x40bd7c
mov eax, dword [ebp - 0x554]
lea edi, [ebp - 0x548]
cmp eax, 0x22
je 0x40af43
lea edi, [ebp - 0x554]
mov esi, dword [edi]
mov edx, esi
and edx, 0xff
lea eax, [edx - 2]
cmp eax, 0x26
ja case.0x40af61.15
xor ecx, ecx
mov cl, byte [eax + 0x40c120]
jmp dword [ecx*4 + 0x40c0e8]
mov ecx, dword [edi + 4]
mov eax, ecx
and ecx, 0xffff
mov dword [ebp - 0x28], ecx
mov ecx, dword [edi + 8]
mov edx, ecx
shr eax, 0x10
and edx, 0xff
shr ecx, 8
shr esi, 8
cmp eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x4c], esi
jne 0x40b19f
cmp edx, 1
jne 0x40b08a
cmp ecx, edx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x1c], esi
jne 0x40b069
mov eax, dword [ebx + 0x44]
test eax, eax
je 0x40afec
mov ecx, dword [ebx + 0x30]
lea edx, [ebp - 0x20]
push 0
push edx
lea eax, [edi + 0xc]
push esi
push eax
push ecx
mov dword [ebp - 0x20], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebx + 0x24]
inc dword [eax + 0xcc]
mov edx, dword [ebx + 0x24]
add edi, 0xc
push esi
push edi
mov eax, dword [edx]
push eax
call dword [sym.imp.JVSDKP.dll_JVSP_WriteToStreamOneFrame]
mov ecx, dword [ebx + 0x20]
mov eax, 1
add esp, 0xc
cmp ecx, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], 0
jne case.0x40af61.15
mov ecx, dword [ebx + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebx + 0x70]
test eax, eax
je 0x40b3c5
mov eax, dword [ebx + 0x74]
mov edx, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x78]
mov dword [ebp - 0xfc], eax
shl edx, 8
lea eax, [ebp - 0x70]
push 0x10
add edx, 3
push eax
push 0
mov dword [ebp - 0x100], 0x22
mov dword [ebp - 0xf8], ecx
mov dword [ebp - 0xf4], edx
push 0x10
jmp 0x40b3de
mov ecx, dword [ebp - 0x4c]
lea esi, [edi + 0xc]
mov eax, ecx
lea edi, [ebp - 0x10554]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor edi, edi
jmp 0x40bf62
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je case.0x40af61.15
cmp dword [ebp - 0x3c], eax
jne case.0x40af61.15
mov eax, dword [ebp - 0x48]
inc eax
cmp edx, eax
mov dword [ebp - 0x48], eax
je 0x40b0b8
xor eax, eax
xor edi, edi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], eax
jmp 0x40bf62
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x4c]
lea esi, [edi + 0xc]
lea edi, [ebp + eax - 0x10554]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x1c]
mov ecx, eax
mov eax, dword [ebp - 0x20]
add esi, ecx
cmp eax, edx
mov dword [ebp - 0x1c], esi
jne case.0x40af61.15
mov eax, dword [ebx + 0x44]
test eax, eax
je 0x40b11c
lea edx, [ebp - 0x20]
push 0
mov eax, esi
push edx
mov edx, dword [ebx + 0x30]
lea ecx, [ebp - 0x10554]
push eax
push ecx
push edx
mov dword [ebp - 0x20], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebx + 0x24]
inc dword [eax + 0xcc]
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebx + 0x24]
push eax
lea ecx, [ebp - 0x10554]
mov eax, dword [edx]
push ecx
push eax
call dword [sym.imp.JVSDKP.dll_JVSP_WriteToStreamOneFrame]
mov ecx, dword [ebx + 0x20]
mov eax, 1
add esp, 0xc
cmp ecx, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], 0
jne case.0x40af61.15
mov ecx, dword [ebx + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebx + 0x70]
test eax, eax
je 0x40b3c5
mov eax, dword [ebx + 0x74]
mov edx, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x78]
mov dword [ebp - 0xfc], eax
shl edx, 8
lea eax, [ebp - 0x70]
push 0x10
add edx, 3
push eax
push 0
mov dword [ebp - 0x100], 0x22
mov dword [ebp - 0xf8], ecx
mov dword [ebp - 0xf4], edx
push 0x10
jmp 0x40b3de
cmp dword [ebp - 0x2c], 0
je case.0x40af61.15
cmp dword [ebp - 0x3c], eax
je 0x40b1bc
mov dword [ebp - 0x2c], 0
xor edi, edi
jmp 0x40bf62
mov eax, 1
cmp edx, eax
jne 0x40b2e0
mov edx, dword [ebp - 0x34]
inc edx
cmp edx, dword [ebp - 0x28]
mov dword [ebp - 0x34], edx
je 0x40b1e3
mov dword [ebp - 0x2c], 0
xor edi, edi
jmp 0x40bf62
cmp ecx, eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x1c], esi
jne 0x40b2bf
mov eax, dword [ebx + 0x44]
test eax, eax
je 0x40b220
mov edx, dword [ebx + 0x30]
lea eax, [ebp - 0x20]
push 0
push eax
lea ecx, [edi + 0xc]
push esi
push ecx
push edx
mov dword [ebp - 0x20], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebx + 0x24]
inc dword [eax + 0xcc]
mov eax, dword [ebx + 0x24]
add edi, 0xc
push esi
push edi
mov ecx, dword [eax]
push ecx
call dword [sym.imp.JVSDKP.dll_JVSP_WriteToStreamOneFrame]
mov eax, dword [ebx + 0x20]
add esp, 0xc
cmp eax, 1
mov dword [ebp - 0x30], 0
jne case.0x40af61.15
mov edx, dword [ebx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebx + 0x70]
test eax, eax
jne 0x40b272
mov eax, dword [ebx + 0x1c]
lea ecx, [ebp - 0x70]
shl eax, 8
add eax, 3
push 0x10
mov dword [ebp - 0x100], eax
push ecx
jmp 0x40b9bc
mov ecx, dword [ebx + 0x74]
mov eax, dword [ebx + 0x1c]
mov edx, dword [ebx + 0x78]
mov dword [ebp - 0xfc], ecx
shl eax, 8
lea ecx, [ebp - 0x70]
add eax, 3
push 0x10
mov dword [ebp - 0xf8], edx
push ecx
mov dword [ebp - 0xf4], eax
mov eax, dword [ebx + 0x48]
push 0
lea edx, [ebp - 0x100]
push 0x10
push edx
push eax
mov dword [ebp - 0x100], 0x22
call dword [sym.imp.WS2_32.dll_sendto]
xor edi, edi
jmp 0x40bf62
mov ecx, dword [ebp - 0x4c]
lea esi, [edi + 0xc]
mov edx, ecx
lea edi, [ebp - 0x10554]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor edi, edi
jmp 0x40bf62
mov eax, dword [ebp - 0x30]
xor ecx, ecx
cmp eax, ecx
jne 0x40b2f3
mov dword [ebp - 0x2c], ecx
xor edi, edi
jmp 0x40bf62
mov eax, dword [ebp - 0x28]
mov esi, dword [ebp - 0x34]
cmp esi, eax
je 0x40b307
mov dword [ebp - 0x2c], ecx
xor edi, edi
jmp 0x40bf62
mov eax, dword [ebp - 0x48]
inc eax
cmp edx, eax
mov dword [ebp - 0x48], eax
je 0x40b31f
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], ecx
xor edi, edi
jmp 0x40bf62
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x4c]
lea esi, [edi + 0xc]
lea edi, [ebp + eax - 0x10554]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x1c]
mov ecx, eax
mov eax, dword [ebp - 0x20]
add esi, ecx
cmp eax, edx
mov dword [ebp - 0x1c], esi
jne case.0x40af61.15
mov eax, dword [ebx + 0x44]
test eax, eax
je 0x40b383
lea edx, [ebp - 0x20]
push 0
mov eax, esi
push edx
mov edx, dword [ebx + 0x30]
lea ecx, [ebp - 0x10554]
push eax
push ecx
push edx
mov dword [ebp - 0x20], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebx + 0x24]
inc dword [eax + 0xcc]
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebx + 0x24]
push eax
lea ecx, [ebp - 0x10554]
mov eax, dword [edx]
push ecx
push eax
call dword [sym.imp.JVSDKP.dll_JVSP_WriteToStreamOneFrame]
mov eax, dword [ebx + 0x20]
add esp, 0xc
cmp eax, 1
mov dword [ebp - 0x30], 0
jne case.0x40af61.15
mov ecx, dword [ebx + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebx + 0x70]
test eax, eax
jne 0x40b02f
mov edx, dword [ebx + 0x1c]
shl edx, 8
add edx, 3
mov dword [ebp - 0x100], edx
lea eax, [ebp - 0x70]
push 0x10
push eax
push 0
push 4
mov edx, dword [ebx + 0x48]
lea ecx, [ebp - 0x100]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_sendto]
xor edi, edi
jmp 0x40bf62
mov ecx, dword [ebx + 0x14]
xor eax, eax
cmp ecx, eax
mov ecx, dword [ebx + 0x70]
mov dword [ebx + 0x6c], eax
mov dword [ebx + 0x20], eax
jne 0x40b5c6
cmp ecx, eax
je 0x40b422
mov eax, dword [edi + 4]
mov dword [ebp - 0x550], eax
mov ecx, dword [edi + 8]
mov dword [ebp - 0x54c], ecx
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x6c]
lea edx, [ebx + 0x4c]
mov dword [ebx + 0x4c], eax
mov eax, dword [ebp - 0x68]
mov dword [edx + 4], ecx
mov ecx, dword [ebp - 0x64]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x550]
mov dword [edx + 0xc], ecx
mov edx, dword [ebp - 0x54c]
mov ecx, dword [ebx + 0x24]
push edx
push eax
mov edx, dword [ecx]
push edx
call dword [sym.imp.JVSDKP.dll_JVSP_OpenStream]
add esp, 0xc
test eax, eax
jne 0x40b4a5
mov eax, dword [ebx + 0x70]
push 0x10
test eax, eax
lea eax, [ebp - 0x70]
mov dword [edi], 5
push eax
push 0
je 0x40b482
mov edx, dword [ebx + 0x48]
lea ecx, [ebp - 0x554]
push 0x10
push ecx
push edx
jmp 0x40b489
mov ecx, dword [ebx + 0x48]
push 4
push edi
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
mov edx, dword [ebx + 0x18]
mov dword [ebx + 0xc], 0
inc edx
push edx
push 0x8040
jmp 0x40b5aa
mov edx, dword [ebx + 0x24]
mov dword [edx + 0xc0], 0x353564a
mov eax, dword [ebx + 0x24]
mov ecx, dword [ebp - 0x550]
mov dword [eax + 0xc4], ecx
mov edx, dword [ebx + 0x24]
mov eax, dword [ebp - 0x54c]
mov dword [edx + 0xc8], eax
mov ecx, dword [ebx + 0x24]
mov dword [ecx + 0xcc], 0
mov eax, dword [0x413794]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x40b53e
mov ecx, dword [eax + 8]
lea edx, [ecx + ecx*2]
lea ecx, [ecx + edx*4]
shl ecx, 4
mov ecx, dword [ecx + eax + 0x1b0]
cmp ecx, 0xffffffff
je 0x40b516
push 0
push 0
push 0
push ecx
call dword [sym.imp.JVSDKP.dll_JVSP_SetVideoPreview]
mov eax, dword [0x413794]
add esp, 0x10
mov ecx, dword [ebx + 0x2c]
test ecx, ecx
jne 0x40b52c
mov edx, dword [ebx + 0x24]
add eax, 0x10
push 1
push eax
mov eax, dword [edx]
push ecx
push eax
jmp 0x40b55d
mov edx, dword [ebx + 0x24]
mov ecx, dword [ecx + 0x20]
add eax, 0x10
push 1
push eax
mov eax, dword [edx]
push ecx
push eax
jmp 0x40b55d
mov ecx, dword [ebx + 0x2c]
test ecx, ecx
je 0x40b548
mov ecx, dword [ecx + 0x20]
mov edx, dword [ebx + 0x18]
push 1
add edx, 2
shl edx, 4
add edx, eax
mov eax, dword [ebx + 0x24]
push edx
push ecx
mov ecx, dword [eax]
push ecx
call dword [sym.imp.JVSDKP.dll_JVSP_SetVideoPreview]
mov edx, dword [ebx + 0x50]
add esp, 0x10
mov dword [ebx + 0x14], 1
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, dword [ebx + 0x24]
mov dword [ecx + 0xac], eax
mov dx, word [ebx + 0x4e]
push edx
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [ebx + 0x24]
and eax, 0xffff
mov dword [ecx + 0xb0], eax
mov edx, dword [ebx + 0x18]
inc edx
push edx
push 0x8041
lea eax, [ebp - 0x18]
push eax
call sub.MFC42.DLL_CString::Format_1
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00402f90
add esp, 0x10
xor edi, edi
jmp 0x40bf62
cmp ecx, eax
jne case.0x40af61.15
mov ecx, 4
lea edi, [ebx + 0x4c]
lea esi, [ebp - 0x70]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
je case.0x40af61.15
mov dword [ebp - 0x100], 5
jmp 0x40b3d4
mov eax, dword [edi + 8]
mov edx, dword [ebx + 0x24]
mov ecx, dword [edi + 4]
push eax
mov eax, dword [edx]
push ecx
push eax
call dword [sym.imp.JVSDKP.dll_JVSP_OpenStream]
mov eax, dword [0x413794]
add esp, 0xc
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x40b669
mov ecx, dword [eax + 8]
lea edx, [ecx + ecx*2]
lea ecx, [ecx + edx*4]
shl ecx, 4
mov ecx, dword [ecx + eax + 0x1b0]
cmp ecx, 0xffffffff
je 0x40b642
push 0
push 0
push 0
push ecx
call dword [sym.imp.JVSDKP.dll_JVSP_SetVideoPreview]
mov eax, dword [0x413794]
add esp, 0x10
mov ecx, dword [ebx + 0x2c]
test ecx, ecx
je 0x40b64c
mov ecx, dword [ecx + 0x20]
mov edx, dword [ebx + 0x24]
add eax, 0x10
push 1
push eax
mov eax, dword [edx]
push ecx
push eax
call dword [sym.imp.JVSDKP.dll_JVSP_SetVideoPreview]
add esp, 0x10
xor edi, edi
jmp 0x40bf62
mov ecx, dword [ebx + 0x2c]
test ecx, ecx
je 0x40b673
mov ecx, dword [ecx + 0x20]
mov edx, dword [ebx + 0x18]
push 1
add edx, 2
shl edx, 4
add edx, eax
mov eax, dword [ebx + 0x24]
push edx
push ecx
mov ecx, dword [eax]
push ecx
call dword [sym.imp.JVSDKP.dll_JVSP_SetVideoPreview]
add esp, 0x10
xor edi, edi
jmp 0x40bf62
mov edx, dword [ebx + 0x18]
add edi, 4
inc edx
push edi
push edx
lea eax, [ebp - 0x18]
push 0x8008
push eax
call sub.MFC42.DLL_CString::Format_1
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00402f90
add esp, 0x14
xor edi, edi
jmp 0x40bf62
mov edx, dword [ebx + 0x18]
add edi, 4
inc edx
push edi
push edx
lea eax, [ebp - 0x18]
push 0x8008
push eax
call sub.MFC42.DLL_CString::Format_1
mov esi, dword [sym.imp.MSVCRT.dll__strcmpi]
push 0x4135b4
push edi
call esi
add esp, 0x18
test eax, eax
je 0x40b741
push str.ID_Verify_Failed
push edi
call esi
add esp, 8
test eax, eax
je 0x40b741
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x60]
inc ecx
test eax, eax
mov dword [ebp - 0x24], ecx
jne case.0x40af61.15
mov eax, ecx
cmp eax, 1
jle case.0x40af61.15
mov ecx, dword [ebx + 0x18]
push edi
inc ecx
lea edx, [ebp - 0x18]
push ecx
push 0x8008
push edx
call sub.MFC42.DLL_CString::Format_1
mov eax, dword [ebp - 0x18]
push eax
call fcn.00402f90
add esp, 0x14
xor edi, edi
jmp 0x40bf62
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00402f90
add esp, 4
xor edi, edi
jmp 0x40bf62
mov eax, dword [ebx + 0x18]
lea edx, [eax + eax*2]
lea ecx, [eax + edx*4]
mov edx, dword [0x413794]
shl ecx, 4
mov esi, dword [ecx + edx + 0x248]
test esi, esi
je case.0x40af61.15
mov ecx, dword [edi + 4]
test ecx, ecx
jne 0x40b7dc
mov ecx, dword [ebx + 0x30]
test ecx, ecx
mov ecx, dword [ebx + 0x2c]
je 0x40b795
shl eax, 5
push 1
lea eax, [eax + ecx + 0x2d68]
push eax
jmp 0x40b7a2
shl eax, 5
push 0
lea edx, [eax + ecx + 0x2d68]
push edx
call fcn.00408a50
mov eax, dword [ebx + 0x18]
lea ecx, [ebp - 0x18]
inc eax
push eax
push 0x8042
push ecx
call sub.MFC42.DLL_CString::Format_1
mov edx, dword [ebp - 0x18]
push edx
call fcn.00402f90
add esp, 0x10
push 0x20001
push 0
push 0
call dword [sym.imp.WINMM.dll_PlaySoundA]
xor edi, edi
jmp 0x40bf62
mov ecx, dword [ebx + 0x2c]
push 2
shl eax, 5
lea eax, [eax + ecx + 0x2d68]
push eax
call fcn.00408a50
mov ecx, dword [ebx + 0x18]
lea edx, [ebp - 0x18]
inc ecx
push ecx
push 0x8043
push edx
call sub.MFC42.DLL_CString::Format_1
mov eax, dword [ebp - 0x18]
push eax
call fcn.00402f90
add esp, 0x10
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
push 0x4000d
push eax
push 0xa9
call dword [sym.imp.WINMM.dll_PlaySoundA]
xor edi, edi
jmp 0x40bf62
mov ecx, ebx
call fcn.0040c5b0
mov edx, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x2c]
shl edx, 5
xor esi, esi
lea eax, [edx + ecx + 0x2d68]
push esi
push eax
call fcn.00408a50
mov ecx, dword [ebx + 0x18]
lea edx, [ebp - 0x18]
inc ecx
push ecx
push 0x8044
push edx
call sub.MFC42.DLL_CString::Format_1
mov eax, dword [ebp - 0x18]
push eax
call fcn.00402f90
mov dword [ebx + 0xc], esi
mov ecx, dword [0x413794]
add esp, 0x10
mov eax, dword [ecx + 8]
lea edx, [eax + eax*2]
lea eax, [eax + edx*4]
shl eax, 4
xor edi, edi
mov dword [eax + ecx + 0x24c], esi
jmp 0x40bf62
mov ecx, dword [ebx + 0x50]
mov dword [ebp - 0x60], 1
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov edx, dword [0x413794]
mov dword [ebp - 0x58], eax
mov word [ebp - 0x5c], 2
lea esi, [ebx + 0x5c]
mov cx, word [edx + 0x1734]
lea edx, [ebx + 0x4c]
mov word [ebp - 0x5a], cx
mov ecx, dword [ebp - 0x5c]
mov dword [edx], ecx
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x100], 6
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x54]
mov dword [edx + 8], eax
mov eax, esi
mov dword [edx + 0xc], ecx
lea edx, [edi + 0x14]
mov ecx, dword [edi + 0x14]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov edx, dword [edx + 0xc]
mov dword [eax + 0xc], edx
mov eax, dword [ebx + 0x24]
lea ecx, [eax + 0x70]
mov edx, dword [eax + 0x70]
mov dword [ebp - 0xfc], edx
mov edx, dword [ecx + 4]
mov dword [ebp - 0xf8], edx
mov edx, dword [ecx + 8]
mov dword [ebp - 0xf4], edx
lea edx, [eax + 0x80]
mov ecx, dword [ecx + 0xc]
mov dword [ebp - 0xf0], ecx
mov ecx, dword [edx]
mov dword [ebp - 0xec], ecx
mov ecx, dword [edx + 4]
mov dword [ebp - 0xe8], ecx
mov ecx, dword [edx + 8]
mov dword [ebp - 0xe4], ecx
lea ecx, [ebp - 0x11]
mov edx, dword [edx + 0xc]
mov dword [ebp - 0xe0], edx
mov eax, dword [eax + 0xa8]
push eax
push 0x4135c4
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, dword [ebx + 0x48]
mov dl, byte [ebp - 0x11]
add esp, 0xc
lea eax, [ebp - 0x100]
mov byte [ebp - 0xdc], dl
push 0x10
push esi
push 0
push 0x84
push eax
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
add edi, 4
mov edx, esi
push 0x10
mov dword [ebp - 0x100], 0x1a
mov eax, dword [edi]
push esi
mov dword [edx], eax
mov ecx, dword [edi + 4]
mov dword [edx + 4], ecx
mov eax, dword [edi + 8]
mov dword [edx + 8], eax
mov ecx, dword [edi + 0xc]
mov dword [edx + 0xc], ecx
mov eax, dword [ebx + 0x48]
push 0
lea edx, [ebp - 0x100]
push 4
push edx
push eax
call dword [sym.imp.WS2_32.dll_sendto]
xor edi, edi
jmp 0x40bf62
mov eax, dword [ebx + 0x6c]
mov dword [ebp - 0x60], 1
test eax, eax
je case.0x40af61.15
mov ecx, dword [ebx + 0x24]
lea eax, [ebp - 0x41]
mov edx, dword [ecx + 0xa8]
push edx
push 0x4135c4
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov eax, dword [ebx + 0x24]
mov dword [ebp - 0x100], 6
add esp, 0xc
lea ecx, [eax + 0x70]
add eax, 0x80
push 0x10
mov edx, dword [ecx]
mov dword [ebp - 0xfc], edx
mov edx, dword [ecx + 4]
mov dword [ebp - 0xf8], edx
mov edx, dword [ecx + 8]
mov dword [ebp - 0xf4], edx
mov ecx, dword [ecx + 0xc]
mov dword [ebp - 0xf0], ecx
mov edx, dword [eax]
mov dword [ebp - 0xec], edx
mov ecx, dword [eax + 4]
mov dword [ebp - 0xe8], ecx
mov cl, byte [ebp - 0x41]
mov edx, dword [eax + 8]
mov dword [ebp - 0xe4], edx
lea edx, [ebp - 0x70]
mov eax, dword [eax + 0xc]
push edx
mov dword [ebp - 0xe0], eax
mov byte [ebp - 0xdc], cl
mov ecx, dword [ebx + 0x48]
push 0
lea eax, [ebp - 0x100]
push 0x84
push eax
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [ebx + 0x6c], 0
xor edi, edi
jmp 0x40bf62
mov eax, dword [edi + 0x14]
mov edx, dword [edi + 4]
mov ecx, dword [edi + 0x18]
mov dword [ebx + 0x74], eax
mov dword [edi + 4], eax
mov eax, dword [ebx + 0x24]
mov dword [ebp - 0x118], edx
mov dx, word [edi + 8]
mov dword [ebx + 0x78], ecx
mov dword [edi + 8], ecx
lea ecx, [eax + 0x70]
mov word [ebp - 0x11a], dx
mov dword [ebx + 0x70], 1
mov word [ebp - 0x11c], 2
mov dword [edi], 0x22
mov dword [edi + 0xc], 6
mov esi, dword [ecx]
lea edx, [edi + 0x10]
add eax, 0x80
push 0x10
mov dword [edx], esi
mov esi, dword [ecx + 4]
mov dword [edx + 4], esi
mov esi, dword [ecx + 8]
mov dword [edx + 8], esi
mov ecx, dword [ecx + 0xc]
mov dword [edx + 0xc], ecx
mov ecx, dword [eax]
lea edx, [edi + 0x20]
mov dword [edi + 0x20], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
lea ecx, [ebp - 0x11c]
push ecx
mov dword [edx + 0xc], eax
mov edx, dword [ebx + 0x48]
push 0
push 0x3b0
push edi
push edx
call dword [sym.imp.WS2_32.dll_sendto]
xor edi, edi
jmp 0x40bf62
mov eax, dword [ebx + 0x2c]
push 0
add eax, 0x1c0
push 0
push 0x1009
mov eax, dword [eax + 0x20]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [edi + 8]
xor ecx, ecx
mov dword [ebp - 0x7b], ecx
mov byte [ebp - 0x7c], 0
mov dword [ebp - 0x77], ecx
mov word [ebp - 0x73], cx
test eax, eax
mov byte [ebp - 0x71], cl
jbe 0x40bc42
mov eax, 0xffffffef
lea esi, [edi + 0x11]
sub eax, edi
mov dword [ebp - 0x28], eax
mov edx, dword [edi + 4]
lea eax, [ebp - 0x7c]
push edx
push str._02d
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, dword [ebx + 0x2c]
add esp, 0xc
lea edx, [ebp - 0x7c]
add ecx, 0x1c0
push 0
push 0
push 0
push 0
push edx
push 0xffff
push 1
call sub.MFC42.DLL_CListCtrl::InsertItem
movsx ecx, byte [esi]
movsx edx, byte [esi - 1]
mov dword [ebp - 0x20], eax
movsx eax, byte [esi + 1]
push eax
push ecx
movsx eax, byte [esi - 2]
movsx ecx, byte [esi - 3]
push edx
push eax
movsx edx, byte [esi - 4]
push ecx
push edx
lea eax, [ebp - 0x7c]
push str._c_c:_c_c:_c_c
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edx, dword [ebp - 0x20]
add esp, 0x20
lea ecx, [ebp - 0x7c]
push ecx
mov ecx, dword [ebx + 0x2c]
push 1
push edx
add ecx, 0x1c0
call sub.MFC42.DLL_CListCtrl::SetItemText
movsx eax, byte [esi - 5]
push eax
lea ecx, [ebp - 0x7c]
push 0x413584
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebx + 0x2c]
add esp, 0xc
lea edx, [ebp - 0x7c]
add ecx, 0x1c0
push edx
push 2
push eax
call sub.MFC42.DLL_CListCtrl::SetItemText
mov ecx, dword [ebp - 0x28]
mov eax, dword [edi + 8]
add esi, 7
add ecx, esi
cmp ecx, eax
jb 0x40bb7f
mov eax, dword [ebp - 0x54c]
test eax, eax
jne case.0x40af61.15
push 0x413568
call fcn.00402f90
add esp, 4
xor edi, edi
jmp 0x40bf62
push 0x413554
call fcn.00402f90
mov edx, dword [edi + 8]
mov ecx, dword [ebx + 0x24]
mov eax, dword [edi + 4]
push edx
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.JVSDKP.dll_JVSP_OpenStream]
mov ecx, dword [0x413794]
xor esi, esi
add esp, 0x10
mov eax, dword [ecx + 0xc]
cmp eax, esi
mov eax, dword [ebx + 0x2c]
je 0x40bcb0
cmp eax, esi
jne 0x40bca5
xor eax, eax
add ecx, 0x10
push 1
push ecx
jmp 0x40bcc9
mov eax, dword [eax + 0x20]
add ecx, 0x10
push 1
push ecx
jmp 0x40bcc9
cmp eax, esi
jne 0x40bcb8
xor eax, eax
jmp 0x40bcbb
mov eax, dword [eax + 0x20]
mov edx, dword [ebx + 0x18]
push 1
add edx, 2
shl edx, 4
add edx, ecx
push edx
push eax
mov eax, dword [ebx + 0x24]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.JVSDKP.dll_JVSP_SetVideoPreview]
mov edi, dword [edi]
mov eax, dword [ebx + 0x70]
add esp, 0x10
mov dword [ebx + 0x20], 1
shr edi, 8
cmp eax, esi
mov dword [ebx + 0x1c], edi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x34], esi
jne 0x40bd25
mov ecx, dword [ebx + 0x48]
lea edx, [ebp - 0x70]
push 0x10
push edx
shl edi, 8
push esi
lea eax, [ebp - 0x100]
push 4
add edi, 3
push eax
push ecx
mov dword [ebp - 0x100], edi
call dword [sym.imp.WS2_32.dll_sendto]
xor edi, edi
jmp 0x40bf62
mov edx, dword [ebx + 0x74]
mov eax, dword [ebx + 0x78]
lea ecx, [ebp - 0x70]
push 0x10
mov dword [ebp - 0xfc], edx
push ecx
mov dword [ebp - 0xf8], eax
mov eax, dword [ebx + 0x48]
shl edi, 8
push esi
lea edx, [ebp - 0x100]
push 0x10
add edi, 3
push edx
push eax
mov dword [ebp - 0x100], 0x22
mov dword [ebp - 0xf4], edi
call dword [sym.imp.WS2_32.dll_sendto]
xor edi, edi
jmp 0x40bf62
mov dword [ebx + 0x20], 0
xor edi, edi
jmp 0x40bf62
mov eax, dword [ebx + 0x20]
inc edi
cmp eax, 1
jne 0x40bdf6
mov ecx, edi
and ecx, 0x8f
cmp cl, 0x8f
jne 0x40bdf6
cmp dword [ebx + 0x70], esi
jne 0x40bdb1
mov edx, dword [ebx + 0x1c]
lea eax, [ebx + 0x4c]
shl edx, 8
push 0x10
add edx, 0xc
push eax
push esi
mov dword [ebp - 0x100], edx
push 4
jmp 0x40bde5
mov eax, dword [ebx + 0x74]
mov edx, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x78]
mov dword [ebp - 0xfc], eax
shl edx, 8
lea eax, [ebx + 0x4c]
push 0x10
add edx, 0xc
push eax
push esi
mov dword [ebp - 0x100], 0x22
mov dword [ebp - 0xf8], ecx
mov dword [ebp - 0xf4], edx
push 0x10
mov edx, dword [ebx + 0x48]
lea ecx, [ebp - 0x100]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_sendto]
cmp edi, 0xc8
jle 0x40bf4d
cmp dword [ebx + 0x20], esi
je 0x40be0a
mov dword [ebx + 0x20], esi
cmp dword [ebx + 0x6c], esi
je 0x40bf4d
mov eax, dword [ebx + 0x24]
cmp dword [eax + 0xa0], esi
je 0x40bf4d
mov eax, dword [ebp - 0x40]
inc eax
cmp eax, 2
mov dword [ebp - 0x40], eax
jne 0x40bf41
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x100], 0x1e
lea eax, [ecx + 1]
cmp eax, 1
jle 0x40bf18
dec eax
mov esi, 0x4137a0
mov dword [ebp - 0x20], eax
mov edi, dword [esi]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x10c]
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffa
push ecx
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
lea ecx, [ebp - 0x10c]
mov edi, eax
call sub.MFC42.DLL_CString::CString
lea eax, [ebp - 0x108]
push 4
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
mov ecx, dword [0x413794]
add esp, 4
mov dword [ecx + 0x1734], eax
lea ecx, [ebp - 0x108]
call sub.MFC42.DLL_CString::CString
mov edx, dword [0x413794]
mov dword [ebp - 0x58], edi
mov word [ebp - 0x5c], 2
mov ax, word [edx + 0x1734]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebx + 0x24]
mov word [ebp - 0x5a], ax
lea eax, [ebp - 0x5c]
push 0x10
mov edx, dword [ecx + 0xa4]
push eax
mov dword [ebp - 0xfc], edx
mov edx, dword [ebx + 0x48]
push 0
lea ecx, [ebp - 0x100]
push 0x84
push ecx
push edx
call dword [sym.imp.WS2_32.dll_sendto]
mov eax, dword [ebp - 0x20]
add esi, 4
dec eax
mov dword [ebp - 0x20], eax
jne 0x40be54
cmp dword [ebp - 0x24], 2
jge 0x40bf3d
mov eax, dword [ebx + 0x18]
lea ecx, [ebp - 0x18]
inc eax
push eax
push 0x8045
push ecx
call sub.MFC42.DLL_CString::Format_1
mov edx, dword [ebp - 0x18]
push edx
call fcn.00402f90
add esp, 0x10
xor edi, edi
jmp 0x40bf5a
cmp eax, 3
jne 0x40bf4d
mov edi, 0x259
jmp 0x40bf55
cmp edi, 0x258
jle 0x40bf5a
cmp dword [ebx + 0x14], esi
je 0x40bf6f
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x40af00
jmp 0x40bfad
mov eax, dword [ebx + 0x24]
cmp dword [eax + 0xa0], esi
je 0x40bf8b
cmp dword [ebp - 0x60], esi
jne 0x40bf8b
mov ecx, dword [ebx + 0x18]
inc ecx
push ecx
push 0x8047
jmp 0x40bf95
mov ecx, dword [ebx + 0x18]
inc ecx
push ecx
push 0x8049
lea edx, [ebp - 0x18]
push edx
call sub.MFC42.DLL_CString::Format_1
mov eax, dword [ebp - 0x18]
push eax
call fcn.00402f90
add esp, 0x10
mov dword [ebx + 0xc], esi
mov eax, dword [ebx + 0x70]
test eax, eax
je 0x40bfec
mov ecx, dword [ebx + 0x74]
mov edx, dword [ebx + 0x78]
lea eax, [ebx + 0x4c]
push 0x10
push eax
mov dword [ebp - 0x550], ecx
push 0
mov dword [ebp - 0x554], 0x22
mov dword [ebp - 0x54c], edx
mov dword [ebp - 0x548], 5
push 0x10
lea ecx, [ebp - 0x554]
jmp 0x40c006
lea eax, [ebx + 0x4c]
push 0x10
push eax
push 0
mov dword [ebp - 0x100], 5
push 4
lea ecx, [ebp - 0x100]
mov edx, dword [ebx + 0x48]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_sendto]
mov eax, dword [ebx + 0x48]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebx + 0x24]
mov eax, dword [ecx]
cmp eax, 0xffffffff
je 0x40c044
push eax
call dword [sym.imp.JVSDKP.dll_JVSP_CloseStream]
mov edx, dword [ebx + 0x24]
mov eax, dword [edx]
push eax
call dword [sym.imp.JVSDKP.dll_JVSP_ReleasePlayer]
mov ecx, dword [ebx + 0x24]
add esp, 8
mov dword [ecx], 0xffffffff
mov ecx, ebx
call fcn.0040c5b0
mov edx, dword [ebx + 0x24]
xor esi, esi
cmp dword [edx + 0x98], esi
je 0x40c065
push 0x20001
push esi
push esi
call dword [sym.imp.WINMM.dll_PlaySoundA]
mov ecx, dword [0x413794]
mov eax, dword [ecx + 0xc]
cmp eax, esi
mov eax, dword [ebx + 0x2c]
je 0x40c08c
cmp eax, esi
jne 0x40c082
xor eax, eax
add ecx, 0x10
push esi
push ecx
jmp 0x40c0a4
mov eax, dword [eax + 0x20]
add ecx, 0x10
push esi
push ecx
jmp 0x40c0a4
cmp eax, esi
jne 0x40c094
xor eax, eax
jmp 0x40c097
mov eax, dword [eax + 0x20]
mov edx, dword [ebx + 0x18]
push esi
add edx, 2
shl edx, 4
add edx, ecx
push edx
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x2c]
shl eax, 5
push esi
lea edx, [eax + ecx + 0x2728]
push edx
call fcn.00408a50
mov dword [ebx + 0x14], esi
mov dword [ebx + 0x10], esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret