Function at 0x427180
Capabilities:
Get file system object information
Get graphical window text
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0xd50
mov eax, dword [esp + 0xd54]
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push 0xf7
push eax
mov dword [ebp + 0x12c], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [ebp + 0x12c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x288]
push 0x104
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov edx, dword [ebp + 0x138]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x288]
push edx
lea ecx, [esp + 0x188]
push eax
push ecx
call ebx
mov eax, dword [ebp + 0x12c]
add esp, 0xc
lea edx, [esp + 0x184]
push edx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov edx, dword [ebp + 0x12c]
mov esi, dword [sym.imp.USER32.dll_GetDlgItemTextA]
lea ecx, [esp + 0x288]
push 0x104
push ecx
push 0x102
push edx
call esi
mov ecx, dword [ebp + 0x134]
lea eax, [esp + 0x9d4]
push 0x105
push eax
push ecx
call sub.comdlg32.dll_GetFileTitleA
mov eax, dword [ebp + 0x138]
lea edx, [esp + 0x9d4]
push edx
lea ecx, [esp + 0x28c]
push eax
lea edx, [esp + 0x18c]
push ecx
push edx
call ebx
mov ecx, dword [ebp + 0x12c]
mov edi, dword [sym.imp.USER32.dll_SetDlgItemTextA]
add esp, 0x10
lea eax, [esp + 0x184]
push eax
push 0x102
push ecx
call edi
mov eax, dword [ebp + 0x12c]
lea edx, [esp + 0x288]
push 0x104
push edx
push 0xff
push eax
call esi
mov ecx, dword [ebp + 0x138]
lea edx, [esp + 0x288]
push ecx
lea eax, [esp + 0x188]
push edx
push eax
call ebx
mov edx, dword [ebp + 0x12c]
add esp, 0xc
lea ecx, [esp + 0x184]
push ecx
push 0xff
push edx
call edi
mov eax, dword [ebp + 0x12c]
push 0
push 0x1e
push 0xc5
push 0x101
push eax
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov esi, dword [esp + 0x10]
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongA]
or al, 8
push eax
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov edx, dword [ebp + 0x134]
push 0x4001
lea ecx, [esp + 0xc04]
push 0x160
push ecx
push 0
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push eax
push 1
push 0x1003
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
mov dl, byte [0x4caf4c]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x491]
mov byte [esp + 0x490], dl
mov byte [esp + 0x38c], dl
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 + 0x38d]
mov edx, dword [ebp + 0x13c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea ecx, [esp + 0x490]
stosb byte es:[edi], al
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x104
push eax
push ecx
push edx
push 0x80000000
call esi
mov al, byte [esp + 0x490]
lea ecx, [esp + 0x490]
test al, al
mov eax, dword [ebp + 0x138]
push eax
jne 0x4273a7
mov ecx, dword [ebp + 0x13c]
push ecx
lea edx, [esp + 0x394]
push str._s_shell_scommand
push edx
call ebx
add esp, 0x10
lea eax, [esp + 0x18]
lea ecx, [esp + 0xadc]
lea edx, [esp + 0x38c]
push eax
push ecx
push edx
push 0x80000000
mov dword [esp + 0x28], 0x122
call esi
mov ecx, dword [ebp + 0x140]
cmp ecx, 0xffffffff
jne 0x4273f0
xor ecx, ecx
test eax, eax
setne cl
xor eax, eax
test ecx, ecx
mov ecx, dword [ebp + 0x12c]
setne al
push eax
push 0xff
push ecx
call dword [sym.imp.USER32.dll_CheckDlgButton]
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea edx, [esp + 0x7c]
push 0x105
push edx
push 0
push 0x80000000
mov dword [ebp + 0x154], 1
mov dword [esp + 0x34], 0
call esi
test eax, eax
jne 0x42772e
lea eax, [esp + 0x7c]
lea ecx, [esp + 0x594]
push eax
push str._s_shell
push ecx
call ebx
add esp, 0xc
lea edx, [esp + 0x14]
lea eax, [esp + 0x594]
push edx
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x42770b
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x7a4]
push 0x118
push ecx
push eax
push edx
mov dword [esp + 0x30], eax
call esi
test eax, eax
jne 0x427700
lea eax, [esp + 0x7a4]
lea ecx, [esp + 0x594]
push eax
push str._scommand
push ecx
call ebx
add esp, 0xc
lea edx, [esp + 0x28]
lea eax, [esp + 0x8bc]
lea ecx, [esp + 0x594]
push edx
mov edx, dword [esp + 0x18]
push eax
push ecx
push edx
mov dword [esp + 0x38], 0x118
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x4276d4
lea esi, [esp + 0xadc]
lea eax, [esp + 0x8bc]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x427511
test cl, cl
je 0x42750d
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x427511
add eax, 2
add esi, 2
test cl, cl
jne 0x4274ed
xor eax, eax
jmp 0x427516
sbb eax, eax
sbb eax, 0xffffffff
xor ecx, ecx
lea edx, [esp + 0x7c]
test eax, eax
lea eax, [esp + 0x8bc]
push edx
sete cl
push eax
mov edi, ecx
call fcn.00427910
add esp, 8
lea ecx, [esp + 0x7c]
push 0
push ecx
call fcn.00498c50
add esp, 8
test eax, eax
jne 0x4276d4
lea edx, [esp + 0x69c]
push 0x105
lea eax, [esp + 0x80]
push edx
push eax
call sub.comdlg32.dll_GetFileTitleA
lea ecx, [esp + 0x69c]
push 0x2e
push ecx
call fcn.004989e0
add esp, 8
test eax, eax
je 0x42757e
mov byte [eax], 0
mov eax, dword [ebp + 0x14c]
xor esi, esi
test eax, eax
jle 0x4275e0
cmp esi, eax
jge 0x42759d
test esi, esi
jl 0x42759d
mov edx, dword [ebp + 0x148]
mov eax, dword [edx + esi*4]
jmp 0x42759f
xor eax, eax
mov edx, dword [eax + 4]
lea ecx, [esp + 0x69c]
push ecx
push edx
call fcn.004a7820
add esp, 8
test eax, eax
je 0x4275c4
mov eax, dword [ebp + 0x14c]
inc esi
cmp esi, eax
jl 0x42758e
jmp 0x4275e0
cmp esi, dword [ebp + 0x14c]
jge 0x4275db
test esi, esi
jl 0x4275db
mov eax, dword [ebp + 0x148]
mov eax, dword [eax + esi*4]
jmp 0x4275dd
xor eax, eax
or dword [eax + 0xc], edi
cmp esi, dword [ebp + 0x14c]
jne 0x4276d4
mov al, byte [esp + 0x7c]
test al, al
je 0x4276d4
cmp al, 0x25
je 0x4276d4
push 0x10
call fcn.004985f0
add esp, 4
test eax, eax
je 0x427621
lea ecx, [esp + 0x7c]
push edi
push ecx
mov ecx, eax
call fcn.00426fd0
mov dword [esp + 0x1c], eax
jmp 0x427629
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4276d4
mov eax, dword [ebp + 0x150]
mov ecx, dword [ebp + 0x14c]
lea edx, [eax + 1]
cmp ecx, edx
jne 0x4276b4
mov ecx, dword [ebp + 0x158]
add ecx, eax
lea edx, [ecx*4 + 4]
push edx
call fcn.004985f0
mov ebx, eax
mov eax, dword [ebp + 0x150]
mov esi, dword [ebp + 0x148]
mov edi, ebx
lea ecx, [eax*4 + 4]
add esp, 4
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0x148]
push eax
call fcn.00498600
mov ecx, dword [ebp + 0x158]
mov eax, dword [ebp + 0x150]
add esp, 4
add eax, ecx
mov dword [ebp + 0x148], ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
mov dword [ebp + 0x150], eax
mov edx, dword [ebp + 0x14c]
mov eax, dword [ebp + 0x148]
mov ecx, dword [esp + 0x1c]
mov dword [eax + edx*4], ecx
mov eax, dword [ebp + 0x14c]
inc eax
mov dword [ebp + 0x14c], eax
mov eax, dword [esp + 0x20]
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea edx, [esp + 0x7a4]
inc eax
push 0x118
push edx
mov dword [esp + 0x28], eax
push eax
mov eax, dword [esp + 0x20]
push eax
call esi
test eax, eax
je 0x427495
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x7c]
inc eax
push 0x105
push edx
push eax
push 0x80000000
mov dword [esp + 0x34], eax
call esi
test eax, eax
je 0x42743d
mov eax, dword [ebp + 0x14c]
cmp eax, 2
jl 0x427750
push 0x4283d0
push 4
push eax
mov eax, dword [ebp + 0x148]
push eax
call fcn.004986d0
add esp, 0x10
mov edx, dword [esp + 0x10]
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x2c]
xor esi, esi
push ecx
push esi
push 0x1007
push edx
mov dword [esp + 0x3c], 7
mov dword [esp + 0x40], esi
mov dword [esp + 0x50], 0x4bec70
mov dword [esp + 0x5c], esi
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp + 0x14c]
or edi, 0xffffffff
xor eax, eax
cmp ecx, esi
jle 0x427841
mov ecx, dword [ebp + 0x14c]
lea esi, [eax + 1]
cmp eax, ecx
mov dword [esp + 0x30], esi
jge 0x4277c0
test eax, eax
jl 0x4277c0
mov ecx, dword [ebp + 0x148]
mov ecx, dword [ecx + eax*4]
jmp 0x4277c2
xor ecx, ecx
mov edx, dword [ecx + 4]
mov ecx, dword [ebp + 0x14c]
cmp eax, ecx
mov dword [esp + 0x40], edx
jge 0x4277e6
test eax, eax
jl 0x4277e6
mov ecx, dword [ebp + 0x148]
mov edx, dword [ecx + eax*4]
mov dword [esp + 0x4c], edx
jmp 0x4277ee
mov dword [esp + 0x4c], 0
mov ecx, dword [ebp + 0x14c]
mov dword [esp + 0x48], 0xffffffff
cmp eax, ecx
jge 0x42780f
test eax, eax
jl 0x42780f
mov ecx, dword [ebp + 0x148]
mov eax, dword [ecx + eax*4]
jmp 0x427811
xor eax, eax
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x42781a
mov edi, esi
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x2c]
push edx
push 0
push 0x1007
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp + 0x14c]
mov eax, esi
cmp eax, ecx
jl 0x4277a0
mov ecx, dword [ebp + 0x138]
push str.open
push ecx
call fcn.004a7820
add esp, 8
test eax, eax
jne 0x4278d1
mov edx, dword [ebp + 0x13c]
push 0x4be99c
push edx
call fcn.004a7820
add esp, 8
test eax, eax
je 0x4278a1
mov eax, dword [ebp + 0x13c]
push str..bat
push eax
call fcn.004a7820
add esp, 8
test eax, eax
je 0x4278a1
mov ecx, dword [ebp + 0x13c]
push str..com
push ecx
call fcn.004a7820
add esp, 8
test eax, eax
jne 0x4278d1
mov edx, dword [ebp + 0x12c]
push 0
push 0xff
push edx
call dword [sym.imp.USER32.dll_CheckDlgButton]
mov eax, dword [esp + 0xd64]
push 0
push 0xff
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x54]
push ecx
push edi
push 0x102b
push edx
mov dword [esp + 0x74], 0xf
mov dword [esp + 0x70], 3
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd50
ret 4