Function at 0x10001226
Capabilities:
Read file via mapping

Disassembly:
jmp 0x1000d460
push 0xffffffffffffffff
push 0x10021260
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [0x1003500c]
push ebx
push ebp
push esi
push edi
xor edi, edi
cmp eax, edi
mov byte [esp + 0x13], 1
je 0x1000d788
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp eax, dword [0x1003500c]
je 0x1000d788
mov al, byte [0x1002e2ad]
test al, al
jne 0x1000d788
mov esi, dword [esp + 0x30]
push esi
call fcn.10001460
add esp, 4
test al, al
jne 0x1000d788
push esi
call fcn.10001749
add esp, 4
test al, al
jne 0x1000d52d
cmp dword [0x1003502c], edi
je 0x1000d4fb
push str.bCanPassSocket__g_bDisableNet:1__Disable_Net
call fcn.10001672
add esp, 4
xor al, al
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
cmp dword [0x10035028], edi
jne 0x1000d52d
cmp dword [0x1003503c], edi
je 0x1000d52d
push str.bCanPassSocket__g_bCanUseNet:0___CheckFilterTimeSet_Cannot_Use_Net
call fcn.10001672
add esp, 4
xor al, al
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
cmp dword [section..ComData], edi
je 0x1000d788
cmp dword [0x10035034], edi
je 0x1000d788
mov ebx, dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ebp, dword [sym.imp.WS2_32.dll_ntohs]
cmp esi, edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x18], edi
je 0x1000d5c0
mov ax, word [esi + 2]
push eax
call ebp
mov di, ax
mov eax, dword [0x1002e244]
and edi, 0xffff
test eax, eax
mov dword [esp + 0x30], edi
je 0x1000d5c0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esi + 4]
push edi
push ecx
mov dword [esp + 0x2c], 0
call ebx
push eax
lea edx, [esp + 0x1c]
push 0x1002a6e0
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x24]
push eax
call fcn.10001672
add esp, 0x14
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x34]
test esi, esi
je 0x1000d62b
mov cx, word [esi + 2]
push ecx
call ebp
and eax, 0xffff
mov dword [esp + 0x18], eax
mov eax, dword [0x1002e244]
test eax, eax
je 0x1000d62b
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0x30]
mov eax, dword [esi + 4]
push edx
push eax
mov dword [esp + 0x2c], 1
call ebx
push eax
lea ecx, [esp + 0x3c]
push 0x1002a6b8
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x44]
push edx
call fcn.10001672
add esp, 0x14
lea ecx, [esp + 0x34]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [0x1002e20c]
mov ebx, dword [esp + 0x2c]
test ecx, ecx
je 0x1000d65c
mov eax, ebx
xor edx, edx
shr eax, 4
div dword [0x1002e210]
mov edx, dword [ecx + edx*4]
test edx, edx
je 0x1000d65c
cmp dword [edx + 8], ebx
je 0x1000d741
mov edx, dword [edx]
test edx, edx
jne 0x1000d64d
mov eax, dword [section..ComData]
test eax, eax
je 0x1000d839
mov eax, dword [0x1002e244]
test eax, eax
je 0x1000d67f
push 0x1002a698
call fcn.10001672
add esp, 4
push str.GlobalPortInfo_MapFile
push 0
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
test eax, eax
mov dword [0x1002e280], eax
je 0x1000d826
push 0
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebp, eax
test ebp, ebp
je 0x1000d80e
mov ecx, dword [0x10035010]
lea eax, [ecx*8]
sub eax, ecx
lea eax, [eax + eax*2]
push eax
call sub.MFC42.DLL_operatornew
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1000d788
mov ecx, dword [0x10035010]
lea esi, [ebp + 4]
mov edi, ebx
push ebp
lea eax, [ecx*8]
sub eax, ecx
lea ecx, [eax + eax*2]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edi, dword [0x10035010]
xor ecx, ecx
test edi, edi
jbe 0x1000d801
lea eax, [ebx + 8]
mov edx, dword [eax - 4]
mov esi, dword [esp + 0x18]
test edx, edx
mov edx, dword [eax]
je 0x1000d79d
cmp esi, edx
jb 0x1000d732
cmp esi, dword [eax + 4]
jbe 0x1000d7b4
mov esi, dword [esp + 0x30]
cmp esi, edx
jb 0x1000d7a7
cmp esi, dword [eax + 4]
jbe 0x1000d7b4
jmp 0x1000d7a7
test edx, edx
je 0x1000d65c
mov eax, dword [edx + 0xc]
test eax, eax
je 0x1000d772
push str.bCanPassSocket_________Lookup_have_forbit
call fcn.10001672
add esp, 4
xor al, al
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov eax, dword [0x1002e244]
test eax, eax
je 0x1000d788
push 0x1002a61c
call fcn.10001672
add esp, 4
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
cmp edx, esi
je 0x1000d7de
cmp edx, dword [esp + 0x30]
je 0x1000d7de
inc ecx
add eax, 0x15
cmp ecx, edi
jae 0x1000d801
jmp 0x1000d718
lea eax, [ecx*8]
mov byte [esp + 0x13], 0
sub eax, ecx
lea ecx, [ebx + eax*2]
add eax, ecx
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
push edx
push eax
push str.bCanPassSocket_____PORT_range__d_
call fcn.10001672
add esp, 0xc
jmp 0x1000d801
lea eax, [ecx*8]
mov byte [esp + 0x13], 0
sub eax, ecx
lea ecx, [ebx + eax*2]
mov edx, dword [eax + ecx + 8]
push edx
push str.bCanPassSocket_____PORT:__d__cant_pass
call fcn.10001672
add esp, 8
push ebx
call sub.MFC42.DLL_operatordelete
mov ebx, dword [esp + 0x30]
add esp, 4
mov eax, dword [0x1002e280]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x1002e280], 0
jmp 0x1000d833
push 0x1002a590
call fcn.10001672
add esp, 4
mov ecx, dword [0x1002e20c]
mov ebp, dword [0x1002e210]
mov eax, ebx
shr eax, 4
xor edx, edx
div ebp
test ecx, ecx
mov esi, edx
je 0x1000d86c
mov eax, dword [ecx + esi*4]
test eax, eax
je 0x1000d89e
cmp dword [eax + 8], ebx
je 0x1000d862
mov eax, dword [eax]
test eax, eax
jne 0x1000d855
jmp 0x1000d89e
test eax, eax
jne 0x1000d920
jmp 0x1000d89e
lea edi, [ebp*4]
push edi
call sub.MFC42.DLL_operatornew
mov edx, eax
mov ecx, edi
mov dword [0x1002e20c], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov dword [0x1002e210], ebp
mov eax, dword [0x1002e218]
xor edi, edi
cmp eax, edi
jne 0x1000d8eb
mov eax, dword [0x1002e220]
push 0x10
push eax
push 0x1002e21c
call sub.MFC42.DLL_CPlex::Create
mov edx, dword [0x1002e220]
add eax, 4
mov ecx, edx
shl ecx, 4
lea ecx, [eax + ecx - 0x10]
lea eax, [edx - 1]
cmp eax, edi
jl 0x1000d943
lea edx, [eax + 1]
mov eax, dword [0x1002e218]
mov dword [ecx], eax
mov eax, ecx
sub ecx, 0x10
dec edx
jne 0x1000d8dc
mov dword [0x1002e218], eax
mov ecx, dword [0x1002e214]
mov edx, dword [eax]
inc ecx
mov dword [0x1002e218], edx
mov dword [0x1002e214], ecx
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 4], esi
mov dword [eax + 8], ebx
mov ecx, dword [0x1002e20c]
mov edx, dword [ecx + esi*4]
mov dword [eax], edx
mov ecx, dword [0x1002e20c]
mov dword [ecx + esi*4], eax
mov cl, byte [esp + 0x13]
xor edx, edx
test cl, cl
sete dl
mov dword [eax + 0xc], edx
mov al, cl
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
mov eax, dword [0x1002e218]
jmp 0x1000d8eb