Function at 0x495d00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x49eba8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x94
push ebx
push ebp
push esi
push edi
push 0x4d298c
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xbc]
mov ecx, 0x40119
xor ebx, ebx
mov edi, dword [eax*4 + 0x4d23e0]
xor eax, eax
mov dword [esp + 0x44], edi
mov ebp, 0x4a4830
rep stosd dword es:[edi], eax
or ecx, 0xffffffff
mov edi, str.next
mov dword [esp + 0x78], ecx
mov dword [esp + 0x10], 0x3ff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x84], ebx
mov esi, ecx
mov ecx, ebx
add esi, 0xb
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ecx
je 0x495dc1
push esi
call sub.MFC42.DLL_operatornew
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esp + 0x74], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, esi
mov dword [esp + 0x74], ecx
mov edi, dword [esp + 0x70]
mov edx, ecx
xor eax, eax
mov dword [esp + 0xac], ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x70]
cmp eax, ebx
mov dword [esp + 0x84], eax
lea ecx, [eax + 4]
lea edx, [eax + 6]
mov dword [esp + 0x88], ecx
lea ecx, [eax + 0xa]
mov dword [esp + 0x8c], edx
mov dword [esp + 0x90], ecx
je 0x495e16
mov dword [eax], 0x20000
mov edx, dword [esp + 0x8c]
mov edi, str.next
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ebx
je 0x495e2b
mov dword [edx], ecx
mov edi, str.next
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x90]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.next
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x58], ebp
mov esi, ecx
mov ecx, ebx
add esi, 0xb
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ecx
je 0x495e9b
push esi
call sub.MFC42.DLL_operatornew
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esp + 0x60], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, esi
mov dword [esp + 0x60], ecx
mov edi, dword [esp + 0x5c]
mov edx, ecx
xor eax, eax
mov byte [esp + 0xac], 1
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x5c]
cmp eax, ebx
mov dword [esp + 0x84], eax
lea ecx, [eax + 4]
lea edx, [eax + 6]
mov dword [esp + 0x88], ecx
lea ecx, [eax + 0xa]
mov dword [esp + 0x8c], edx
mov dword [esp + 0x90], ecx
je 0x495ef1
mov dword [eax], 0x20000
mov edx, dword [esp + 0x8c]
mov edi, str.next
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ebx
je 0x495f06
mov dword [edx], ecx
mov edi, str.next
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x64], ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0xb4]
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x90]
mov dword [esp + 0x1c], ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 0x40]
cmp eax, ebx
je 0x495f4e
mov eax, dword [eax]
add eax, 0xd
mov dword [esp + 0x54], eax
jmp 0x495f52
mov dword [esp + 0x54], ebx
push 0x10c240
mov dword [esp + 0x3c], 0x4a4830
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
call sub.MFC42.DLL_operatornew
mov edi, eax
mov ecx, 0x43090
xor eax, eax
mov dword [esp + 0x40], edi
rep stosd dword es:[edi], eax
add esp, 4
mov dword [esp + 0x40], 0x10c240
mov edi, dword [esp + 0x3c]
mov ecx, 0x43090
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0xbc]
lea ecx, [esp + 0x18]
mov byte [esp + 0xac], 2
lea esi, [edi*4 + 0x4d23f0]
call fcn.0049aadc
mov ecx, esi
mov byte [esp + 0xac], 3
call fcn.00499b00
push eax
push edi
lea ecx, [esp + 0x20]
push str.__02d_NET_DOG__CClientThread::My_File__HANDLE:0x_08X_
push ecx
call sub.MFC42.DLL_CString::Format
mov al, byte [0x4d2c9d]
mov ebp, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
add esp, 0x10
test al, 1
jne 0x496007
or al, 1
push 0x4d2ca4
mov byte [0x4d2c9d], al
mov dword [0x4d2ca0], 0x4a48a4
call ebp
push 0x4953e0
call fcn.0049acee
add esp, 4
cmp dword [0x4d2994], ebx
je 0x496071
mov eax, dword [0x4d2990]
cmp eax, ebx
je 0x496071
call eax
cmp eax, 1
jl 0x496071
mov al, byte [0x4d2c9d]
mov esi, dword [0x4d2384]
mov edi, dword [esp + 0x18]
test al, 1
jne 0x496057
or al, 1
push 0x4d2ca4
mov byte [0x4d2c9d], al
mov dword [0x4d2ca0], 0x4a48a4
call ebp
push 0x4953e0
call fcn.0049acee
add esp, 4
cmp dword [0x4d2994], ebx
je 0x496071
mov eax, dword [0x4d29a0]
cmp eax, ebx
je 0x496071
push esi
push edi
push 1
call eax
add esp, 0xc
lea ecx, [esp + 0x18]
mov byte [esp + 0xac], 2
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x28], ecx
lea eax, [ecx + 4]
lea edx, [ecx + 6]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x54]
add ecx, 0xa
cmp eax, ebx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ecx
jbe 0x4960dd
xor eax, eax
cmp eax, 0x4d28c0
je 0x4960bb
push 0x4d28c4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x4d297c]
inc ecx
mov dword [0x4d297c], ecx
xor ecx, ecx
cmp ecx, 0x4d28c0
je 0x4960dd
push 0x4d28c4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, str.INIT_init_INIT
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x48], 0x4a4830
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x4c], ebx
mov esi, ecx
mov ecx, ebx
add esi, 0x10
mov dword [esp + 0x50], ecx
je 0x49612c
push esi
call sub.MFC42.DLL_operatornew
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esp + 0x50], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, esi
mov dword [esp + 0x50], ecx
mov edi, dword [esp + 0x4c]
mov edx, ecx
xor eax, eax
mov byte [esp + 0xac], 0x12
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x4c]
cmp eax, ebx
lea ecx, [eax + 4]
lea edx, [eax + 6]
lea ebp, [eax + 0xa]
je 0x49615f
mov dword [eax], 0x20000
mov eax, dword [esp + 0xbc]
mov ax, word [eax*2 + 0x4d2478]
add ax, 0x2710
cmp ecx, ebx
je 0x496179
mov word [ecx], ax
mov edi, str.INIT_init_INIT
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 4
cmp edx, ebx
je 0x496190
mov dword [edx], ecx
mov edi, str.INIT_init_INIT
or ecx, 0xffffffff
xor eax, eax
mov esi, str.INIT_init_INIT
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ebp
mov edx, ecx
mov eax, dword [esp + 0xb4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 0x40]
cmp eax, ebx
je 0x4961c9
mov edx, dword [eax]
add edx, 0xd
jmp 0x4961cb
xor edx, edx
mov edi, str.INIT_init_INIT
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ecx + ebp + 1], edx
mov ecx, dword [esp + 0x50]
xor edx, edx
lea esi, [ecx - 1]
cmp esi, ebx
jle 0x496214
cmp edx, 0x400
jl 0x4961f5
xor edx, edx
mov ecx, dword [esp + 0xbc]
mov edi, dword [esp + 0x4c]
mov ecx, dword [ecx*4 + 0x4d23d0]
add ecx, edx
mov cl, byte [ecx]
xor byte [edi + eax], cl
inc eax
inc edx
cmp eax, esi
jl 0x4961eb
mov edx, dword [esp + 0x50]
mov esi, dword [esp + 0xbc]
mov eax, dword [esp + 0x4c]
xor ebp, ebp
push ebp
dec edx
push ebp
lea ebx, [esi*4 + 0x4d23f0]
push edx
push eax
mov ecx, ebx
call fcn.004990d0
mov ecx, dword [esp + 0x50]
dec ecx
cmp ecx, eax
je 0x4962b0
mov eax, dword [esp + 0x4c]
mov esi, 0x4a4830
cmp eax, ebp
mov dword [esp + 0x48], esi
je 0x49625f
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x4c], ebp
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x38], esi
cmp eax, ebp
je 0x496278
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x3c], ebp
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x58], esi
cmp eax, ebp
je 0x496291
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x5c], ebp
mov eax, dword [esp + 0x70]
mov dword [esp + 0x6c], esi
cmp eax, ebp
je 0x4962a6
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, 0xfffd678b
jmp 0x497aec
inc word [esi*2 + 0x4d2478]
lea ecx, [esp + 0x18]
call fcn.0049aadc
mov edx, dword [esp + 0x20]
push esi
push edx
lea eax, [esp + 0x20]
push str.__d___ThreadID_d__NET_DOG__CClientThread::My_File__________Begin_Send
push eax
mov byte [esp + 0xbc], 0x13
call sub.MFC42.DLL_CString::Format
mov al, byte [0x4d2c9d]
add esp, 0x10
test al, 1
jne 0x496313
or al, 1
push 0x4d2ca4
mov byte [0x4d2c9d], al
mov dword [0x4d2ca0], 0x4a48a4
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x4953e0
call fcn.0049acee
add esp, 4
cmp dword [0x4d2994], ebp
je 0x496381
mov eax, dword [0x4d2990]
cmp eax, ebp
je 0x496381
call eax
cmp eax, 2
jl 0x496381
mov al, byte [0x4d2c9d]
mov esi, dword [0x4d2384]
mov edi, dword [esp + 0x18]
test al, 1
jne 0x496367
or al, 1
push 0x4d2ca4
mov byte [0x4d2c9d], al
mov dword [0x4d2ca0], 0x4a48a4
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x4953e0
call fcn.0049acee
add esp, 4
cmp dword [0x4d2994], ebp
je 0x496381
mov eax, dword [0x4d29a0]
cmp eax, ebp
je 0x496381
push esi
push edi
push 2
call eax
add esp, 0xc
lea ecx, [esp + 0x18]
mov byte [esp + 0xac], 0x12
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x54]
mov byte [esp + 0x17], 1
cmp eax, ebp
jbe 0x49682f
xor ecx, ecx
cmp ecx, 0x4d28a0
je 0x4963b8
push 0x4d28a4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x4d2980]
xor edx, edx
inc ecx
cmp edx, 0x4d28a0
mov dword [0x4d2980], ecx
je 0x4963da
push 0x4d28a4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [esp + 0x44]
mov ecx, 0x40119
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, str.next
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push eax
add ecx, 0x40e
push eax
push ecx
push edx
mov ecx, ebx
call fcn.004990a0
mov ebp, eax
test ebp, ebp
jle 0x49656f
xor edx, edx
xor ecx, ecx
test ebp, ebp
jle 0x496446
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0xbc]
cmp edx, 0x400
jl 0x49642d
xor edx, edx
mov eax, dword [edi*4 + 0x4d23d0]
mov bl, byte [ecx + esi]
add eax, edx
mov al, byte [eax]
xor bl, al
mov byte [ecx + esi], bl
inc ecx
inc edx
cmp ecx, ebp
jl 0x496423
mov edi, str.next
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0x40e
cmp ecx, ebp
jne 0x496f41
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x49646f
mov ax, word [eax]
jmp 0x496471
xor eax, eax
mov ecx, dword [esp + 0xbc]
cmp ax, word [ecx*2 + 0x4d2478]
jne 0x496f41
mov eax, dword [esp + 0x30]
test eax, eax
je 0x496492
mov edx, dword [eax]
jmp 0x496494
xor edx, edx
mov edi, str.next
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0x404
cmp edx, ecx
jne 0x496f41
mov edx, dword [esp + 0x34]
mov esi, str.next
mov eax, edx
mov bl, byte [eax]
mov cl, bl
cmp bl, byte [esi]
jne 0x4964df
test cl, cl
je 0x4964db
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [esi + 1]
jne 0x4964df
add eax, 2
add esi, 2
test cl, cl
jne 0x4964bb
xor eax, eax
jmp 0x4964e4
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x496f41
mov edi, str.next
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
mov eax, dword [esp + 0x1c]
dec ecx
test eax, eax
lea esi, [ecx + edx + 5]
mov edx, dword [esp + 0xbc]
mov ecx, 0x100
mov edi, dword [edx*4 + 0x4d23d0]
rep movsd dword es:[edi], dword [esi]
jne 0x496536
mov edi, str.next
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x34]
not ecx
dec ecx
mov ecx, dword [ecx + eax + 1]
dec ecx
mov dword [esp + 0x10], ecx
xor ecx, ecx
cmp ecx, 0x4d2940
je 0x49654b
push 0x4d2944
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x4d2974]
xor edx, edx
inc ecx
cmp edx, 0x4d2940
mov dword [0x4d2974], ecx
je 0x49656d
push 0x4d2944
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebp, ebp
je 0x496daa
jl 0x4970cb
mov edi, dword [esp + 0x44]
mov ebx, dword [esp + 0xbc]
mov ecx, 0x40119
xor eax, eax
rep stosd dword es:[edi], eax
mov ax, word [ebx*2 + 0x4d2478]
mov ecx, dword [esp + 0x2c]
add ax, 0x2710
test ecx, ecx
je 0x4965a6
mov word [ecx], ax
mov al, byte [esp + 0x17]
test al, al
je 0x496693
mov edx, dword [esp + 0xb4]
mov eax, dword [edx + 0x44]
test eax, eax
je 0x4965c4
mov ecx, dword [eax]
jmp 0x4965c6
xor ecx, ecx
lea esi, [ecx + 0xd]
mov ecx, dword [esp + 0x10]
cmp esi, ecx
jbe 0x4965d5
mov eax, ecx
jmp 0x4965e2
test eax, eax
je 0x4965dd
mov eax, dword [eax]
jmp 0x4965df
xor eax, eax
add eax, 0xd
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x4965f8
mov dword [ecx], eax
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4965f8
mov ecx, dword [eax]
jmp 0x4965fa
xor ecx, ecx
mov esi, dword [edx + 0x34]
mov edi, dword [esp + 0x34]
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 eax, dword [esp + 0x28]
test eax, eax
je 0x49661d
mov dword [eax], 0x20000
lea ecx, [esp + 0x28]
call fcn.00495cf0
mov ebp, eax
lea ecx, [esp + 0x28]
add ebp, 0xa
call fcn.00495cf0
add eax, 0xa
xor esi, esi
xor ecx, ecx
test eax, eax
jle 0x496663
cmp esi, 0x400
jl 0x496649
xor esi, esi
mov edi, dword [ebx*4 + 0x4d23d0]
mov edx, esi
add edx, edi
mov edi, dword [esp + 0x28]
mov dl, byte [edx]
xor byte [ecx + edi], dl
inc ecx
inc esi
cmp ecx, eax
jl 0x49663f
mov esi, dword [esp + 0xbc]
mov eax, dword [esp + 0x28]
push 0
push 0
lea ebx, [esi*4 + 0x4d23f0]
push ebp
push eax
mov ecx, ebx
call fcn.004990d0
mov ecx, dword [esp + 0x1c]
lea edx, [ecx + ebp - 0xa]
mov dword [esp + 0x1c], edx
jmp 0x496812
mov ecx, dword [esp + 0x40]
mov edi, dword [esp + 0x3c]
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esp + 0x18], 0
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x10]
lea edx, [eax - 1]
cmp edx, ecx
jbe 0x4966c6
mov eax, ecx
jmp 0x4966c7
dec eax
mov edi, dword [esp + 0xb4]
mov edx, dword [edi + 0x44]
test edx, edx
je 0x4966d9
mov ecx, dword [edx]
jmp 0x4966db
xor ecx, ecx
mov esi, dword [esp + 0x1c]
add ecx, 0xd
cmp esi, ecx
jae 0x49671f
test edx, edx
je 0x4966ee
mov ecx, dword [edx]
jmp 0x4966f0
xor ecx, ecx
sub ecx, esi
add ecx, 0xd
cmp ecx, eax
ja 0x496708
test edx, edx
je 0x496701
mov eax, dword [edx]
jmp 0x496703
xor eax, eax
sub eax, esi
add eax, 0xd
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x18]
push ecx
push eax
push edx
push esi
push edi
call fcn.00494750
add esp, 0x14
jmp 0x496774
mov ecx, dword [esp + 0xc0]
cmp ecx, 0xffffffff
je 0x496708
mov esi, dword [esp + 0x64]
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [esp + 0x44]
push eax
push esi
push ecx
call fcn.004945a0
mov ecx, dword [esp + 0xd8]
xor edx, edx
add esp, 0x14
mov dword [ecx], eax
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x34]
cmp edx, ecx
sbb eax, eax
add esi, ecx
mov edx, ecx
mov dword [esp + 0x64], esi
mov esi, dword [esp + 0x3c]
inc eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test eax, eax
jne 0x49682f
mov eax, dword [esp + 0x28]
test eax, eax
je 0x49678a
mov dword [eax], 0x20000
mov eax, dword [esp + 0x30]
test eax, eax
je 0x496798
mov ecx, dword [esp + 0x18]
mov dword [eax], ecx
lea ecx, [esp + 0x28]
call fcn.00495cf0
mov ebp, eax
lea ecx, [esp + 0x28]
add ebp, 0xa
call fcn.00495cf0
add eax, 0xa
xor esi, esi
xor ecx, ecx
test eax, eax
jle 0x4967de
cmp esi, 0x400
jl 0x4967c4
xor esi, esi
mov edi, dword [ebx*4 + 0x4d23d0]
mov edx, esi
add edx, edi
mov edi, dword [esp + 0x28]
mov dl, byte [edx]
xor byte [ecx + edi], dl
inc ecx
inc esi
cmp ecx, eax
jl 0x4967ba
mov ecx, dword [esp + 0xbc]
mov eax, dword [esp + 0x28]
push 0
push 0
lea ebx, [ecx*4 + 0x4d23f0]
push ebp
push eax
mov ecx, ebx
call fcn.004990d0
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0xbc]
add eax, edx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x54]
inc word [esi*2 + 0x4d2478]
cmp ecx, eax
mov byte [esp + 0x17], 0
ja 0x4963a3
lea ecx, [esp + 0x10]
call fcn.0049aadc
mov ebx, dword [esp + 0xbc]
mov edx, dword [esp + 0x20]
push ebx
push edx
lea eax, [esp + 0x18]
push str.__d___ThreadID_d__NET_DOG__CClientThread::My_File__________End_Send
push eax
mov byte [esp + 0xbc], 0x4f
call sub.MFC42.DLL_CString::Format
mov al, byte [0x4d2c9d]
add esp, 0x10
test al, 1
jne 0x496891
or al, 1
push 0x4d2ca4
mov byte [0x4d2c9d], al
mov dword [0x4d2ca0], 0x4a48a4
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x4953e0
call fcn.0049acee
add esp, 4
mov eax, dword [0x4d2994]
test eax, eax
je 0x4968c4
mov eax, dword [0x4d2990]
test eax, eax
je 0x4968c4
call eax
cmp eax, 2
jl 0x4968c4
mov ecx, dword [0x4d2384]
mov edx, dword [esp + 0x10]
push 0
push 2
push ecx
push edx
push 2
call fcn.00494c70
add esp, 0x14
lea ecx, [esp + 0x10]
mov byte [esp + 0xac], 0x12
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x1c]
cmp ecx, eax
jne 0x496a55
mov ecx, dword [esp + 0xc4]
cmp dword [ecx], 0xffffffff
jne 0x496a55
mov ebp, dword [esp + 0x44]
mov ecx, 0x40119
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
mov edi, str.next
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push eax
add ecx, 0x40e
push eax
push ecx
push ebp
lea ecx, [ebx*4 + 0x4d23f0]
call fcn.004990a0
xor esi, esi
xor ecx, ecx
test eax, eax
jle 0x496954
cmp esi, 0x400
jl 0x496938
xor esi, esi
mov edi, dword [ebx*4 + 0x4d23d0]
mov edx, esi
add edx, edi
mov edi, dword [esp + 0x44]
mov dl, byte [edx]
xor byte [ecx + edi], dl
inc ecx
inc esi
cmp ecx, eax
jl 0x49692e
mov ebp, edi
mov edi, str.next
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edi, dword [ebx*4 + 0x4d23d0]
not ecx
dec ecx
lea esi, [ecx + ebp + 0xf]
mov ecx, 0x100
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x40119
mov edi, ebp
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x49698c
mov dword [eax], 0x20000
mov ax, word [ebx*2 + 0x4d2478]
mov ecx, dword [esp + 0x2c]
add ax, 0x2710
test ecx, ecx
je 0x4969a3
mov word [ecx], ax
push 0xb
lea ecx, [esp + 0x2c]
call fcn.00497b30
mov eax, dword [esp + 0x34]
mov ecx, dword [str.END_end_END]
mov dword [eax], ecx
mov edx, dword [0x4c7034]
mov dword [eax + 4], edx
mov cx, word [0x4c7038]
mov word [eax + 8], cx
mov dl, byte [0x4c703a]
lea ecx, [esp + 0x28]
mov byte [eax + 0xa], dl
call fcn.00495cf0
mov ebp, eax
lea ecx, [esp + 0x28]
add ebp, 0xa
call fcn.00495cf0
add eax, 0xa
xor esi, esi
xor ecx, ecx
test eax, eax
jle 0x496a1d
cmp esi, 0x400
jl 0x496a03
xor esi, esi
mov edi, dword [ebx*4 + 0x4d23d0]
mov edx, esi
add edx, edi
mov edi, dword [esp + 0x28]
mov dl, byte [edx]
xor byte [ecx + edi], dl
inc ecx
inc esi
cmp ecx, eax
jl 0x4969f9
mov eax, dword [esp + 0x28]
push 0
push 0
push ebp
push eax
lea ecx, [ebx*4 + 0x4d23f0]
call fcn.004990d0
push 0x4d2880
lea ecx, [esp + 0x68]
call fcn.004948f0
mov eax, dword [0x4d2960]
lea ecx, [esp + 0x64]
inc eax
mov dword [0x4d2960], eax
call fcn.00493850
mov esi, dword [esp + 0xc4]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x496a70
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0xffffffff
mov edi, dword [esp + 0x44]
mov ecx, 0x40119
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00495cc0
xor esi, esi
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x64], esi
mov byte [esp + 0x54], 0
call fcn.0049aadc
lea ecx, [esp + 0x10]
mov byte [esp + 0xac], 0x57
call fcn.0049aadc
mov edx, dword [esp + 0x20]
push ebx
push edx
lea eax, [esp + 0x18]
push str.__d___ThreadID_d__NET_DOG__CClientThread::My_File__________Begin_Recv
push eax
mov byte [esp + 0xbc], 0x58
call sub.MFC42.DLL_CString::Format
push esi
push esi
push esi
push esi
push 3
call fcn.00494c70
add esp, 0x24
cmp eax, 2
jl 0x496afd
mov ecx, dword [0x4d2384]
mov edx, dword [esp + 0x10]
push esi
push 2
push ecx
push edx
push 2
call fcn.00494c70
add esp, 0x14
lea ecx, [esp + 0x10]
mov byte [esp + 0xac], 0x57
call sub.MFC42.DLL_CString::CString
inc word [ebx*2 + 0x4d2478]
mov byte [esp + 0x17], 1
push 0x4d28a0
lea ecx, [esp + 0xa0]
xor esi, esi
call fcn.004948f0
mov eax, dword [0x4d2980]
lea ecx, [esp + 0x9c]
inc eax
mov dword [0x4d2980], eax
call fcn.00493850
mov ecx, dword [esp + 0x40]
mov edi, dword [esp + 0x3c]
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push esi
and ecx, 3
push esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x44]
push 0xa
push eax
lea ecx, [ebx*4 + 0x4d23f0]
call fcn.004990a0
mov ebp, eax
test ebp, ebp
jle 0x496cbc
xor ecx, ecx
test ebp, ebp
jle 0x496ba6
cmp esi, 0x400
jl 0x496b8c
xor esi, esi
mov edx, dword [ebx*4 + 0x4d23d0]
mov eax, esi
add eax, edx
mov edx, dword [esp + 0x3c]
mov al, byte [eax]
xor byte [edx + ecx], al
inc ecx
inc esi
cmp ecx, ebp
jl 0x496b82
cmp ebp, 0xa
jne 0x4976ba
lea ecx, [esp + 0x28]
call fcn.00495ce0
cmp ax, word [ebx*2 + 0x4d2478]
jne 0x4976ba
lea ecx, [esp + 0x28]
call fcn.00495cf0
cmp eax, 0x10c240
ja 0x4976ba
push 0x4d2940
lea ecx, [esp + 0x98]
call fcn.004948f0
mov ecx, dword [0x4d2974]
inc ecx
mov dword [0x4d2974], ecx
lea ecx, [esp + 0x94]
call fcn.00493850
mov edi, dword [esp + 0x34]
push 0
push 0
lea ecx, [esp + 0x30]
call fcn.00495cf0
push eax
push edi
lea ecx, [ebx*4 + 0x4d23f0]
call fcn.004990a0
mov ebp, eax
test ebp, ebp
jle 0x496cbc
xor ecx, ecx
test ebp, ebp
jle 0x496c57
cmp esi, 0x400
jl 0x496c3d
xor esi, esi
mov edx, dword [ebx*4 + 0x4d23d0]
mov eax, esi
add eax, edx
mov edx, dword [esp + 0x34]
mov al, byte [eax]
xor byte [edx + ecx], al
inc ecx
inc esi
cmp ecx, ebp
jl 0x496c33
mov ecx, dword [esp + 0x34]
mov edi, dword [ebx*4 + 0x4d23d0]
lea esi, [ecx + ebp - 0x400]
mov ecx, 0x100
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x28]
call fcn.00495cf0
cmp eax, ebp
je 0x496c95
lea ecx, [esp + 0x28]
call fcn.00495cf0
add eax, dword [esp + 0x1c]
cmp eax, 0x100464
jae 0x49762f
push 0x4d2940
lea ecx, [esp + 0x80]
call fcn.004948f0
mov eax, dword [0x4d2974]
lea ecx, [esp + 0x7c]
inc eax
mov dword [0x4d2974], eax
call fcn.00493850
test ebp, ebp
je 0x49759d
jl 0x497746
lea ecx, [esp + 0x28]
call fcn.00495cf0
cmp eax, 0x40b
jne 0x496cf5
mov edx, dword [esp + 0x34]
push 0xb
push str.END_end_END
push edx
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x4977ff
mov ecx, dword [esp + 0x74]
mov esi, dword [esp + 0x70]
mov edi, dword [esp + 0x5c]
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 cx, word [ebx*2 + 0x4d2478]
add cx, 0x2710
push ecx
lea ecx, [esp + 0x88]
call fcn.00497b10
mov al, byte [esp + 0x17]
test al, al
je 0x4973f5
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x28]
call fcn.00495cf0
mov ebp, dword [esp + 0x44]
mov edx, dword [esp + 0x1c]
mov ecx, eax
lea edi, [edx + ebp]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x28]
call fcn.00495cf0
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0xb8]
add edi, eax
xor eax, eax
mov edx, dword [ecx + 0x54]
mov dword [esp + 0x1c], edi
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x4972f6
mov eax, dword [esp + 0x34]
or ecx, 0xffffffff
lea edi, [eax + 0xd]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x4972f6
mov byte [esp + 0x54], al
jmp 0x4974d8
xor ecx, ecx
cmp ecx, 0x4d2940
je 0x496dbf
push 0x4d2944
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x4d2984]
xor edx, edx
inc ecx
cmp edx, 0x4d2940
mov dword [0x4d2984], ecx
je 0x496de1
push 0x4d2944
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call dword [sym.imp.MSVCRT.dll__errno]
lea ecx, [esp + 0x10]
call fcn.0049aadc
mov eax, dword [esp + 0xbc]
mov ecx, dword [esp + 0x20]
push eax
push ecx
lea edx, [esp + 0x18]
push str.__d___ThreadID_d__NET_DOG__CClientThread::My_File
push edx
mov byte [esp + 0xbc], 0x31
call sub.MFC42.DLL_CString::Format
mov al, byte [0x4d2c9d]
add esp, 0x10
test al, 1
jne 0x496e4d
mov bl, al
push 0x4d2ca4
or bl, 1
mov dword [0x4d2ca0], 0x4a48a4
mov byte [0x4d2c9d], bl
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x4953e0
call fcn.0049acee
add esp, 4
mov eax, dword [0x4d2994]
test eax, eax
je 0x496ec0
mov eax, dword [0x4d2990]
test eax, eax
je 0x496e65
call eax
test eax, eax
jl 0x496ec0
mov al, byte [0x4d2c9d]
mov esi, dword [0x4d2384]
mov edi, dword [esp + 0x10]
test al, 1
jne 0x496ea5
mov bl, al
push 0x4d2ca4
or bl, 1
mov dword [0x4d2ca0], 0x4a48a4
mov byte [0x4d2c9d], bl
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x4953e0
call fcn.0049acee
add esp, 4
mov eax, dword [0x4d2994]
test eax, eax
je 0x496ec0
mov eax, dword [0x4d29a0]
test eax, eax
je 0x496ec0
push esi
push edi
push 0
call eax
add esp, 0xc
lea ecx, [esp + 0x10]
mov byte [esp + 0xac], 0x12
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x4c]
xor edi, edi
mov esi, 0x4a4830
cmp eax, edi
mov dword [esp + 0x48], esi
je 0x496ef1
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x4c], edi
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x38], esi
cmp eax, edi
je 0x496f0a
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x3c], edi
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x58], esi
cmp eax, edi
je 0x496f23
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x5c], edi
mov eax, dword [esp + 0x70]
mov dword [esp + 0x6c], esi
cmp eax, edi
je 0x497ae9
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
jmp 0x497ae9
xor eax, eax
cmp eax, 0x4d2940
je 0x496f55
push 0x4d2944
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x4d2970]
inc ecx
mov dword [0x4d2970], ecx
xor ecx, ecx
cmp ecx, 0x4d2940
je 0x496f77
push 0x4d2944
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x10]
call fcn.0049aadc
mov edx, dword [esp + 0xbc]
mov eax, dword [esp + 0x20]
push edx
push eax
lea ecx, [esp + 0x18]
push 0x4c6f58
push ecx
mov byte [esp + 0xbc], 0x22
call sub.MFC42.DLL_CString::Format
mov al, byte [0x4d2c9d]
add esp, 0x10
test al, 1
jne 0x496fdd
mov bl, al
push 0x4d2ca4
or bl, 1
mov dword [0x4d2ca0], 0x4a48a4
mov byte [0x4d2c9d], bl
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x4953e0
call fcn.0049acee
add esp, 4
mov eax, dword [0x4d2994]
xor ebx, ebx
cmp eax, ebx
je 0x49704c
mov eax, dword [0x4d2990]
cmp eax, ebx
je 0x496ff7
call eax
cmp eax, ebx
jl 0x49704c
mov al, byte [0x4d2c9d]
mov esi, dword [0x4d2384]
mov edi, dword [esp + 0x10]
test al, 1
jne 0x497033
or al, 1
push 0x4d2ca4
mov byte [0x4d2c9d], al
mov dword [0x4d2ca0], 0x4a48a4
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x4953e0
call fcn.0049acee
add esp, 4
cmp dword [0x4d2994], ebx
je 0x49704c
mov eax, dword [0x4d29a0]
cmp eax, ebx
je 0x49704c
push esi
push edi
push ebx
call eax
add esp, 0xc
lea ecx, [esp + 0x10]
mov byte [esp + 0xac], 0x12
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x4c]
mov esi, 0x4a4830
cmp eax, ebx
mov dword [esp + 0x48], esi
je 0x49707b
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x4c], ebx
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x38], esi
cmp eax, ebx
je 0x497094
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x3c], ebx
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x58], esi
cmp eax, ebx
je 0x4970ad
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x5c], ebx
mov eax, dword [esp + 0x70]
mov dword [esp + 0x6c], esi
cmp eax, ebx
je 0x497ae9
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
jmp 0x497ae9
mov esi, dword [sym.imp.MSVCRT.dll__errno]
call esi
call esi
xor edx, edx
cmp edx, 0x4d2940
je 0x4970ea
push 0x4d2944
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [0x4d296c]
xor eax, eax
inc edx
cmp eax, 0x4d2940
mov dword [0x4d296c], edx
je 0x497116
push 0x4d2944
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x4d2944
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x4d2984]
inc ecx
mov dword [0x4d2984], ecx
xor ecx, ecx
cmp ecx, 0x4d2940
je 0x497138
push 0x4d2944
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x10]
call fcn.0049aadc
mov edx, dword [esp + 0xbc]
mov eax, dword [esp + 0x20]
push edx
push eax
lea ecx, [esp + 0x18]
push 0x4c6f10
push ecx
mov byte [esp + 0xbc], 0x40
call sub.MFC42.DLL_CString::Format
mov al, byte [0x4d2c9d]
add esp, 0x10
test al, 1
jne 0x49719e
mov bl, al
push 0x4d2ca4
or bl, 1
mov dword [0x4d2ca0], 0x4a48a4
mov byte [0x4d2c9d], bl
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x4953e0
call fcn.0049acee
add esp, 4
mov eax, dword [0x4d2994]
xor ebx, ebx
cmp eax, ebx
je 0x49720d
mov eax, dword [0x4d2990]
cmp eax, ebx
je 0x4971b8
call eax
cmp eax, ebx
jl 0x49720d
mov al, byte [0x4d2c9d]
mov esi, dword [0x4d2384]
mov edi, dword [esp + 0x10]
test al, 1
jne 0x4971f4
or al, 1
push 0x4d2ca4
mov byte [0x4d2c9d], al
mov dword [0x4d2ca0], 0x4a48a4
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x4953e0
call fcn.0049acee
add esp, 4
cmp dword [0x4d2994], ebx
je 0x49720d
mov eax, dword [0x4d29a0]
cmp eax, ebx
je 0x49720d
push esi
push edi
push ebx
call eax
add esp, 0xc
lea ecx, [esp + 0x10]
mov byte [esp + 0xac], 0x12
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x1c]
mov esi, 0x4a4830
cmp eax, ebx
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x48], esi
jne 0x497295
cmp eax, ebx
je 0x497244
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x4c], ebx
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x38], esi
cmp eax, ebx
je 0x49725d
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x3c], ebx
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x58], esi
cmp eax, ebx
je 0x497276
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x5c], ebx
mov eax, dword [esp + 0x70]
mov dword [esp + 0x6c], esi
cmp eax, ebx
je 0x49728b
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, 0xfffd678a
jmp 0x497aec
cmp eax, ebx
je 0x4972a6
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x4c], ebx
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x38], esi
cmp eax, ebx
je 0x4972bf
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x3c], ebx
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x58], esi
cmp eax, ebx
je 0x4972d8
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x5c], ebx
mov eax, dword [esp + 0x70]
mov dword [esp + 0x6c], esi
cmp eax, ebx
je 0x497ae9
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
jmp 0x497ae9
push edx
lea ecx, [esp + 0x28]
mov byte [esp + 0x58], 1
call fcn.0049ab8a
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x49732f
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x24]
add edx, 0xd
push edx
push 0x4d2480
push str._s_s
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov ecx, dword [esp + 0x24]
push 0
push ecx
call fcn.00497f80
mov edx, dword [esp + 0x2c]
add esp, 8
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x78], edi
je 0x497530
lea ecx, [esp + 0x10]
call fcn.0049aadc
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push eax
push edi
push ebx
push ecx
lea edx, [esp + 0x20]
push str.__d___ThreadID_d__NET_DOG__CClientThread::My_File__________End_Recv___hFileToWrite___d__sTmpRecvFileName_s__
push edx
mov byte [esp + 0xc4], 0x5f
call sub.MFC42.DLL_CString::Format
push 0
push 0
push 0
push 0
push 3
call fcn.00494c70
add esp, 0x2c
cmp eax, 2
jl 0x4973c6
mov eax, dword [0x4d2384]
mov ecx, dword [esp + 0x10]
push 0
push 2
push eax
push ecx
push 2
call fcn.00494c70
add esp, 0x14
lea ecx, [esp + 0x10]
mov byte [esp + 0xac], 0x57
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0xb8]
push 1
push edx
mov ecx, esi
call fcn.00497c60
mov byte [esi + 0x58], 0
jmp 0x4974d8
lea ecx, [esp + 0x18]
call fcn.0049aadc
mov eax, dword [esp + 0x54]
mov edi, dword [esp + 0x64]
mov ecx, dword [esp + 0x20]
and eax, 0xff
push edi
push eax
push ebx
push ecx
lea edx, [esp + 0x28]
push str.__d___ThreadID_d__NET_DOG__CClientThread::My_File__________End_Recv_second___bWriteRecvdToFile___d___ulTotalWrite___d__
push edx
mov byte [esp + 0xc4], 0x60
call sub.MFC42.DLL_CString::Format
push 0
push 0
push 0
push 0
push 3
call fcn.00494c70
add esp, 0x2c
cmp eax, 2
jl 0x49745a
mov eax, dword [0x4d2384]
mov ecx, dword [esp + 0x18]
push 0
push 2
push eax
push ecx
push 2
call fcn.00494c70
add esp, 0x14
lea ecx, [esp + 0x18]
mov byte [esp + 0xac], 0x57
call sub.MFC42.DLL_CString::CString
mov al, byte [esp + 0x54]
test al, al
je 0x4974a1
lea ecx, [esp + 0x28]
call fcn.00495cf0
mov esi, dword [esp + 0x34]
add edi, eax
push edi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x68], edi
call fcn.00495cf0
mov edx, dword [esp + 0x7c]
push eax
push esi
push edx
call fcn.00494680
add esp, 0x10
jmp 0x4974d8
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x28]
call fcn.00495cf0
mov ebp, dword [esp + 0x1c]
mov ecx, eax
mov eax, dword [esp + 0x44]
mov edx, ecx
shr ecx, 2
lea edi, [eax + ebp]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x28]
call fcn.00495cf0
add ebp, eax
mov dword [esp + 0x1c], ebp
mov eax, dword [esp + 0x60]
mov edi, dword [esp + 0x5c]
xor edx, edx
lea esi, [eax - 1]
xor eax, eax
test esi, esi
jle 0x49750c
lea ebp, [ebx*4 + 0x4d23d0]
cmp edx, 0x400
jl 0x4974fc
xor edx, edx
mov ecx, edx
add ecx, dword [ebp]
mov cl, byte [ecx]
xor byte [edi + eax], cl
inc eax
inc edx
cmp eax, esi
jl 0x4974f2
push 0
push 0
push esi
push edi
lea ecx, [ebx*4 + 0x4d23f0]
call fcn.004990d0
inc word [ebx*2 + 0x4d2478]
mov byte [esp + 0x17], 0
jmp 0x496b1b
lea ecx, [esp + 0x10]
call fcn.0049aadc
mov edx, dword [esp + 0x20]
push ebx
push edx
lea eax, [esp + 0x18]
push 0x4c6db8
push eax
mov byte [esp + 0xbc], 0x5e
call sub.MFC42.DLL_CString::Format
push 0
push 0
push 0
push 0
push 3
call fcn.00494c70
add esp, 0x24
cmp eax, 2
jl 0x497587
mov ecx, dword [0x4d2384]
mov edx, dword [esp + 0x10]
push 0
push 2
push ecx
push edx
push 2
call fcn.00494c70
add esp, 0x14
lea ecx, [esp + 0x10]
mov byte [esp + 0xac], 0x57
call sub.MFC42.DLL_CString::CString
jmp 0x497873
push 0x4d2940
lea ecx, [esp + 0x80]
call fcn.004948f0
mov eax, dword [0x4d2984]
lea ecx, [esp + 0x7c]
inc eax
mov dword [0x4d2984], eax
call fcn.00493850
call dword [sym.imp.MSVCRT.dll__errno]
lea ecx, [esp + 0x10]
call fcn.0049aadc
mov eax, dword [esp + 0x20]
push ebx
push eax
lea ecx, [esp + 0x18]
push 0x4c6d70
push ecx
mov byte [esp + 0xbc], 0x5b
call sub.MFC42.DLL_CString::Format
push 0
push 0
push 0
push 0
push 3
call fcn.00494c70
add esp, 0x24
test eax, eax
jl 0x49761e
mov edx, dword [0x4d2384]
mov eax, dword [esp + 0x10]
push 0
push 0
push edx
push eax
push 2
call fcn.00494c70
add esp, 0x14
mov byte [esp + 0xac], 0x57
lea ecx, [esp + 0x10]
jmp 0x497aaf
push 0x4d2940
lea ecx, [esp + 0x80]
call fcn.004948f0
mov eax, dword [0x4d2970]
lea ecx, [esp + 0x7c]
inc eax
mov dword [0x4d2970], eax
call fcn.00493850
lea ecx, [esp + 0x10]
call fcn.0049aadc
mov ecx, dword [esp + 0x20]
push ebx
push ecx
lea edx, [esp + 0x18]
push 0x4c6d28
push edx
mov byte [esp + 0xbc], 0x5a
call sub.MFC42.DLL_CString::Format
push 0
push 0
push 0
push 0
push 3
call fcn.00494c70
add esp, 0x24
test eax, eax
jl 0x4976a9
mov eax, dword [0x4d2384]
mov ecx, dword [esp + 0x10]
push 0
push 0
push eax
push ecx
push 2
call fcn.00494c70
add esp, 0x14
mov byte [esp + 0xac], 0x57
lea ecx, [esp + 0x10]
jmp 0x497aaf
push 0x4d2940
lea ecx, [esp + 0x80]
call fcn.004948f0
mov eax, dword [0x4d2970]
lea ecx, [esp + 0x7c]
inc eax
mov dword [0x4d2970], eax
call fcn.00493850
lea ecx, [esp + 0x10]
call fcn.0049aadc
mov edx, dword [esp + 0x20]
push ebx
push edx
lea eax, [esp + 0x18]
push 0x4c6ce0
push eax
mov byte [esp + 0xbc], 0x59
call sub.MFC42.DLL_CString::Format
push 0
push 0
push 0
push 0
push 3
call fcn.00494c70
add esp, 0x24
test eax, eax
jl 0x497735
mov ecx, dword [0x4d2384]
mov edx, dword [esp + 0x10]
push 0
push 0
push ecx
push edx
push 2
call fcn.00494c70
add esp, 0x14
mov byte [esp + 0xac], 0x57
lea ecx, [esp + 0x10]
jmp 0x497aaf
call dword [sym.imp.MSVCRT.dll__errno]
push 0x4d2940
lea ecx, [esp + 0x80]
call fcn.004948f0
mov edx, dword [0x4d296c]
lea ecx, [esp + 0x7c]
inc edx
mov dword [0x4d296c], edx
call fcn.00493850
push 0x4d2940
lea ecx, [esp + 0x80]
call fcn.004948f0
mov eax, dword [0x4d2984]
lea ecx, [esp + 0x7c]
inc eax
mov dword [0x4d2984], eax
call fcn.00493850
lea ecx, [esp + 0x10]
call fcn.0049aadc
mov eax, dword [esp + 0x20]
push ebx
push eax
lea ecx, [esp + 0x18]
push 0x4c6c98
push ecx
mov byte [esp + 0xbc], 0x5c
call sub.MFC42.DLL_CString::Format
push 0
push 0
push 0
push 0
push 3
call fcn.00494c70
add esp, 0x24
test eax, eax
jl 0x4977ee
mov edx, dword [0x4d2384]
mov eax, dword [esp + 0x10]
push 0
push 0
push edx
push eax
push 2
call fcn.00494c70
add esp, 0x14
mov byte [esp + 0xac], 0x57
lea ecx, [esp + 0x10]
jmp 0x497aaf
lea ecx, [esp + 0x10]
call fcn.0049aadc
mov ecx, dword [esp + 0x20]
push str.END_end_END
push ebx
push ecx
lea edx, [esp + 0x1c]
push str.__d___ThreadID_d__NET_DOG__CClientThread::My_File__________End_Recv__s
push edx
mov byte [esp + 0xc0], 0x5d
call sub.MFC42.DLL_CString::Format
push 0
push 0
push 0
push 0
push 3
call fcn.00494c70
add esp, 0x28
cmp eax, 2
jl 0x49785a
mov eax, dword [0x4d2384]
mov ecx, dword [esp + 0x10]
push 0
push 2
push eax
push ecx
push 2
call fcn.00494c70
add esp, 0x14
lea ecx, [esp + 0x10]
mov byte [esp + 0xac], 0x57
call sub.MFC42.DLL_CString::CString
mov edi, dword [esp + 0x78]
mov ebp, dword [esp + 0x44]
lea ecx, [esp + 0x78]
call fcn.0049aadc
mov edx, dword [esp + 0x20]
push ebx
push edx
lea eax, [esp + 0x80]
push str.__d___ThreadID_d__NET_DOG__CClientThread::My_File__________End_Recv
push eax
mov byte [esp + 0xbc], 0x61
call sub.MFC42.DLL_CString::Format
push 0
push 0
push 0
push 0
push 3
call fcn.00494c70
add esp, 0x24
cmp eax, 2
jl 0x4978cd
mov ecx, dword [0x4d2384]
mov edx, dword [esp + 0x78]
push 0
push 2
push ecx
push edx
push 2
call fcn.00494c70
add esp, 0x14
lea ecx, [esp + 0x78]
mov byte [esp + 0xac], 0x57
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x1c]
lea esi, [eax + ecx - 0x40d]
lea ecx, [esp + 0x64]
call fcn.0049aadc
mov eax, dword [esp + 0x20]
mov byte [esp + 0xac], 0x62
mov edx, dword [ebp + 4]
lea ecx, [esp + 0x64]
push edx
push esi
push ebx
push eax
push str.__d___ThreadID_d__NET_DOG__CClientThread::My_File__________End_Recv__ulBufLen_d___pulBufLen__d_
push ecx
call sub.MFC42.DLL_CString::Format
push 0
push 0
push 0
push 0
push 3
call fcn.00494c70
add esp, 0x2c
cmp eax, 2
jl 0x497949
mov edx, dword [0x4d2384]
mov eax, dword [esp + 0x64]
push 0
push 2
push edx
push eax
push 2
call fcn.00494c70
add esp, 0x14
lea ecx, [esp + 0x64]
mov byte [esp + 0xac], 0x57
call sub.MFC42.DLL_CString::CString
cmp dword [ebp + 4], esi
jne 0x497a1c
mov ebx, dword [esp + 0xb8]
lea ecx, [esp + 0x64]
push ecx
mov ecx, ebx
mov dword [esp + 0x68], 0xffffffff
call fcn.00497ce0
mov edx, dword [esp + 0x1c]
lea eax, [ebp + 0x10d]
add edx, 0xfffffef3
mov ecx, ebx
push edx
push eax
call fcn.00497bc0
mov ecx, dword [ebp]
push ecx
mov ecx, ebx
call fcn.00497b60
push esi
mov ecx, ebx
call fcn.00497b80
mov edx, dword [ebp + 8]
mov ecx, ebx
push edx
call fcn.00497ba0
mov eax, dword [ebp + 8]
lea ecx, [ebx + 4]
sub eax, 0x100
push eax
call fcn.00497b40
cmp edi, 0xffffffff
je 0x4979e0
mov ecx, dword [esp + 0x24]
push 0
push ecx
mov ecx, ebx
call fcn.00497c60
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x24]
mov byte [esp + 0xac], 0x12
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x48]
call fcn.0048ed80
lea ecx, [esp + 0x38]
call fcn.0048ed80
lea ecx, [esp + 0x58]
call fcn.0048ed80
lea ecx, [esp + 0x6c]
call fcn.0048ed80
xor eax, eax
jmp 0x497aec
cmp edi, 0xffffffff
je 0x497a28
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x4d2920
lea ecx, [esp + 0x80]
call fcn.004948f0
mov eax, dword [0x4d2964]
lea ecx, [esp + 0x7c]
inc eax
mov dword [0x4d2964], eax
call fcn.00493850
lea ecx, [esp + 0x64]
call fcn.0049aadc
mov edx, dword [esp + 0x20]
push ebx
push edx
lea eax, [esp + 0x6c]
push 0x4c6b5c
push eax
mov byte [esp + 0xbc], 0x63
call sub.MFC42.DLL_CString::Format
push 0
push 0
push 0
push 0
push 3
call fcn.00494c70
add esp, 0x24
test eax, eax
jl 0x497aa3
mov ecx, dword [0x4d2384]
mov edx, dword [esp + 0x64]
push 0
push 0
push ecx
push edx
push 2
call fcn.00494c70
add esp, 0x14
mov byte [esp + 0xac], 0x57
lea ecx, [esp + 0x64]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0xac], 0x12
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x48]
call fcn.0048ed80
lea ecx, [esp + 0x38]
call fcn.0048ed80
lea ecx, [esp + 0x58]
call fcn.0048ed80
lea ecx, [esp + 0x6c]
call fcn.0048ed80
or eax, 0xffffffff
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa0
ret