Function at 0x415e0f
Capabilities:
Initialize winsock library
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x314
push ebx
push esi
mov esi, dword [ebp + 8]
and esi, 1
push edi
mov dword [esp + 0x14], esi
jne 0x415e34
xor ebx, ebx
mov dword [0x422d68], ebx
jmp 0x415e36
xor ebx, ebx
call fcn.00415aca
mov edi, eax
mov dword [0x422d80], edi
cmp edi, ebx
je 0x415fca
cmp esi, ebx
jne 0x415e68
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [0x422d7c], eax
cmp eax, ebx
je 0x415fca
jmp 0x415f15
push 0x404724
call fcn.00415a04
push 0x404734
mov dword [esp + 0x1c], eax
call fcn.00415a04
mov dword [esp + 0x1c], eax
mov eax, dword [0x422d7c]
mov ecx, dword [eax + 0x3c]
mov dword [esp + 0x10], eax
lea ecx, [ecx + eax + 0x80]
cmp dword [esp + 0x1c], ebx
je 0x415f15
cmp dword [esp + 0x18], ebx
je 0x415f15
mov edi, dword [ecx]
cmp edi, ebx
jbe 0x415f15
cmp dword [ecx + 4], 0x14
jbe 0x415f15
add edi, eax
cmp dword [edi], ebx
je 0x415f15
mov eax, dword [edi + 0xc]
add eax, dword [esp + 0x10]
push eax
call dword [esp + 0x20]
mov dword [esp + 0x20], eax
cmp eax, ebx
je 0x415fca
mov esi, dword [edi]
mov ebx, dword [edi + 0x10]
add esi, dword [esp + 0x10]
add ebx, dword [esp + 0x10]
jmp 0x415f06
jns 0x415ee5
and eax, 0xffff
jmp 0x415eed
mov ecx, dword [esp + 0x10]
lea eax, [eax + ecx + 2]
push eax
push dword [esp + 0x24]
call dword [esp + 0x20]
test eax, eax
je 0x415fca
mov dword [ebx], eax
add esi, 4
add ebx, 4
mov eax, dword [esi]
test eax, eax
jne 0x415edc
add edi, 0x14
xor ebx, ebx
cmp dword [edi], ebx
jne 0x415eb5
lea esi, [esp + 0x24]
mov eax, 0xe5
call fcn.00408c1d
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [0x422d84], eax
cmp eax, ebx
je 0x415fca
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x404744
push eax
call esi
push 0x404754
push dword [0x422d84]
mov dword [0x422d88], eax
call esi
push 0x404768
push dword [0x422d84]
mov dword [0x422d8c], eax
call esi
push 0x404784
push dword [0x422d84]
mov dword [0x422d90], eax
call esi
push 0x404798
push dword [0x422d84]
mov dword [0x422d94], eax
call esi
push 0x4047a4
push dword [0x422d84]
mov dword [0x422d98], eax
call esi
mov dword [0x422d9c], eax
cmp dword [0x422d88], ebx
jne 0x415fb6
cmp dword [0x422d8c], ebx
je 0x415fca
cmp dword [0x422d90], ebx
je 0x415fca
cmp dword [0x422d98], ebx
je 0x415fca
cmp eax, ebx
jne 0x415fd1
xor al, al
jmp 0x416157
push ebx
push 0x80000
push ebx
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [0x423234], eax
cmp eax, ebx
jne 0x415ffb
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [0x423234], eax
mov byte [0x42287b], 0
jmp 0x416002
mov byte [0x42287b], 1
push 0x424008
mov dword [0x422acc], ebx
mov byte [0x42287a], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esp + 0x38]
push eax
push 0x202
mov dword [0x424020], ebx
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov eax, dword [ebp + 8]
call fcn.00415b04
test al, al
je 0x415fca
cmp dword [esp + 0x14], ebx
jne 0x416065
push ebx
push ebx
push 1
push 0x422da0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
or dword [0x423230], 0xffffffff
mov dword [0x42322c], eax
cmp eax, ebx
je 0x415fca
push 0x422d78
push 0xffffffffffffffff
call fcn.0041851c
mov dword [0x422d6c], eax
cmp eax, ebx
je 0x415fca
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov dword [0x422d70], eax
push eax
mov eax, dword [0x422d6c]
push dword [eax]
call fcn.004182b4
push dword [ebp + 8]
mov dword [0x422d74], eax
call fcn.00415b83
test al, al
je 0x415fca
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [0x422fd8], eax
mov dword [0x422fdc], ebx
cmp dword [esp + 0x14], ebx
jne 0x4160cb
call fcn.00415be5
jmp 0x4160cd
mov al, 1
test al, al
je 0x415fca
cmp dword [esp + 0x14], ebx
jne 0x416107
lea eax, [esp + 0x38]
call fcn.004164ee
push ebx
lea eax, [esp + 0x169]
push eax
push dword [0x422d74]
mov ecx, 0x4231d6
push 0x422fe0
mov eax, 0x84939312
call fcn.0041b562
push dword [ebp + 8]
call fcn.00415c37
test al, al
je 0x415fca
xor eax, eax
test byte [ebp + 8], 2
mov dword [0x424004], ebx
mov word [0x4223a8], ax
mov word [0x422918], ax
mov word [0x422890], ax
mov word [0x422818], ax
mov word [0x422a68], ax
mov word [0x422a00], ax
je 0x416150
call fcn.00415cee
jmp 0x416152
mov al, 1
test al, al
setne al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4