Function at 0x49bc1f
Capabilities:
Hide graphical window
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x56afe8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
xor esi, esi
push edi
cmp dword [ebx + 0x8d8], esi
je 0x49bc5f
push 2
call fcn.0049ae9a
pop ecx
push 1
push esi
push 0x2710
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x49bf04
push 0x208
lea eax, [ebp - 0x20c]
push esi
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x20c]
push eax
call fcn.00425d11
add esp, 0x10
test eax, eax
je 0x49bcab
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x49bcab
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathGetDriveNumberW]
cmp eax, 0xffffffff
jne 0x49bd7a
xor eax, eax
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], 7
mov word [ebp - 0x224], ax
call fcn.0049973b
mov esi, str._SystemRoot_SysNative_
test eax, eax
jne 0x49bcd7
mov esi, str._SystemRoot_System32_
push esi
call sub.msvcrt.dll_wcslen
pop ecx
push eax
push esi
lea ecx, [ebp - 0x224]
call fcn.00410dd4
lea eax, [ebp - 0x20c]
push eax
call sub.msvcrt.dll_wcslen
pop ecx
push eax
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x224]
call fcn.00422558
xor eax, eax
lea edi, [ebp - 0x20c]
cmp dword [ebp - 0x210], 8
mov ecx, 0x82
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x224]
jb 0x49bd2f
mov eax, dword [ebp - 0x224]
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x49bed5
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathGetDriveNumberW]
cmp eax, 0xffffffff
je 0x49bed5
lea ecx, [ebp - 0x224]
call fcn.00410d88
xor esi, esi
sub esp, 0x18
lea eax, [ebp - 0x20c]
mov ecx, esp
push eax
call fcn.004108e3
push 0x5a
mov ecx, ebx
call fcn.00497f2f
cmp dword [ebx + 0x944], esi
jne 0x49be51
call fcn.00495b1d
lea eax, [ebp - 0x22c]
push eax
call fcn.0042166a
mov dword [esp], str.found_dump_0
mov ecx, dword [eax]
call fcn.0042537f
mov ecx, dword [ebp - 0x228]
test ecx, ecx
je 0x49bdce
call fcn.00420b3e
call fcn.00499772
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x556
push dword [ebx + 4]
call edi
push esi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call esi
push 0x557
push dword [ebx + 4]
call edi
push 0
push eax
call esi
push 0x55a
push dword [ebx + 4]
call edi
push 0
push eax
call esi
push 5
call fcn.0049ae9a
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp], 0x3e8
call edi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 4
push 0x64
push 0x2715
push dword [ebx + 4]
call esi
push 0x258
call edi
push 5
pop ecx
push ecx
push 0
push 0x2710
push dword [ebx + 4]
call esi
jmp 0x49bf04
lea eax, [ebp - 0x22c]
push eax
call fcn.0042166a
mov dword [esp], str.found_dump_1
mov ecx, dword [eax]
call fcn.0042537f
mov ecx, dword [ebp - 0x228]
test ecx, ecx
je 0x49be7a
call fcn.00420b3e
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x556
push dword [ebx + 4]
call edi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push eax
call esi
push 0x557
push dword [ebx + 4]
call edi
push 5
pop ecx
push ecx
push eax
call esi
push 0x55a
push dword [ebx + 4]
call edi
push 5
pop edi
push edi
push eax
call esi
mov eax, dword [ebx + 0x944]
cmp eax, edi
jae 0x49bec3
mov edi, eax
mov ecx, ebx
mov dword [ebx + 0x8e8], edi
call fcn.004949ea
xor eax, eax
inc eax
jmp 0x49bf06
call fcn.00499772
call fcn.00495b1d
push 4
call fcn.0049ae9a
pop ecx
push 4
push 0
push 0x2710
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0x224]
call fcn.00410d88
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00522d04
leave
ret