Function at 0x100116c0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017c98e
mov eax, dword fs:[0]
push eax
sub esp, 0x45c
mov eax, dword [0x101fd398]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x304], ecx
mov dword [ebp - 0x234], 0
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x318], eax
cmp dword [ebp - 0x234], 0
jle 0x10011d29
push str.berry_58_2.exe
lea ecx, [ebp - 0x25c]
call fcn.10004f90
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x25c]
push ecx
push 0x101e07c0
push 0x101e07d4
lea edx, [ebp - 0x274]
push edx
call fcn.1000fc60
add esp, 0x10
mov byte [ebp - 4], 1
push 0x38
lea ecx, [ebp - 0x2c4]
call fcn.10005000
lea ecx, [ebp - 0x2c4]
call fcn.10011df0
mov byte [ebp - 4], 2
push 1
push str.__A_Za_z0_9____0_9___0_9_____B_A_Za_z0_9_____G_0_9____..exe____
lea ecx, [ebp - 0x334]
call fcn.10011ed0
mov dword [ebp - 0x314], eax
mov eax, dword [ebp - 0x314]
mov dword [ebp - 0x310], eax
mov byte [ebp - 4], 3
push 0
mov ecx, dword [ebp - 0x310]
push ecx
lea edx, [ebp - 0x2c4]
push edx
lea eax, [ebp - 0x25c]
push eax
call fcn.10012d80
add esp, 0x10
mov byte [ebp - 0x2c8], al
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x334]
call fcn.10011e80
movzx ecx, byte [ebp - 0x2c8]
test ecx, ecx
je 0x10011cf9
push 0
lea edx, [ebp - 0x34c]
push edx
lea ecx, [ebp - 0x2c4]
call fcn.10011db0
mov dword [ebp - 0x30c], eax
mov eax, dword [ebp - 0x30c]
mov dword [ebp - 0x308], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x308]
push ecx
push 0x101e0834
push 0x101e0848
lea edx, [ebp - 0x28c]
push edx
call fcn.1000fc60
add esp, 0x10
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x34c]
call fcn.10004780
mov dword [ebp - 0x2d8], 0x101e085c
push 0xc
lea ecx, [ebp - 0x230]
call fcn.10005000
push 0
lea ecx, [ebp - 0x230]
call fcn.10009930
mov byte [ebp - 4], 7
push 0x2001f
mov eax, dword [ebp - 0x2d8]
push eax
push reloc.WS2_32.dll_accept
lea ecx, [ebp - 0x230]
call fcn.100096a0
test eax, eax
je 0x1001191d
push 0
push 0
push 0x2001f
push 0
push 0
mov ecx, dword [ebp - 0x2d8]
push ecx
push reloc.WS2_32.dll_accept
lea ecx, [ebp - 0x230]
call fcn.1001f910
test eax, eax
je 0x1001191d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x31c], eax
mov byte [ebp - 0x2c5], 0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x230]
call fcn.10009910
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28c]
call fcn.10004780
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c4]
call fcn.10011d50
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x274]
call fcn.10004780
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x25c]
call fcn.10004780
mov al, byte [ebp - 0x2c5]
jmp 0x10011d2b
push 4
lea ecx, [ebp - 0x220]
call fcn.10005000
lea edx, [ebp - 0x364]
push edx
mov ecx, dword [ebp - 0x304]
add ecx, 4
call fcn.1000e850
mov ecx, eax
call fcn.1002bfd0
mov dword [ebp - 0x2f8], eax
mov eax, dword [ebp - 0x2f8]
mov dword [ebp - 0x2e8], eax
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x2e8]
call fcn.1000b2d0
push eax
lea ecx, [ebp - 0x220]
call fcn.100121a0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x364]
call fcn.10004780
lea ecx, [ebp - 0x220]
call fcn.1001fe10
movzx ecx, al
test ecx, ecx
jne 0x10011a3d
mov dword [ebp - 0x320], 0
push 4
lea ecx, [ebp - 0x224]
call fcn.10005000
push 0x101e0874
lea ecx, [ebp - 0x224]
call fcn.1000af00
push 0xc
lea ecx, [ebp - 0x244]
call fcn.10005000
push 0
lea ecx, [ebp - 0x244]
call fcn.10009930
push 0x2001f
lea ecx, [ebp - 0x224]
call fcn.100055d0
push eax
push reloc.WS2_32.dll_accept
lea ecx, [ebp - 0x244]
call fcn.100096a0
mov dword [ebp - 0x2ec], eax
cmp dword [ebp - 0x2ec], 0
jne 0x10011a27
push 1
lea ecx, [ebp - 0x220]
call fcn.100055d0
push eax
push 0x101e088c
lea ecx, [ebp - 0x244]
call fcn.1001f7b0
lea ecx, [ebp - 0x244]
call fcn.10009910
lea ecx, [ebp - 0x224]
call fcn.10009c10
mov dword [ebp - 0x238], 0x104
push 4
lea ecx, [ebp - 0x21c]
call fcn.10005000
lea ecx, [ebp - 0x274]
call fcn.1000b2d0
push eax
lea ecx, [ebp - 0x468]
call fcn.10005640
mov dword [ebp - 0x2f0], eax
mov edx, dword [ebp - 0x2f0]
mov dword [ebp - 0x2f4], edx
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x2f4]
call fcn.100055d0
push eax
lea ecx, [ebp - 0x21c]
call fcn.1000af00
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x468]
call fcn.100055e0
push 0x208
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.10155d20
add esp, 0xc
lea ecx, [ebp - 0x238]
push ecx
lea edx, [ebp - 0x218]
push edx
push 0x101e0894
lea ecx, [ebp - 0x230]
call fcn.100094e0
mov dword [ebp - 0x2fc], eax
cmp dword [ebp - 0x2fc], 0
jne 0x10011b8e
mov dword [ebp - 0x2d0], 0x101e08b8
lea eax, [ebp - 0x218]
mov dword [ebp - 0x2cc], eax
mov ecx, dword [ebp - 0x2cc]
mov dx, word [ecx]
mov word [ebp - 0x2d2], dx
mov eax, dword [ebp - 0x2d0]
cmp dx, word [eax]
jne 0x10011b6a
cmp word [ebp - 0x2d2], 0
je 0x10011b5e
mov ecx, dword [ebp - 0x2cc]
mov dx, word [ecx + 2]
mov word [ebp - 0x2d4], dx
mov eax, dword [ebp - 0x2d0]
cmp dx, word [eax + 2]
jne 0x10011b6a
add dword [ebp - 0x2cc], 4
add dword [ebp - 0x2d0], 4
cmp word [ebp - 0x2d4], 0
jne 0x10011b04
mov dword [ebp - 0x2dc], 0
jmp 0x10011b75
sbb ecx, ecx
or ecx, 1
mov dword [ebp - 0x2dc], ecx
mov edx, dword [ebp - 0x2dc]
mov dword [ebp - 0x300], edx
cmp dword [ebp - 0x300], 0
jne 0x10011c45
push 1
lea ecx, [ebp - 0x21c]
call fcn.100055d0
push eax
push 0x101e08bc
lea ecx, [ebp - 0x230]
call fcn.1001f7b0
test eax, eax
jne 0x10011bbc
mov dword [ebp - 0x2e4], 1
jmp 0x10011bc6
mov dword [ebp - 0x2e4], 0
mov al, byte [ebp - 0x2e4]
mov byte [ebp - 0x2c6], al
lea ecx, [ebp - 0x21c]
call fcn.10009c10
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x220]
call fcn.10009c10
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x230]
call fcn.10009910
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28c]
call fcn.10004780
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c4]
call fcn.10011d50
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x274]
call fcn.10004780
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x25c]
call fcn.10004780
mov al, byte [ebp - 0x2c6]
jmp 0x10011d2b
push 1
lea ecx, [ebp - 0x21c]
call fcn.100055d0
push eax
push 0x101e08e0
lea ecx, [ebp - 0x230]
call fcn.1001f7b0
test eax, eax
jne 0x10011c73
mov dword [ebp - 0x2e0], 1
jmp 0x10011c7d
mov dword [ebp - 0x2e0], 0
mov cl, byte [ebp - 0x2e0]
mov byte [ebp - 0x2c7], cl
lea ecx, [ebp - 0x21c]
call fcn.10009c10
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x220]
call fcn.10009c10
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x230]
call fcn.10009910
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28c]
call fcn.10004780
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c4]
call fcn.10011d50
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x274]
call fcn.10004780
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x25c]
call fcn.10004780
mov al, byte [ebp - 0x2c7]
jmp 0x10011d2b
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c4]
call fcn.10011d50
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x274]
call fcn.10004780
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x25c]
call fcn.10004780
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101534c8
mov esp, ebp
pop ebp
ret