Function at 0x1008320
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x19c
mov eax, dword [0x10f5ca0]
xor eax, esp
mov dword [esp + 0x198], eax
push edi
push str.ICMP.DLL
mov dword [esi + 0x10], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esi + 0xc], eax
push ebx
call 0x1008356
jmp 0x100835b
pushal
call 0x1008361
pop ebx
add ebx, 0xffffffe3
push 0xc51000
pop ebx
popal
pop ebx
pop ebx
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x10083ba
push eax
push str.Error:
push str.Could_not_load_ICMP.DLL
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
call 0x100838d
jmp 0x1008392
pushal
call 0x1008398
pop ebx
add ebx, 0xffffffe3
push 0xc51000
pop ebx
popal
pop ebx
pop ebx
mov eax, esi
pop edi
mov ecx, dword [esp + 0x198]
xor ecx, esp
call fcn.01090090
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.IcmpCreateFile
push eax
call edi
mov dword [esi], eax
push ebx
call 0x10083d0
jmp 0x10083d5
pushal
call 0x10083db
pop ebx
add ebx, 0xffffffe3
push 0xc51000
pop ebx
popal
pop ebx
pop ebx
mov eax, dword [esi + 0xc]
push str.IcmpCloseHandle
push eax
call edi
mov dword [esi + 4], eax
push ebx
call 0x10083fc
jmp 0x1008401
pushal
call 0x1008407
pop ebx
add ebx, 0xffffffe3
push 0xc51000
pop ebx
popal
pop ebx
pop ebx
mov ecx, dword [esi + 0xc]
push str.IcmpSendEcho
push ecx
call edi
mov dword [esi + 8], eax
push ebx
call 0x1008428
jmp 0x100842d
pushal
call 0x1008433
pop ebx
add ebx, 0xffffffe3
push 0xc51000
pop ebx
popal
pop ebx
pop ebx
cmp dword [esi], 0
je 0x1008600
cmp dword [esi + 4], 0
je 0x1008600
cmp dword [esi + 8], 0
je 0x1008600
lea edx, [esp + 8]
push edx
push 0x101
call sub.WS2_32.dll_WSAStartup
push ebx
call 0x1008472
jmp 0x1008477
pushal
call 0x100847d
pop ebx
add ebx, 0xffffffe3
push 0xc51000
pop ebx
popal
pop ebx
pop ebx
test eax, eax
je 0x1008524
push 0
push str.Error:
push str.WSAStartup___error:
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
call 0x10084ac
jmp 0x10084b1
pushal
call 0x10084b7
pop ebx
add ebx, 0xffffffe3
push 0xc51000
pop ebx
popal
pop ebx
pop ebx
call sub.WS2_32.dll_WSACleanup
push ebx
call 0x10084cf
jmp 0x10084d4
pushal
call 0x10084da
pop ebx
add ebx, 0xffffffe3
push 0xc51000
pop ebx
popal
pop ebx
pop ebx
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebx
call 0x10084f7
jmp 0x10084fc
pushal
call 0x1008502
pop ebx
add ebx, 0xffffffe3
push 0xc51000
pop ebx
popal
pop ebx
pop ebx
mov eax, esi
pop edi
mov ecx, dword [esp + 0x198]
xor ecx, esp
call fcn.01090090
mov esp, ebp
pop ebp
ret
mov ecx, 0x101
cmp cx, word [esp + 8]
je 0x10085c6
push 0
push str.Error:
push str.No_WinSock_version_1.1_support_found
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
call 0x100854e
jmp 0x1008553
pushal
call 0x1008559
pop ebx
add ebx, 0xffffffe3
push 0xc51000
pop ebx
popal
pop ebx
pop ebx
call sub.WS2_32.dll_WSACleanup
push ebx
call 0x1008571
jmp 0x1008576
pushal
call 0x100857c
pop ebx
add ebx, 0xffffffe3
push 0xc51000
pop ebx
popal
pop ebx
pop ebx
mov edx, dword [esi + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebx
call 0x1008599
jmp 0x100859e
pushal
call 0x10085a4
pop ebx
add ebx, 0xffffffe3
push 0xc51000
pop ebx
popal
pop ebx
pop ebx
mov eax, esi
pop edi
mov ecx, dword [esp + 0x198]
xor ecx, esp
call fcn.01090090
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x10], 1
push ebx
call 0x10085d3
jmp 0x10085d8
pushal
call 0x10085de
pop ebx
add ebx, 0xffffffe3
push 0xc51000
pop ebx
popal
pop ebx
pop ebx
mov eax, esi
pop edi
mov ecx, dword [esp + 0x198]
xor ecx, esp
call fcn.01090090
mov esp, ebp
pop ebp
ret
push 0
push str.Error:
push str.Error_loading_ICMP.DLL
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
call 0x100861a
jmp 0x100861f
pushal
call 0x1008625
pop ebx
add ebx, 0xffffffe3
push 0xc51000
pop ebx
popal
pop ebx
pop ebx
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebx
call 0x1008642
jmp 0x1008647
pushal
call 0x100864d
pop ebx
add ebx, 0xffffffe3
push 0xc51000
pop ebx
popal
pop ebx
pop ebx
mov ecx, dword [esp + 0x19c]
pop edi
xor ecx, esp
mov eax, esi
call fcn.01090090
mov esp, ebp
pop ebp
ret