Function at 0x100060f8
Capabilities:
Accept command line arguments
Enumerate gui resources
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2dc
mov eax, dword [0x100ff440]
xor eax, esp
mov dword [esp + 0x2d8], eax
cmp byte [0x10103ae4], 0
push ebx
push esi
push edi
jne 0x10006471
xor eax, eax
mov byte [0x10103ae4], 1
lea edi, [esp + 0x2c]
xor ebx, ebx
stosd dword es:[edi], eax
lea ecx, [esp + 0x2c]
push 7
pop esi
push ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov edi, 0x1000
mov dword [esp + 0x40], ebx
push edi
mov dword [esp + 0x48], esi
mov word [esp + 0x34], ax
call fcn.1000774e
cmp dword [esp + 0x40], esi
lea eax, [esp + 0x2c]
push edi
cmova eax, dword [esp + 0x30]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp dword [esp + 0x40], esi
lea edx, [esp + 0x2c]
mov esi, dword [esp + 0x3c]
cmova edx, dword [esp + 0x2c]
test esi, esi
je 0x100061a7
lea eax, [esi - 1]
or ecx, 0xffffffff
cmp eax, ecx
push 0x5c
cmovb ecx, eax
pop eax
lea ecx, [edx + ecx*2]
jmp 0x1000619c
cmp ecx, edx
je 0x100061a7
sub ecx, 2
cmp word [ecx], ax
jne 0x10006195
sub ecx, edx
sar ecx, 1
jmp 0x100061aa
or ecx, 0xffffffff
xor eax, eax
lea edi, [esp + 0x44]
stosd dword es:[edi], eax
cmp esi, ecx
push 7
cmovb ecx, esi
pop esi
cmp dword [esp + 0x40], esi
stosd dword es:[edi], eax
push ecx
lea ecx, [esp + 0x48]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x30]
cmova eax, dword [esp + 0x30]
push eax
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
call fcn.1001f7b3
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x30]
call fcn.10006ffd
lea ecx, [esp + 0x44]
call fcn.10007720
cmp dword [esp + 0x40], esi
lea eax, [esp + 0x2c]
cmova eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x10006275
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push 0x70
mov dword [esp + 0x28], eax
lea eax, [esp + 0x84]
push ebx
push eax
mov dword [esp + 0x34], 1
call fcn.100496f0
lea eax, [esp + 0x34]
add esp, 0xc
mov dword [esp + 0x44], eax
lea ecx, [esp + 0x80]
lea eax, [esp + 0x24]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x44]
push eax
call fcn.10005f90
lea ecx, [esp + 0x80]
call fcn.100439e0
lea ecx, [esp + 0xe4]
call fcn.1002fb60
lea ecx, [esp + 0x80]
call fcn.10043310
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.CFNetwork.dll
call ebx
test eax, eax
jne 0x100062ef
push 0x100f09b0
lea ecx, [esp + 0x48]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov byte [esp + 0x58], al
mov dword [esp + 0x5c], eax
call fcn.10007e75
push 0
push ecx
push 3
push 0x100f09b4
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x104]
call fcn.1001f50f
mov al, byte [esp + 0x150]
test al, al
je 0x10006313
lea ecx, [esp + 0xf0]
call fcn.10002426
cmp byte [esp + 0x54], 0
jne 0x100062ef
push dword [esp + 0x58]
call fcn.10047c43
pop ecx
xor eax, eax
mov edi, eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov eax, 0x7ffffffe
sub eax, dword [esp + 0x3c]
mov dword [esp + 0x5c], edi
cmp eax, 1
jb 0x10006486
jmp 0x10006347
xor cl, cl
mov byte [esp + 0x153], cl
test al, al
jne 0x100062d2
test cl, cl
jne 0x100062ce
call fcn.10001814
push 0xffffffffffffffff
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov al, byte [esp + 0x150]
test al, al
jne 0x100062d2
mov cl, byte [esp + 0x153]
jmp 0x10006320
cmp dword [esp + 0x40], esi
lea eax, [esp + 0x2c]
push 1
cmova eax, dword [esp + 0x30]
push ecx
push dword [esp + 0x44]
push eax
push ecx
push dword [esp + 0x38]
lea ecx, [esp + 0x5c]
call fcn.10020a7f
push 0xe
push str.tournament.wav
lea ecx, [esp + 0x4c]
call fcn.10006f64
push eax
lea ecx, [esp + 0x6c]
call fcn.10007034
lea ecx, [esp + 0x44]
call fcn.10007720
cmp dword [esp + 0x7c], esi
lea eax, [esp + 0x68]
lea ecx, [esp + 0xc]
cmova eax, dword [esp + 0x68]
push eax
call fcn.1000706f
push ecx
push ecx
lea edx, [esp + 0x14]
lea ecx, [esp + 0x4c]
call fcn.1000603b
and dword [esp + 0x30], edi
mov esi, eax
lea eax, [esp + 0x64]
pop ecx
pop ecx
cmp eax, esi
je 0x100063ec
mov ecx, eax
call fcn.10007109
mov eax, dword [esi + 4]
mov edi, dword [esi]
mov dword [esp + 0x60], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x64], eax
xor eax, eax
mov dword [esp + 0x5c], edi
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esp + 0x28], edi
lea ecx, [esp + 0x44]
call fcn.10007109
lea ecx, [esp + 0xc]
call fcn.10007720
push str.chrome_elf.dll
call ebx
push 0x263e
push 0
lea esi, [eax + 0x1000]
push esi
mov dword [esp + 0x30], esi
call fcn.100496f0
mov esi, dword [esp + 0x34]
add esp, 0xc
xor ebx, ebx
movzx eax, bl
lea edx, [esi + ebx]
imul eax, eax, 0x77
mov cl, 0xc6
sub cl, al
mov eax, 0x263e
add byte [edx], cl
inc ebx
cmp ebx, eax
jb 0x10006425
mov esi, dword [esp + 0x24]
push eax
push edi
push esi
call fcn.10049850
add esp, 0xc
push 0
push esi
call dword [sym.imp.USER32.dll_EnumWindows]
lea ecx, [esp + 0x68]
call fcn.10007720
lea ecx, [esp + 0x5c]
call fcn.10007109
lea ecx, [esp + 0x2c]
call fcn.10007720
mov ecx, dword [esp + 0x2e4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10047c35
mov esp, ebp
pop ebp
ret
call fcn.1000136b
int3