Function at 0x402410
Capabilities:
Rebuild import table

Disassembly:
sub esp, 0x688
push ebx
push esi
push edi
mov ax, word [0x40864c]
mov cl, byte [0x40864e]
mov edx, dword [0x408648]
mov word [esp + 0xc], ax
mov eax, dword [str.WNet]
mov byte [esp + 0xe], cl
mov cl, byte [0x408644]
mov dword [esp + 0x14], edx
mov dx, word [0x40863c]
mov dword [esp + 0x18], eax
mov al, byte [0x40863e]
mov byte [esp + 0x1c], cl
mov ecx, dword [str.32.dll]
mov word [esp + 0x10], dx
mov dx, word [0x408638]
mov byte [esp + 0x12], al
mov al, byte [0x40863a]
mov dword [esp + 0x20], ecx
mov ecx, dword [str.nnection2A]
mov word [esp + 0x24], dx
mov edx, dword [0x40862c]
mov byte [esp + 0x26], al
mov ax, word [0x408630]
mov dword [esp + 0x44], ecx
mov cl, byte [0x408632]
mov dword [esp + 0x48], edx
mov edx, dword [str.ction2A]
mov word [esp + 0x4c], ax
mov eax, dword [0x408624]
mov byte [esp + 0x4e], cl
mov ecx, dword [str.rFree]
mov dword [esp + 0x74], edx
mov dx, word [0x40861c]
mov dword [esp + 0x78], eax
mov eax, dword [str.rEnum]
mov dword [esp + 0x38], ecx
mov cx, word [0x408614]
mov word [esp + 0x3c], dx
mov edx, dword [0x40860c]
mov dword [esp + 0x28], eax
mov eax, dword [0x408608]
mov word [esp + 0x2c], cx
mov ecx, dword [str.CancelCo]
mov dword [esp + 0x34], edx
mov edx, dword [0x408600]
mov dword [esp + 0x40], eax
mov al, byte [0x408604]
mov dword [esp + 0x50], ecx
mov ecx, dword [str.AddConne]
mov dword [esp + 0x54], edx
mov edx, dword [0x4085f4]
mov byte [esp + 0x58], al
mov al, byte [0x4085f8]
mov dword [esp + 0x5c], ecx
mov ecx, dword [str.ApiBuffe]
mov dword [esp + 0x60], edx
mov edx, dword [0x4085e8]
mov byte [esp + 0x64], al
mov al, byte [0x4085ec]
mov dword [esp + 0x68], ecx
mov ecx, dword [0x4085e0]
mov dword [esp + 0x6c], edx
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
mov byte [esp + 0x70], al
lea edx, [esp + 0x20]
mov dword [esp + 0x30], ecx
lea eax, [esp + 0x34]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
lea edx, [esp + 0x498]
push str._s_s_s
push edx
call esi
lea eax, [esp + 0x24]
lea ecx, [esp + 0x54]
push eax
lea edx, [esp + 0x24]
push ecx
push edx
lea eax, [esp + 0x2a4]
push str._s_s_s
push eax
call esi
lea ecx, [esp + 0x6c]
lea edx, [esp + 0x78]
push ecx
lea eax, [esp + 0x44]
push edx
push eax
lea ecx, [esp + 0xb0]
push str._s_s_s
push ecx
call esi
lea edx, [esp + 0xb0]
lea eax, [esp + 0x98]
push edx
lea ecx, [esp + 0x58]
push eax
push ecx
lea edx, [esp + 0x1c8]
push str._s_s_s
push edx
call esi
add esp, 0x50
lea eax, [esp + 0x38]
lea ecx, [esp + 0x68]
lea edx, [esp + 0x14]
push eax
push ecx
push edx
lea eax, [esp + 0x394]
push str._s_s_s
push eax
call esi
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x44]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
lea ecx, [esp + 0x5b0]
push str._s_s_s
push ecx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x28
lea edx, [esp + 0x48c]
push edx
call edi
mov esi, eax
lea eax, [esp + 0x284]
push eax
call edi
cmp esi, 0xffffffff
mov ebx, eax
je 0x4026b1
cmp ebx, 0xffffffff
je 0x4026b1
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [esp + 0x7c]
push ecx
push ebx
call edi
test eax, eax
mov dword [0x408c20], eax
je 0x4026aa
lea edx, [esp + 0x180]
push edx
push ebx
call edi
test eax, eax
mov dword [0x409234], eax
je 0x4026aa
lea eax, [esp + 0x388]
push eax
push esi
call edi
test eax, eax
mov dword [0x408c24], eax
je 0x4026aa
lea ecx, [esp + 0x590]
push ecx
push esi
call edi
test eax, eax
mov dword [0x409638], eax
je 0x4026aa
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x688
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x688
ret