Function at 0x40a970
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
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40e2bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x10544
call fcn.0040d7f0
push ebx
push esi
mov ebx, ecx
push edi
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], ebx
call fcn.0040d2da
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 - 0x34], edi
call fcn.0040c260
test eax, eax
jne 0x40aa25
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]
add esp, 0xc
push eax
call fcn.00402fb0
mov edx, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x2c]
shl edx, 5
add esp, 4
lea eax, [edx + ecx + 0x2728]
push edi
push eax
call fcn.00408a70
mov dword [ebp - 4], esi
jmp 0x40c1da
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]
mov ecx, dword [edx]
cmp ecx, 0xffffffff
jne 0x40aa92
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]
add esp, 0xc
push eax
call fcn.00402fb0
mov edx, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x2c]
shl edx, 5
add esp, 4
mov dword [ebx + 0x10], edi
lea eax, [edx + ecx + 0x2728]
push edi
push eax
call fcn.00408a70
jmp 0x40c1d3
mov eax, dword [ebx + 0x2c]
cmp eax, edi
jne 0x40aa9d
xor eax, eax
jmp 0x40aaa0
mov eax, dword [eax + 0x20]
push 0x900
push eax
push ecx
call dword [sym.imp.JVSDKP.dll_JVSP_RegisterNotify]
mov eax, dword [ebx + 0x24]
add esp, 0xc
cmp dword [eax + 0xa0], edi
jmp 0x40ae28
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 - 0x38], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], 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 0x40be81
mov eax, dword [ebp - 0x554]
lea edi, [ebp - 0x548]
cmp eax, 0x22
je 0x40af6c
lea edi, [ebp - 0x554]
mov esi, dword [edi]
mov edx, esi
and edx, 0xff
lea eax, [edx - 2]
cmp eax, 0x26
ja case.0x40af8a.15
xor ecx, ecx
mov cl, byte [eax + 0x40c22c]
jmp dword [ecx*4 + 0x40c1f4]
mov ecx, dword [edi + 4]
mov edx, ecx
mov eax, ecx
and edx, 0xffff
mov dword [ebp - 0x20], edx
mov edx, dword [edi + 8]
and edx, 0xff
mov dword [ebp - 0x30], edx
mov edx, dword [edi + 8]
shr eax, 0x10
shr edx, 8
shr esi, 8
cmp ecx, 2
mov dword [ebp - 0x4c], esi
jne 0x40b008
cmp dword [edi + 8], 0x101
jne 0x40b008
mov eax, dword [ebx + 0x44]
test eax, eax
je 0x40afed
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 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]
add esp, 0xc
xor edi, edi
jmp 0x40c06a
cmp eax, dword [ebp - 0x20]
jne 0x40b21f
mov ecx, dword [ebp - 0x30]
cmp ecx, 1
jne 0x40b0fc
cmp edx, ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x1c], esi
jne 0x40b346
mov eax, dword [ebx + 0x44]
test eax, eax
je 0x40b067
mov eax, dword [ebx + 0x30]
lea ecx, [ebp - 0x20]
push 0
push ecx
lea edx, [edi + 0xc]
push esi
push edx
push eax
mov dword [ebp - 0x20], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebx + 0x24]
inc dword [eax + 0xcc]
mov ecx, dword [ebx + 0x24]
add edi, 0xc
push esi
push edi
mov edx, dword [ecx]
push edx
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 - 0x28], eax
mov dword [ebp - 0x2c], 0
jne case.0x40af8a.15
mov eax, dword [ebx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebx + 0x70]
test eax, eax
jne 0x40b0c2
mov ecx, dword [ebx + 0x1c]
lea edx, [ebp - 0x70]
shl ecx, 8
add ecx, 3
push 0x10
push edx
mov dword [ebp - 0x100], ecx
push 0
jmp 0x40be10
mov edx, dword [ebx + 0x74]
mov ecx, dword [ebx + 0x1c]
mov eax, dword [ebx + 0x78]
mov dword [ebp - 0xfc], edx
shl ecx, 8
lea edx, [ebp - 0x70]
push 0x10
add ecx, 3
push edx
push 0
mov dword [ebp - 0x100], 0x22
mov dword [ebp - 0xf8], eax
mov dword [ebp - 0xf4], ecx
push 0x10
jmp 0x40be12
xor esi, esi
cmp dword [ebp - 0x2c], esi
je case.0x40af8a.15
cmp dword [ebp - 0x3c], eax
jne case.0x40af8a.15
mov eax, dword [ebp - 0x48]
inc eax
cmp ecx, eax
mov dword [ebp - 0x48], eax
je 0x40b128
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], esi
xor edi, edi
jmp 0x40c06a
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 - 0x30]
add esi, ecx
cmp edx, eax
mov dword [ebp - 0x1c], esi
jne case.0x40af8a.15
mov eax, dword [ebx + 0x44]
test eax, eax
je 0x40b18c
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 - 0x28], eax
mov dword [ebp - 0x2c], 0
jne case.0x40af8a.15
mov ecx, dword [ebx + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebx + 0x70]
test eax, eax
jne 0x40b1e5
mov edx, dword [ebx + 0x1c]
shl edx, 8
add edx, 3
mov dword [ebp - 0x100], edx
jmp 0x40b6d8
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 0x40b45f
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je case.0x40af8a.15
cmp dword [ebp - 0x3c], eax
je 0x40b23d
mov dword [ebp - 0x28], 0
xor edi, edi
jmp 0x40c06a
mov ecx, dword [ebp - 0x30]
cmp ecx, 1
jne 0x40b367
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x20]
inc eax
cmp eax, ecx
mov dword [ebp - 0x40], eax
je 0x40b265
mov dword [ebp - 0x28], 0
xor edi, edi
jmp 0x40c06a
mov eax, 1
mov dword [ebp - 0x1c], esi
cmp edx, eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x2c], eax
jne 0x40b346
mov eax, dword [ebx + 0x44]
test eax, eax
je 0x40b2a7
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 - 0x2c], 0
jne case.0x40af8a.15
mov edx, dword [ebx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebx + 0x70]
test eax, eax
jne 0x40b2f9
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 0x40bac8
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 0x40c06a
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 0x40c06a
mov eax, dword [ebp - 0x2c]
xor esi, esi
cmp eax, esi
jne 0x40b37a
mov dword [ebp - 0x28], esi
xor edi, edi
jmp 0x40c06a
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0x40], eax
je 0x40b38c
mov dword [ebp - 0x28], esi
xor edi, edi
jmp 0x40c06a
mov eax, dword [ebp - 0x48]
inc eax
cmp ecx, eax
mov dword [ebp - 0x48], eax
je 0x40b3a4
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], esi
xor edi, edi
jmp 0x40c06a
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 - 0x30]
add esi, ecx
cmp edx, eax
mov dword [ebp - 0x1c], esi
jne case.0x40af8a.15
mov eax, dword [ebx + 0x44]
test eax, eax
je 0x40b408
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 - 0x2c], 0
jne case.0x40af8a.15
mov ecx, dword [ebx + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebx + 0x70]
test eax, eax
jne 0x40b477
mov edx, dword [ebx + 0x1c]
lea eax, [ebp - 0x70]
shl edx, 8
push 0x10
add edx, 3
push eax
push 0
mov dword [ebp - 0x100], edx
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 0x40c06a
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]
add edx, 3
push 0x10
mov dword [ebp - 0xf8], ecx
push eax
mov dword [ebp - 0xf4], edx
mov edx, dword [ebx + 0x48]
push 0
lea ecx, [ebp - 0x100]
push 0x10
push ecx
push edx
mov dword [ebp - 0x100], 0x22
call dword [sym.imp.WS2_32.dll_sendto]
xor edi, edi
jmp 0x40c06a
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 0x40b6b1
cmp ecx, eax
je 0x40b4f0
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 0x40b58d
mov eax, dword [ebx + 0x70]
push 0x10
test eax, eax
lea eax, [ebp - 0x70]
mov dword [edi], 5
push eax
push 0
je 0x40b550
mov edx, dword [ebx + 0x48]
lea ecx, [ebp - 0x554]
push 0x10
push ecx
push edx
jmp 0x40b557
mov ecx, dword [ebx + 0x48]
push 4
push edi
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
mov edx, dword [ebx + 0x18]
lea eax, [ebp - 0x18]
inc edx
mov dword [ebx + 0xc], 0
push edx
push 0x8040
push eax
call sub.MFC42.DLL_CString::Format_1
mov ecx, dword [ebp - 0x18]
add esp, 0xc
push ecx
call fcn.00402fb0
add esp, 4
xor edi, edi
jmp 0x40c06a
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 0x40b626
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 0x40b5fe
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 0x40b614
mov edx, dword [ebx + 0x24]
add eax, 0x10
push 1
push eax
mov eax, dword [edx]
push ecx
push eax
jmp 0x40b645
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 0x40b645
mov ecx, dword [ebx + 0x2c]
test ecx, ecx
je 0x40b630
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
lea eax, [ebp - 0x18]
push edx
push 0x8041
push eax
call sub.MFC42.DLL_CString::Format_1
add esp, 0xc
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00402fb0
add esp, 4
xor edi, edi
jmp 0x40c06a
cmp ecx, eax
jne case.0x40af8a.15
mov ecx, 4
lea edi, [ebx + 0x4c]
lea esi, [ebp - 0x70]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
je case.0x40af8a.15
mov dword [ebp - 0x100], 5
mov edx, dword [ebx + 0x48]
lea eax, [ebp - 0x70]
push 0x10
push eax
push 0
lea ecx, [ebp - 0x100]
push 4
push ecx
push edx
call dword [sym.imp.WS2_32.dll_sendto]
xor edi, edi
jmp 0x40c06a
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 0x40b771
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 0x40b74a
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 0x40b754
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 0x40c06a
mov ecx, dword [ebx + 0x2c]
test ecx, ecx
je 0x40b77b
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 0x40c06a
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]
add esp, 0x10
push ecx
call fcn.00402fb0
add esp, 4
xor edi, edi
jmp 0x40c06a
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 0x40b69e
push str.ID_Verify_Failed
push edi
call esi
add esp, 8
test eax, eax
je 0x40b69e
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x60]
inc ecx
test eax, eax
mov dword [ebp - 0x24], ecx
jne case.0x40af8a.15
mov eax, ecx
cmp eax, 1
jle case.0x40af8a.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]
add esp, 0x10
push eax
call fcn.00402fb0
add esp, 4
xor edi, edi
jmp 0x40c06a
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.0x40af8a.15
mov ecx, dword [edi + 4]
test ecx, ecx
jne 0x40b8e2
mov ecx, dword [ebx + 0x30]
test ecx, ecx
mov ecx, dword [ebx + 0x2c]
je 0x40b898
shl eax, 5
push 1
lea eax, [eax + ecx + 0x2d68]
push eax
jmp 0x40b8a5
shl eax, 5
push 0
lea edx, [eax + ecx + 0x2d68]
push edx
call fcn.00408a70
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]
add esp, 0xc
push edx
call fcn.00402fb0
add esp, 4
push 0x20001
push 0
push 0
call dword [sym.imp.WINMM.dll_PlaySoundA]
xor edi, edi
jmp 0x40c06a
mov ecx, dword [ebx + 0x2c]
push 2
shl eax, 5
lea eax, [eax + ecx + 0x2d68]
push eax
call fcn.00408a70
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]
add esp, 0xc
push eax
call fcn.00402fb0
add esp, 4
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 0x40c06a
mov ecx, ebx
call fcn.0040c6c0
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.00408a70
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]
add esp, 0xc
push eax
call fcn.00402fb0
mov dword [ebx + 0xc], esi
mov ecx, dword [0x413794]
add esp, 4
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 0x40c06a
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 0x40c06a
mov eax, dword [ebx + 0x6c]
mov dword [ebp - 0x60], 1
test eax, eax
je case.0x40af8a.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 0x40c06a
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 0x40c06a
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 0x40bd4e
mov eax, 0xffffffef
lea esi, [edi + 0x11]
sub eax, edi
mov dword [ebp - 0x30], 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 - 0x30]
mov eax, dword [edi + 8]
add esi, 7
add ecx, esi
cmp ecx, eax
jb 0x40bc8b
mov eax, dword [ebp - 0x54c]
test eax, eax
jne case.0x40af8a.15
push 0x413568
call fcn.00402fb0
add esp, 4
xor edi, edi
jmp 0x40c06a
push 0x413554
call fcn.00402fb0
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 0x40bdbc
cmp eax, esi
jne 0x40bdb1
xor eax, eax
add ecx, 0x10
push 1
push ecx
jmp 0x40bdd5
mov eax, dword [eax + 0x20]
add ecx, 0x10
push 1
push ecx
jmp 0x40bdd5
cmp eax, esi
jne 0x40bdc4
xor eax, eax
jmp 0x40bdc7
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 [ebp - 0x28], esi
shr edi, 8
cmp eax, esi
mov dword [ebx + 0x1c], edi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x40], esi
jne 0x40be2a
shl edi, 8
lea edx, [ebp - 0x70]
add edi, 3
push 0x10
push edx
mov dword [ebp - 0x100], edi
push esi
push 4
mov ecx, dword [ebx + 0x48]
lea eax, [ebp - 0x100]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
xor edi, edi
jmp 0x40c06a
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 0x40c06a
mov dword [ebx + 0x20], 0
xor edi, edi
jmp 0x40c06a
mov eax, dword [ebx + 0x20]
inc edi
cmp eax, 1
jne 0x40befb
mov ecx, edi
and ecx, 0x8f
cmp cl, 0x8f
jne 0x40befb
cmp dword [ebx + 0x70], esi
jne 0x40beb6
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 0x40beea
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 0x40c055
cmp dword [ebx + 0x20], esi
je 0x40bf0f
mov dword [ebx + 0x20], esi
cmp dword [ebx + 0x6c], esi
je 0x40c055
mov eax, dword [ebx + 0x24]
cmp dword [eax + 0xa0], esi
je 0x40c055
mov eax, dword [ebp - 0x38]
inc eax
cmp eax, 2
mov dword [ebp - 0x38], eax
jne 0x40c049
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x100], 0x1e
lea eax, [ecx + 1]
cmp eax, 1
jle 0x40c01d
dec eax
mov esi, 0x4137a0
mov dword [ebp - 0x20], eax
mov edi, dword [esi]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x108]
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 - 0x108]
mov edi, eax
call sub.MFC42.DLL_CString::CString
lea eax, [ebp - 0x10c]
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 - 0x10c]
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 0x40bf59
cmp dword [ebp - 0x24], 2
jge 0x40c045
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]
add esp, 0xc
push edx
call fcn.00402fb0
add esp, 4
xor edi, edi
jmp 0x40c062
cmp eax, 3
jne 0x40c055
mov edi, 0x259
jmp 0x40c05d
cmp edi, 0x258
jle 0x40c062
cmp dword [ebx + 0x14], esi
je 0x40c077
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x40af29
jmp 0x40c0b8
mov eax, dword [ebx + 0x24]
cmp dword [eax + 0xa0], esi
je 0x40c093
cmp dword [ebp - 0x60], esi
jne 0x40c093
mov ecx, dword [ebx + 0x18]
inc ecx
push ecx
push 0x8047
jmp 0x40c09d
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]
add esp, 0xc
push eax
call fcn.00402fb0
add esp, 4
mov dword [ebx + 0xc], esi
mov eax, dword [ebx + 0x70]
test eax, eax
je 0x40c0f7
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 0x40c111
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 0x40c14f
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.0040c6c0
mov edx, dword [ebx + 0x24]
xor esi, esi
cmp dword [edx + 0x98], esi
je 0x40c170
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 0x40c197
cmp eax, esi
jne 0x40c18d
xor eax, eax
add ecx, 0x10
push esi
push ecx
jmp 0x40c1af
mov eax, dword [eax + 0x20]
add ecx, 0x10
push esi
push ecx
jmp 0x40c1af
cmp eax, esi
jne 0x40c19f
xor eax, eax
jmp 0x40c1a2
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.00408a70
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