Function at 0x40b730
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c8
mov eax, dword [0x47e064]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push esi
push 0
mov dword [ebp - 0x2c8], eax
call dword [sym.imp.ole32.dll_CoInitialize]
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_DefWindowProcW]
lea eax, [ebp - 0x2c4]
mov dword [ebp - 0x2c4], 8
push eax
mov dword [ebp - 0x2c0], 4
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov esi, dword [0x47e008]
mov ecx, dword [0x47e00c]
mov dword [0x47f3cc], 0
cmp esi, ecx
jae 0x40b7ba
nop
mov eax, dword [esi]
test eax, eax
je 0x40b7b3
mov eax, dword [eax + 0x1c]
push 1
call eax
mov ecx, dword [0x47e00c]
add esi, 4
cmp esi, ecx
jb 0x40b7a0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0xc
mov dword [0x47f3d0], eax
mov dword [0x47f3d4], 0
call fcn.0042cd1a
add esp, 4
test eax, eax
je 0x40b802
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [0x47f3d4], eax
mov dword [0x47f3d8], 0
jmp 0x40b80c
mov dword [0x47f3d4], 0
push ebx
push edi
lea eax, [ebp - 0x2ac]
mov dword [ebp - 0x2a8], 0
push eax
mov dword [ebp - 0x2ac], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov ebx, 1
xor eax, eax
mov dword [ebp - 0x2a4], esi
mov dword [ebp - 0x2a0], eax
mov dword [ebp - 0x2b4], eax
mov dword [ebp - 0x2c0], eax
mov byte [ebp - 0x2bc], al
mov byte [ebp - 0x2b8], al
mov byte [ebp - 0x2b0], al
cmp dword [ebp - 0x2ac], ebx
jle 0x40b9c5
nop word [eax + eax]
mov edi, dword [esi + ebx*4]
cmp word [edi], 0x2f
jne 0x40b9b0
movups xmm0, xmmword [0x46b25c]
mov eax, dword [0x46b274]
lea edx, [ebp - 0x20]
mov dword [ebp - 8], eax
mov ecx, edi
movups xmmword [ebp - 0x20], xmm0
mov esi, 0x16
movq xmm0, qword [0x46b26c]
movq qword [ebp - 0x10], xmm0
movups xmm0, xmmword [str._PROGRESSTOKEN:]
movups xmmword [ebp - 0x40], xmm0
movups xmm0, xmmword [0x46b288]
movups xmmword [ebp - 0x30], xmm0
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x40b903
add ecx, 4
add edx, 4
sub esi, 4
jae 0x40b8d0
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x40b903
mov eax, dword [ebp - 0x2a0]
lea ecx, [edi + 0x1a]
mov esi, dword [ebp - 0x2a4]
mov dword [ebp - 0x2b4], ecx
jmp 0x40b9b8
mov ecx, edi
lea edx, [ebp - 0x40]
mov esi, 0x1a
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x40b943
add ecx, 4
add edx, 4
sub esi, 4
jae 0x40b910
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x40b943
mov eax, dword [ebp - 0x2a0]
lea ecx, [edi + 0x1e]
mov esi, dword [ebp - 0x2a4]
mov dword [ebp - 0x2c0], ecx
jmp 0x40b9b8
push str._ELEVATED
push edi
call fcn.00438006
mov esi, dword [ebp - 0x2a4]
add esp, 8
test eax, eax
jne 0x40b96a
mov eax, dword [ebp - 0x2a0]
mov byte [ebp - 0x2bc], 1
jmp 0x40b9b8
push str._ALLUSERS
push dword [esi + ebx*4]
call fcn.00438006
add esp, 8
test eax, eax
jne 0x40b98d
mov eax, dword [ebp - 0x2a0]
mov byte [ebp - 0x2b8], 1
jmp 0x40b9b8
push str._LOG
push dword [esi + ebx*4]
call fcn.00438006
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x2a0]
jne 0x40b9b8
mov byte [ebp - 0x2b0], 1
jmp 0x40b9b8
mov eax, edi
mov dword [ebp - 0x2a0], eax
inc ebx
cmp ebx, dword [ebp - 0x2ac]
jl 0x40b880
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x6c], ecx
mov esi, pe_overlay
xor ecx, ecx
mov dword [ebp - 0x64], 1
mov word [ebp - 0x60], cx
test eax, eax
je 0x40ba7e
push eax
lea ecx, [ebp - 0x6c]
call fcn.0040b360
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x40ba23
cmp eax, 4
jb 0x40ba23
mov ecx, dword [ebp - 0x6c]
lea ebx, [eax - 3]
mov dword [ebp - 0x2a4], ecx
mov eax, ebx
mov edx, ecx
test ebx, ebx
je 0x40ba23
cmp word [edx], 0x2e
je 0x40ba3d
add edx, 2
sub eax, 1
jne 0x40ba15
or edx, 0xffffffff
mov eax, dword [ebp - 0x68]
xor esi, esi
add eax, 0xfffffffc
mov ecx, pe_overlay
cmp edx, eax
cmove esi, ecx
jmp 0x40bb09
test edx, edx
je 0x40ba23
mov ecx, str..exe
mov edi, edx
mov esi, 4
sub edi, ecx
nop
mov ax, word [ecx + edi]
cmp ax, word [ecx]
jne 0x40ba68
add ecx, 2
sub esi, 1
jne 0x40ba50
sub edx, dword [ebp - 0x6c]
sar edx, 1
jmp 0x40ba26
mov ecx, edx
or eax, 0xffffffff
sub ecx, dword [ebp - 0x2a4]
sar ecx, 1
sub eax, ecx
lea ecx, [edx + 2]
add ebx, eax
jmp 0x40ba07
push 0x20a
call fcn.00438180
mov edx, dword [ebp - 0x64]
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x6c], eax
test edx, edx
jne 0x40baa6
lea ecx, [edx - 1]
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x64], 0x105
jmp 0x40bad4
xor edx, edx
mov word [eax + ecx*2], dx
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x64], 0x105
cmp ecx, 0x104
jb 0x40bad4
xor ecx, ecx
mov word [eax + 0x206], cx
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x68], 0x103
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, eax
mov eax, dword [ebp - 0x64]
cmp ecx, eax
jb 0x40baf5
lea ecx, [eax - 1]
test eax, eax
jne 0x40bafd
xor ecx, ecx
jmp 0x40bb06
mov eax, dword [ebp - 0x6c]
xor edx, edx
mov word [eax + ecx*2], dx
mov dword [ebp - 0x68], ecx
mov eax, dword [ebp - 0x2b4]
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test eax, eax
je 0x40bb50
push dword [ebp - 0x2b0]
push dword [ebp - 0x2b8]
push dword [ebp - 0x2c8]
push dword [ebp - 0x2bc]
push dword [ebp - 0x2c0]
push eax
lea eax, [ebp - 0x6c]
push esi
push eax
call fcn.00407440
add esp, 0x20
mov dword [ebp - 0x2a8], eax
jmp 0x40bd3e
push 0
push esi
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x29c]
call fcn.00403660
cmp byte [ebp - 0x29c], 0
jne 0x40bb84
push 0x10
push str.Error
push str.Installation_file_is_corrupt._Please_visit_http:__gnutoolchains.com_and_re_download_it.
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x40bd33
lea eax, [ebp - 0x29c]
mov dword [ebp - 0x108], 0
mov dword [ebp - 0xe8], eax
mov al, byte [ebp - 0x2b0]
mov byte [ebp - 0xe3], al
lea eax, [ebp - 0xd4]
mov dword [ebp - 0xe0], eax
xor eax, eax
mov word [ebp - 0xd4], ax
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xb4], eax
xor eax, eax
mov word [ebp - 0xa8], ax
lea eax, [ebp - 0x84]
push eax
mov dword [ebp - 0xf8], 0
mov dword [ebp - 0xf4], 0
mov dword [ebp - 0xf0], 0
mov dword [ebp - 0x10c], 0x46b23c
mov dword [ebp - 0xec], 0x46b250
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xd8], 1
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], 1
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [ebp - 0xe4], 0
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
mov eax, dword [ebp - 0xf8]
test eax, eax
jne 0x40bc73
call fcn.0042c431
mov dword [ebp - 0xf8], eax
test eax, eax
jne 0x40bc73
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x2a8], 0xffffffff
jmp 0x40bcdc
push 0
push 0
push eax
call fcn.0042c533
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x104], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x47e02c
mov dword [ebp - 0x100], eax
call ebx
mov eax, dword [0x47e044]
mov dword [ebp - 0xfc], eax
lea eax, [ebp - 0x104]
push 0x47e02c
mov dword [0x47e044], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
push 0x409400
push esi
push 0x81
push dword [0x47f5b0]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
mov dword [ebp - 0x2a8], eax
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [ebp - 0xb4]
test eax, eax
je 0x40bd06
lea ecx, [ebp - 0xa8]
cmp eax, ecx
je 0x40bd06
push eax
call fcn.0043817b
add esp, 4
mov eax, dword [ebp - 0xe0]
test eax, eax
je 0x40bd23
lea ecx, [ebp - 0xd4]
cmp eax, ecx
je 0x40bd23
push eax
call fcn.0043817b
add esp, 4
mov eax, dword [ebp - 0xf8]
test eax, eax
je 0x40bd33
push eax
call fcn.0042c4dd
lea ecx, [ebp - 0x29c]
call fcn.00403b70
mov edi, dword [0x47f384]
add edi, 0x10
push edi
call ebx
mov esi, dword [0x47f3d8]
test esi, esi
je 0x40bd9c
cmp dword [esi + 4], 0
jle 0x40bd6a
mov eax, dword [esi]
push dword [eax]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov esi, dword [0x47f3d8]
test esi, esi
je 0x40bd9c
mov eax, dword [esi]
test eax, eax
je 0x40bd83
push eax
call fcn.0043817b
add esp, 4
mov dword [esi], 0
push 0xc
push esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.0042cd4a
add esp, 8
push edi
mov dword [0x47f3d8], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [0x47f3d4]
pop edi
pop ebx
test esi, esi
je 0x40bdf7
mov eax, dword [esi]
test eax, eax
je 0x40bdce
push eax
call fcn.0043817b
add esp, 4
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40bde5
push eax
call fcn.0043817b
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
mov dword [esi + 8], 0
call fcn.0042cd4a
add esp, 8
mov esi, dword [0x47f3cc]
test esi, esi
je 0x40be29
cmp dword [esi], 0
je 0x40be29
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x40be13
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [esi + 0x20]
push 0
mov dword [esi + 0x10], 0
call eax
add esi, 0x24
cmp dword [esi], 0
jne 0x40be06
mov esi, dword [0x47e008]
mov ecx, dword [0x47e00c]
cmp esi, ecx
jae 0x40be5a
nop dword [eax]
mov eax, dword [esi]
test eax, eax
je 0x40be53
mov eax, dword [eax + 0x1c]
push 0
call eax
mov ecx, dword [0x47e00c]
add esi, 4
cmp esi, ecx
jb 0x40be40
mov ecx, 0x47f3a0
call fcn.00409510
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x6c]
pop esi
test eax, eax
je 0x40be82
lea ecx, [ebp - 0x60]
cmp eax, ecx
je 0x40be82
push eax
call fcn.0043817b
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2a8]
xor ecx, ebp
call fcn.0042d480
mov esp, ebp
pop ebp
ret 0x10