Function at 0x407360
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x41c4a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push esi
push edi
xor edi, edi
push edi
mov dword [ebp - 0x224], eax
call dword [sym.imp.ole32.dll_CoInitialize]
push edi
push edi
push edi
push edi
call dword [sym.imp.USER32.dll_DefWindowProcW]
lea ecx, [ebp - 0x218]
push ecx
mov dword [ebp - 0x218], 8
mov dword [ebp - 0x214], 4
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov esi, dword [0x41d704]
mov dword [0x41d5dc], edi
cmp esi, dword [0x41d708]
jae 0x4073de
mov eax, dword [esi]
cmp eax, edi
je 0x4073d3
mov edx, dword [eax + 0x20]
push 1
call edx
add esi, 4
cmp esi, dword [0x41d708]
jb 0x4073c6
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0xc
mov dword [0x41d5e0], eax
mov dword [0x41d5e4], edi
call fcn.00408710
add esp, 4
cmp eax, edi
je 0x407547
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [0x41d5e4], eax
mov dword [0x41d5e8], edi
push ebx
lea eax, [ebp - 0x200]
push eax
mov dword [ebp - 0x204], edi
mov dword [ebp - 0x200], edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xor ecx, ecx
mov dword [ebp - 0x220], eax
mov eax, 1
mov dword [ebp - 0x20c], ecx
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x214], edi
mov byte [ebp - 0x21c], cl
mov byte [ebp - 0x208], cl
mov dword [ebp - 0x1fc], eax
cmp dword [ebp - 0x200], eax
jle 0x407504
mov ecx, dword [ebp - 0x220]
mov ebx, dword [ecx + eax*4]
cmp word [ebx], 0x2f
jne 0x4075df
mov ecx, 7
mov esi, str._AUTOINSTALL:
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
mov ecx, 8
mov esi, str._PROGRESSTOKEN:
lea edi, [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
mov edx, 0x1a
lea eax, [ebp - 0x4c]
mov ecx, ebx
lea ecx, [ecx]
mov esi, dword [ecx]
cmp esi, dword [eax]
jne 0x407552
sub edx, 4
add eax, 4
add ecx, 4
cmp edx, 4
jae 0x4074b0
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x407552
mov al, byte [eax + 1]
cmp al, byte [ecx + 1]
jne 0x407552
add ebx, 0x1a
mov dword [ebp - 0x210], ebx
xor edi, edi
mov eax, dword [ebp - 0x1fc]
inc eax
mov dword [ebp - 0x1fc], eax
cmp eax, dword [ebp - 0x200]
jl 0x407472
mov ecx, dword [ebp - 0x20c]
xor eax, eax
lea edx, [ebp - 0x6c]
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x70], 1
mov word [ebp - 0x6c], ax
cmp ecx, edi
je 0x4075ea
mov eax, ecx
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, di
jne 0x407527
sub eax, esi
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x78]
call fcn.004047d0
xor eax, eax
jmp 0x407643
mov dword [0x41d5e4], edi
jmp 0x407414
mov edx, 0x1e
lea eax, [ebp - 0x24]
mov ecx, ebx
lea esp, [esp]
mov esi, dword [ecx]
cmp esi, dword [eax]
jne 0x407590
sub edx, 4
add eax, 4
add ecx, 4
cmp edx, 4
jae 0x407560
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x407590
mov al, byte [eax + 1]
cmp al, byte [ecx + 1]
jne 0x407590
add ebx, 0x1e
mov dword [ebp - 0x214], ebx
jmp 0x4074e3
push str._ELEVATED
push ebx
call fcn.0040bd29
add esp, 8
test eax, eax
jne 0x4075ae
mov byte [ebp - 0x21c], 1
jmp 0x4074e3
mov ecx, dword [ebp - 0x220]
mov edx, dword [ebp - 0x1fc]
mov eax, dword [ecx + edx*4]
push str._ALLUSERS
push eax
call fcn.0040bd29
add esp, 8
test eax, eax
jne 0x4074e3
mov byte [ebp - 0x208], 1
jmp 0x4074e3
mov dword [ebp - 0x20c], ebx
jmp 0x4074e5
push 0x20a
call fcn.0040ae86
add esp, 4
mov dword [ebp - 0x78], eax
xor ecx, ecx
mov word [eax], cx
mov edx, dword [ebp - 0x78]
push 0x104
push edx
push edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x70], 0x105
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, dword [ebp - 0x70]
cmp eax, ecx
jb 0x40762a
lea eax, [ecx - 1]
cmp ecx, edi
jne 0x407632
xor eax, eax
jmp 0x40763b
mov edx, dword [ebp - 0x78]
xor ecx, ecx
mov word [edx + eax*2], cx
mov dword [ebp - 0x74], eax
mov eax, pe_overlay
mov ecx, dword [ebp - 0x210]
cmp ecx, edi
je 0x407682
mov edx, dword [ebp - 0x208]
push edx
mov edx, dword [ebp - 0x224]
push edx
mov edx, dword [ebp - 0x21c]
push edx
mov edx, dword [ebp - 0x214]
push edx
push ecx
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.00407130
add esp, 0x1c
mov dword [ebp - 0x204], eax
jmp 0x407706
push edi
push eax
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x1f8]
call fcn.00405840
cmp byte [ebp - 0x1f8], 0
jne 0x4076b1
push 0x10
push str.Error
push str.Installation_file_is_corrupt._Please_visit_http:__gnutoolchains.com_and_re_download_it.
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x4076fb
lea edx, [ebp - 0x1f8]
push edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x30], 0x417854
mov dword [ebp - 0x10], 0x417848
mov dword [ebp - 0xc], edx
mov byte [ebp - 8], 0
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ecx, [ebp - 0x30]
call fcn.00404e80
mov dword [ebp - 0x204], eax
mov eax, dword [ebp - 0x1c]
cmp eax, edi
je 0x4076fb
push eax
call fcn.0040ac3f
lea ecx, [ebp - 0x1f8]
call fcn.004042a0
mov ebx, dword [0x41d584]
add ebx, 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x41d5e8]
cmp eax, edi
je 0x407736
mov ecx, dword [eax + 4]
cmp ecx, edi
jle 0x407736
mov eax, dword [eax]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [0x41d5e8]
mov esi, eax
cmp eax, edi
je 0x40775c
mov eax, dword [eax]
cmp eax, edi
je 0x40774d
push eax
call fcn.0040af1a
add esp, 4
mov dword [esi], edi
push esi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
call fcn.00408740
add esp, 4
push ebx
mov dword [0x41d5e8], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [0x41d5e4]
pop ebx
cmp esi, edi
je 0x4077a4
mov eax, dword [esi]
cmp eax, edi
je 0x407785
push eax
call fcn.0040af1a
add esp, 4
mov dword [esi], edi
mov eax, dword [esi + 4]
cmp eax, edi
je 0x407798
push eax
call fcn.0040af1a
add esp, 4
mov dword [esi + 4], edi
push esi
mov dword [esi + 8], edi
call fcn.00408740
add esp, 4
mov ecx, 0x41d5b0
call fcn.00401a30
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x78]
cmp eax, edi
pop edi
pop esi
je 0x4077cd
lea edx, [ebp - 0x6c]
cmp eax, edx
je 0x4077cd
push eax
call fcn.0040af1a
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x204]
xor ecx, ebp
call fcn.0040b16b
mov esp, ebp
pop ebp
ret 0x10