Function at 0x40ad80
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46aa68
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x48a1d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x5c], ecx
mov byte [ebp - 0x55], 1
lea ecx, [ebp - 0x28]
call fcn.004066a0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x6c], esp
push 0x46e9ec
call fcn.00406660
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x74], ecx
mov byte [ebp - 4], 1
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x70], esp
push 0x46ea00
call fcn.00406660
mov dword [ebp - 0x68], eax
push SysStringLen
mov byte [ebp - 4], 0
call fcn.00412d10
add esp, 0x38
push 0x46ea24
lea ecx, [ebp - 0x28]
call fcn.00407580
lea ecx, [ebp - 0x54]
call fcn.004067f0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x54]
push edx
lea ecx, [ebp - 0x28]
call fcn.004077f0
push eax
call fcn.004106b0
add esp, 8
cmp eax, 1
jne 0x40ae78
push 0x46ea3c
mov eax, dword [ebp - 0x3c]
push eax
call fcn.00437104
add esp, 8
test eax, eax
je 0x40ae76
mov byte [ebp - 0x5e], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x54]
call fcn.00406840
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00406810
mov al, byte [ebp - 0x5e]
jmp 0x40b0ea
jmp 0x40ae9f
mov byte [ebp - 0x5f], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x54]
call fcn.00406840
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00406810
mov al, byte [ebp - 0x5f]
jmp 0x40b0ea
lea ecx, [ebp - 0x28]
call fcn.004077f0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 0x5c]
mov dword [ecx + 0x30], eax
mov edx, dword [ebp - 0x5c]
cmp dword [edx + 0x30], 0
jne 0x40aec6
mov byte [ebp - 0x55], 0
jmp 0x40b0b6
push str.STInit
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0x5c]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 0x5c]
cmp dword [eax + 0x34], 0
jne 0x40aef0
mov byte [ebp - 0x55], 0
jmp 0x40b0b6
push str.STUDPProxy
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x5c]
mov dword [ecx + 0x38], eax
mov edx, dword [ebp - 0x5c]
cmp dword [edx + 0x38], 0
jne 0x40af1a
mov byte [ebp - 0x55], 0
jmp 0x40b0b6
push str.STUDPTransfer
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0x5c]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 0x5c]
cmp dword [eax + 0x3c], 0
jne 0x40af44
mov byte [ebp - 0x55], 0
jmp 0x40b0b6
push str.STCmdApp
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x5c]
mov dword [ecx + 0x50], eax
mov edx, dword [ebp - 0x5c]
cmp dword [edx + 0x50], 0
jne 0x40af6e
mov byte [ebp - 0x55], 0
jmp 0x40b0b6
push str.STEntryAddr
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0x5c]
mov dword [edx + 0x44], eax
mov eax, dword [ebp - 0x5c]
cmp dword [eax + 0x44], 0
jne 0x40af98
mov byte [ebp - 0x55], 0
jmp 0x40b0b6
push str.STUnionID
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x5c]
mov dword [ecx + 0x40], eax
mov edx, dword [ebp - 0x5c]
cmp dword [edx + 0x40], 0
jne 0x40afc2
mov byte [ebp - 0x55], 0
jmp 0x40b0b6
push str.STAppID
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0x5c]
mov dword [edx + 0x48], eax
mov eax, dword [ebp - 0x5c]
cmp dword [eax + 0x48], 0
jne 0x40afec
mov byte [ebp - 0x55], 0
jmp 0x40b0b6
push str.STVersion
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x5c]
mov dword [ecx + 0x4c], eax
mov edx, dword [ebp - 0x5c]
cmp dword [edx + 0x4c], 0
jne 0x40b012
jmp 0x40b0b6
push str.STOnline
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0x5c]
mov dword [edx + 0x54], eax
mov eax, dword [ebp - 0x5c]
cmp dword [eax + 0x54], 0
jne 0x40b039
mov byte [ebp - 0x55], 0
jmp 0x40b0b6
push str.STOffline
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x5c]
mov dword [ecx + 0x58], eax
mov edx, dword [ebp - 0x5c]
cmp dword [edx + 0x58], 0
jne 0x40b060
mov byte [ebp - 0x55], 0
jmp 0x40b0b6
push str.STAction
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0x5c]
mov dword [edx + 0x5c], eax
mov eax, dword [ebp - 0x5c]
cmp dword [eax + 0x5c], 0
jne 0x40b087
mov byte [ebp - 0x55], 0
jmp 0x40b0b6
push str.STUninit
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x5c]
mov dword [ecx + 0x60], eax
mov edx, dword [ebp - 0x5c]
cmp dword [edx + 0x60], 0
jne 0x40b0ae
mov byte [ebp - 0x55], 0
jmp 0x40b0b6
xor eax, eax
jne 0x40aeb4
movzx ecx, byte [ebp - 0x55]
test ecx, ecx
jne 0x40b0c6
mov ecx, dword [ebp - 0x5c]
call fcn.0040a8d0
mov dl, byte [ebp - 0x55]
mov byte [ebp - 0x5d], dl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x54]
call fcn.00406840
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00406810
mov al, byte [ebp - 0x5d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043715b
mov esp, ebp
pop ebp
ret