Function at 0x20085c7
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xdc
mov eax, dword [0x2010010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push esi
push edi
lea edx, [ebp - 0xcc]
push edx
push 0x20023d8
xor esi, esi
push eax
push ecx
mov dword [ebp - 0xb8], ecx
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xac], esi
mov dword [ebp - 0xb0], esi
mov dword [0x2014228], esi
call dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
test eax, eax
jne 0x2008642
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
mov dword [0x2014220], esi
call fcn.0200a6d4
push eax
push 0x20022d8
call fcn.0200a6bc
pop ecx
pop ecx
jmp 0x20088b4
push ebx
mov ebx, 0x2012d84
mov esi, 0x2010968
mov edi, dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldW]
lea edx, [ebp - 0xb4]
push edx
push 0x100
xor ecx, ecx
lea eax, [ebx + 0xc]
push eax
inc ecx
push ecx
lea eax, [ebp - 0xcc]
push eax
mov dword [0x2014220], ecx
call edi
test eax, eax
je 0x20087e0
lea eax, [ebp - 0xb4]
push eax
push 0x50
lea eax, [ebp - 0xa4]
push eax
push 2
lea eax, [ebp - 0xcc]
push eax
call edi
test eax, eax
je 0x20087e0
cmp dword [ebp - 0xb4], 0x1000
ja 0x2008800
lea eax, [ebp - 0xdc]
push eax
push 0x20022ac
lea eax, [ebp - 0xa4]
push eax
push dword [ebp - 0xb8]
call dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
test eax, eax
je 0x200881e
push 0
push 0x1000
push esi
push 1
lea eax, [ebp - 0xdc]
push eax
call edi
test eax, eax
je 0x2008834
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x20086f8
sub eax, edx
sar eax, 1
cmp eax, 2
jb 0x200885d
lea eax, [ebp - 0xa8]
push eax
push esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0xac], eax
test eax, eax
je 0x2008879
cmp dword [ebp - 0xa8], 0
je 0x2008879
xor edi, edi
inc edi
cmp dword [ebp - 0xa8], edi
jle 0x2008754
push 0x2002200
call fcn.0200a6bc
pop ecx
mov dword [ebp - 0xa8], edi
push ebx
lea eax, [ebp - 0xa8]
push eax
push dword [ebp - 0xac]
call fcn.020085a0
mov edi, eax
test edi, edi
jne 0x2008868
mov eax, dword [ebp - 0xa8]
mov dword [ebx - 4], eax
test eax, eax
je 0x2008879
push 1
push ebx
push section..data
call fcn.0200b753
test eax, eax
jne 0x20087c0
push dword [ebx + 4]
lea eax, [ebx + 0xc]
push dword [ebx]
push eax
push 0x2002138
call fcn.0200a6bc
add esp, 0x10
inc dword [ebp - 0xb0]
mov eax, dword [ebp - 0xb0]
add ebx, 0x210
mov dword [0x2014228], eax
lea eax, [ebp - 0xcc]
push eax
push 0x20023d8
push eax
call dword [sym.imp.SETUPAPI.dll_SetupFindNextMatchLineW]
test eax, eax
jne 0x200864d
jmp 0x2008887
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
call fcn.0200a6d4
push eax
push 0x20020c8
call fcn.0200a6bc
pop ecx
pop ecx
jmp 0x2008887
push 0xd
pop edi
push edi
call fcn.0200a6d4
push eax
push 0x1000
push 0x2002030
call fcn.0200a6bc
add esp, 0xc
jmp 0x2008887
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
call fcn.0200a6d4
push eax
push 0x2001fa0
jmp 0x20087f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
call fcn.0200a6d4
push eax
push 0x20022ac
push dword [ebp - 0xbc]
push 0x2001f20
call fcn.0200a6bc
add esp, 0x10
jmp 0x2008887
push 0xd
pop edi
push esi
push 0x2001e88
jmp 0x20087f4
push edi
call fcn.0200a6d4
push eax
push 0x2001e08
jmp 0x20087f4
push 0x2001d78
call fcn.0200a6bc
pop ecx
push 0x57
pop edi
cmp dword [ebp - 0xac], 0
pop ebx
je 0x200889d
push dword [ebp - 0xac]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [0x2014228], 0
jne 0x20088b4
push 0x2001c50
call fcn.0200a6bc
pop ecx
push 0xd
pop edi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0200de5e
leave
ret 8