Function at 0x49668d
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b93c0
mov eax, dword fs:[0]
push eax
sub esp, 0x790
mov eax, dword [0x4f1020]
xor eax, esp
mov dword [esp + 0x788], eax
push ebx
push esi
push edi
mov eax, dword [0x4f1020]
xor eax, esp
push eax
lea eax, [esp + 0x7a0]
mov dword fs:[0], eax
xor ebx, ebx
push 0x206
lea eax, [esp + 0x592]
push ebx
push eax
mov esi, ecx
mov word [esp + 0x598], bx
call sub.MSVCR80.dll_memset
mov eax, dword [0x4f7c54]
mov edi, 0x4f7c54
add esp, 0xc
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
push 0x208
lea eax, [esp + 0x590]
push ebx
push eax
mov dword [esp + 0x7b4], ebx
call sub.MSVCR80.dll_memset
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x580]
mov eax, dword [ecx]
add esp, 0xc
call dword [eax]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x58c]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], 0x4d4b38
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
cmp eax, ebx
mov dword [esp + 0x10], eax
jne 0x49679f
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.0040113b
xor al, al
mov ecx, dword [esp + 0x7a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x788]
xor ecx, esp
call fcn.00499bb9
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x58c]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x4967ce
push dword [esp + 0x10]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor bl, bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.0040113b
mov al, bl
jmp 0x49677b
mov eax, dword [0x4f7c54]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x590]
mov byte [esp + 0x7ac], 1
call fcn.0047f4c4
test eax, eax
pop ecx
je 0x4968a2
mov edi, dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [esp + 0x58c]
push eax
call edi
lea eax, [esp + 0x14]
push eax
call fcn.004979c8
push dword [eax]
lea eax, [esp + 0x590]
push eax
call dword [sym.imp.MSVCR80.dll_wcsstr]
mov ebx, eax
mov eax, dword [esp + 0x1c]
neg ebx
pop ecx
sbb bl, bl
pop ecx
add eax, 0xfffffff0
inc bl
call fcn.0040113b
test bl, bl
je 0x49686b
lea eax, [esp + 0x14]
push eax
call fcn.004979c8
push dword [eax]
lea eax, [esp + 0x590]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.0040113b
lea eax, [esp + 0x58c]
push eax
call edi
lea ecx, [esp + 0x58c]
call fcn.0047f413
lea eax, [esp + 0x58c]
push eax
push esi
call fcn.00496636
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.0040113b
mov bl, 1
jmp 0x4967be
push 3
push ebx
lea eax, [esp + 0x44]
push eax
call fcn.00484111
mov byte [esp + 0x7a8], 2
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x580]
mov ebx, dword [esp + 0x10]
push ecx
mov dword [esp + 0x588], eax
add ebx, 0xfffffff0
mov eax, ebx
mov dword [esp + 0x564], 0x7d7
mov dword [esp + 0x18], esp
mov edi, esp
call fcn.004036df
add eax, 0x10
lea ecx, [esp + 0x40]
mov dword [edi], eax
call fcn.0048441f
mov esi, dword [esi + 8]
mov ecx, dword [esi + 0x580]
mov eax, dword [ecx]
call dword [eax]
push eax
lea eax, [esp + 0x40]
call fcn.004817c1
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0x7ac], 1
call fcn.00484236
mov eax, ebx
call fcn.0040113b
jmp 0x4967bc