Function at 0x2000afc0
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x560
push ebx
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x2d]
mov byte [esp + 0x2c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x175]
mov byte [esp + 0x174], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x279]
mov byte [esp + 0x278], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x574]
push 0x104
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x30]
mov dword [esp + 0x1c], 0x104
push eax
push ecx
mov byte [esp + 0x1f], 0
call dword [0x2001a264]
lea edx, [esp + 0x174]
push 0x104
lea eax, [esp + 0x30]
push edx
push eax
call fcn.20012640
mov edi, dword [0x2001a248]
add esp, 0xc
lea ecx, [esp + 0x174]
lea edx, [esp + 0x2c]
push ecx
push edx
call edi
lea eax, [esp + 0x2c]
push eax
call fcn.200159f0
mov esi, dword [0x2001a344]
add esp, 4
test al, al
jne 0x2000b0a4
lea ecx, [esp + 0x2c]
push 0x20
push ecx
call esi
add esp, 8
test eax, eax
je 0x2000b0a4
lea edx, [esp + 0x2c]
mov byte [eax], 0
push edx
call fcn.200159f0
add esp, 4
test al, al
je 0x2000b080
lea eax, [esp + 0x2c]
push eax
call fcn.200159f0
add esp, 4
test al, al
jne 0x2000b0c2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x560
ret 8
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x278]
push ecx
push edx
call edi
lea eax, [esp + 0x2c]
push 0x2e
push eax
lea ebp, [esp + 0x34]
call esi
add esp, 8
test eax, eax
je 0x2000b1e6
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea ecx, [esp + 0x14]
push ecx
push 0xf003f
push 0
push eax
push SysReAllocString
call ebx
test eax, eax
jne 0x2000b1e6
mov ecx, dword [esp + 0x14]
mov esi, dword [0x2001a020]
lea edx, [esp + 0x18]
lea eax, [esp + 0x2c]
push edx
push eax
push 0
push ecx
call esi
mov edx, dword [esp + 0x14]
mov ebp, dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push edx
call ebp
mov ecx, 0x7d
xor eax, eax
lea edi, [esp + 0x37c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x37c]
push eax
push 0x200235f4
push ecx
call dword [0x2001a4fc]
add esp, 0xc
lea edx, [esp + 0x14]
lea eax, [esp + 0x37c]
push edx
push 0xf003f
push 0
push eax
push SysReAllocString
call ebx
test eax, eax
je 0x2000b18a
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x560
ret 8
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x2c]
lea edx, [esp + 0x2c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0x104
push ecx
push edx
push eax
mov eax, dword [esp + 0x20]
push eax
call esi
mov ecx, dword [esp + 0x14]
push ecx
call ebp
mov ebx, dword [0x2001a340]
lea edx, [esp + 0x2c]
push 0x200235f0
push edx
call ebx
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x2000b1ec
lea eax, [esp + 0x2c]
push 0x20023460
push eax
call ebx
add esp, 8
mov ebp, eax
jmp 0x2000b1ec
mov ebx, dword [0x2001a340]
mov ecx, dword [esp + 0x574]
push 0x200235e0
push ecx
call ebx
add esp, 8
test eax, eax
je 0x2000b262
mov edi, 0x20021f50
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x174]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x174]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x20024a18
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test ebp, ebp
jne 0x2000b289
mov esi, dword [0x2001a268]
lea eax, [esp + 0x2c]
push 0x20021f50
push eax
call esi
lea ecx, [esp + 0x174]
lea edx, [esp + 0x2c]
push ecx
push edx
call esi
jmp 0x2000b298
lea eax, [esp + 0x174]
push eax
push ebp
call dword [0x2001a248]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x134]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x578]
mov dword [esp + 0x130], 0x44
test eax, eax
je 0x2000b2cb
mov dword [esp + 0x138], 0x20023430
jmp 0x2000b2d6
mov dword [esp + 0x15c], 1
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x130]
push ecx
push edx
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x48]
push 0
push eax
push 0
call dword [0x2001a1b8]
test eax, eax
je 0x2000b319
mov ecx, dword [esp + 0x20]
mov esi, dword [0x2001a260]
push ecx
call esi
mov edx, dword [esp + 0x1c]
push edx
call esi
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x574]
push 0x20021f44
push eax
call ebx
add esp, 8
test eax, eax
je 0x2000b341
push 4
lea ecx, [esp + 0x27c]
push 0
push ecx
call dword [0x2001a200]
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x560
ret 8