Function at 0x41c5e2
Capabilities:
Accept command line arguments
Initialize winsock library
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x304
push ebx
mov dword [esp + 8], ecx
push esi
xor ebx, ebx
and dword [esp + 0xc], 1
push edi
mov dword [esp + 0xc], ecx
jne 0x41c608
mov dword [0x42ac78], ebx
call fcn.0041c0eb
mov edi, eax
mov dword [0x42ac90], edi
cmp edi, ebx
je 0x41c79e
cmp dword [esp + 0x10], ebx
jne 0x41c63c
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [0x42ac8c], eax
cmp eax, ebx
je 0x41c79e
jmp 0x41c6e9
push 0x408554
call fcn.0041c025
push 0x408564
mov dword [esp + 0x20], eax
call fcn.0041c025
mov dword [esp + 0x18], eax
mov eax, dword [0x42ac8c]
mov ecx, dword [eax + 0x3c]
mov dword [esp + 0x14], eax
lea ecx, [ecx + eax + 0x80]
cmp dword [esp + 0x18], ebx
je 0x41c6e9
cmp dword [esp + 0x1c], ebx
je 0x41c6e9
mov edi, dword [ecx]
cmp edi, ebx
jbe 0x41c6e9
cmp dword [ecx + 4], 0x14
jbe 0x41c6e9
add edi, eax
cmp dword [edi], ebx
je 0x41c6e9
mov eax, dword [edi + 0xc]
add eax, dword [esp + 0x14]
push eax
call dword [esp + 0x1c]
mov dword [esp + 0x20], eax
cmp eax, ebx
je 0x41c79e
mov esi, dword [edi]
mov ebx, dword [edi + 0x10]
add esi, dword [esp + 0x14]
add ebx, dword [esp + 0x14]
jmp 0x41c6da
jns 0x41c6b9
and eax, 0xffff
jmp 0x41c6c1
mov ecx, dword [esp + 0x14]
lea eax, [eax + ecx + 2]
push eax
push dword [esp + 0x24]
call dword [esp + 0x24]
test eax, eax
je 0x41c79e
mov dword [ebx], eax
add esi, 4
add ebx, 4
mov eax, dword [esi]
test eax, eax
jne 0x41c6b0
add edi, 0x14
xor ebx, ebx
cmp dword [edi], ebx
jne 0x41c689
lea esi, [esp + 0x24]
mov eax, 0xe5
call fcn.004106a9
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [0x42ac94], eax
cmp eax, ebx
je 0x41c79e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x408574
push eax
call esi
push 0x408584
push dword [0x42ac94]
mov dword [0x42ac98], eax
call esi
push 0x408598
push dword [0x42ac94]
mov dword [0x42ac9c], eax
call esi
push 0x4085b4
push dword [0x42ac94]
mov dword [0x42aca0], eax
call esi
push 0x4085c8
push dword [0x42ac94]
mov dword [0x42aca4], eax
call esi
push 0x4085d4
push dword [0x42ac94]
mov dword [0x42aca8], eax
call esi
mov dword [0x42acac], eax
cmp dword [0x42ac98], ebx
jne 0x41c78a
cmp dword [0x42ac9c], ebx
je 0x41c79e
cmp dword [0x42aca0], ebx
je 0x41c79e
cmp dword [0x42aca8], ebx
je 0x41c79e
cmp eax, ebx
jne 0x41c7a5
xor al, al
jmp 0x41c9a8
push ebx
push 0x80000
push ebx
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [0x42bf34], eax
cmp eax, ebx
jne 0x41c7cf
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [0x42bf34], eax
mov byte [0x42a49a], 0
jmp 0x41c7d6
mov byte [0x42a49a], 1
push 0x42ab38
mov dword [0x42b568], ebx
mov byte [0x42a432], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esp + 0x38]
push eax
push 0x202
mov dword [0x42a724], ebx
call dword [sym.imp.WS2_32.dll_WSAStartup]
call fcn.004204c5
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_MessageBeep]
push 0x420761
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov eax, dword [esp + 0xc]
call fcn.0041c125
test al, al
je 0x41c79e
cmp dword [esp + 0x10], ebx
jne 0x41c83a
call fcn.0041c205
jmp 0x41c83c
mov al, 1
test al, al
je 0x41c79e
call fcn.0041c24a
test al, al
je 0x41c79e
push dword [esp + 0xc]
call fcn.0041c2c7
test al, al
je 0x41c79e
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [0x42aee8], eax
mov dword [0x42aeec], ebx
cmp dword [esp + 0x10], ebx
jne 0x41c880
call fcn.0041c356
jmp 0x41c882
mov al, 1
test al, al
je 0x41c79e
cmp dword [esp + 0x10], ebx
jne 0x41c8bc
lea eax, [esp + 0x38]
call fcn.0041cdd3
push ebx
lea eax, [esp + 0x10a]
push eax
push dword [0x42ac84]
mov ecx, 0x42b0e6
push 0x42aef0
mov eax, 0x84939312
call fcn.00423298
push dword [esp + 0xc]
call fcn.0041c3a8
test al, al
je 0x41c79e
xor eax, eax
test byte [esp + 0xc], 2
mov dword [0x42c164], ebx
mov word [0x42a728], ax
mov word [0x42a3d0], ax
mov word [0x42a4a0], ax
mov word [0x42a438], ax
mov word [0x42c1f8], ax
mov word [0x42c190], ax
je 0x41c907
call fcn.0041c487
jmp 0x41c909
mov al, 1
test al, al
je 0x41c79e
lea eax, [esp + 0xc]
push eax
mov eax, dword [0x42ac7c]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
test eax, eax
jne 0x41c92b
mov dword [esp + 0xc], ebx
lea eax, [esp + 0x38]
call fcn.0041cdd3
mov esi, dword [esp + 0xc]
cmp esi, ebx
jne 0x41c941
mov esi, 0x408940
push 0x2d8
lea eax, [esp + 0x3c]
push eax
call fcn.0041fbbe
push eax
push esi
push 0x42acd8
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push dword [0x42acd4]
movzx eax, byte [0x42aee4]
push dword [0x42ac78]
push eax
push 1
push ebx
push 1
push 2
push 0x408948
push ebx
push 0x2ae
push 0x408630
push 0x408ab4
call fcn.00420542
add esp, 0x40
cmp dword [esp + 0xc], ebx
je 0x41c9a6
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret