Function at 0x49e470
Capabilities:
Access peb ldr_data
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x502ca8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5364d0]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x2c]
mov eax, dword [ebx]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x104
or eax, ecx
jge 0x49e4c4
mov ecx, 0x104
mov eax, ebx
call fcn.004014d0
mov eax, dword [ebx]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x49e628
mov eax, dword [0x563288]
mov edx, dword [eax + 0xc]
mov ecx, 0x563288
call edx
add eax, 0x10
mov dword [esp + 0x30], eax
lea eax, [esp + 0x2c]
push 0x105
push eax
mov dword [esp + 0x2c], 0
call fcn.00433510
mov byte [esp + 0x2c], 1
mov ecx, dword [ebx]
mov eax, dword [eax]
push ecx
push eax
lea edi, [esp + 0x40]
call fcn.00404890
mov byte [esp + 0x34], 0
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
add esp, 0x10
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x49e53e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x18]
call fcn.00401140
mov esi, eax
lea ecx, [esp + 0x14]
push 0x106
push ecx
mov byte [esp + 0x2c], 2
call fcn.00433510
push esi
push eax
lea edx, [esp + 0x3c]
push edx
mov byte [esp + 0x38], 3
call fcn.0041d700
add esp, 0x14
mov byte [esp + 0x24], 4
mov esi, dword [eax]
mov eax, dword [ebp + 4]
mov edi, dword [esp + 0x30]
mov edx, dword [eax + 8]
lea ecx, [ebp + 4]
push 0x40
push edi
call edx
push eax
mov eax, esi
call fcn.00488c60
mov byte [esp + 0x30], 3
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49e5ba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x24], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49e5df
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x24], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49e604
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49e628
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
test eax, eax
je 0x49e643
push ecx
push eax
call fcn.004e4d4d
add esp, 8
test eax, eax
jl 0x49e99b
mov ecx, dword [ebx]
cmp eax, dword [ecx - 8]
jg 0x49e99b
mov dword [ecx - 0xc], eax
mov ecx, dword [ebx]
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, dword [ebx]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x49e97e
mov eax, dword [0x563288]
mov edx, dword [eax + 0xc]
mov ecx, 0x563288
call edx
add eax, 0x10
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x30]
push 0x107
push eax
mov dword [esp + 0x2c], 5
call fcn.00433510
mov byte [esp + 0x2c], 6
mov ecx, dword [ebx]
mov eax, dword [eax]
push ecx
push eax
lea edi, [esp + 0x3c]
call fcn.00404890
mov byte [esp + 0x34], 5
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
add esp, 0x10
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x49e6d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x18]
call fcn.00401140
mov byte [esp + 0x24], 7
mov edx, dword [ebp + 4]
mov esi, dword [eax]
mov edi, dword [esp + 0x2c]
mov eax, dword [edx + 8]
add ebp, 4
push 0x24
push edi
mov ecx, ebp
call eax
push eax
mov eax, esi
call fcn.00488c60
add esp, 0xc
cmp eax, 7
mov byte [esp + 0x24], 5
mov eax, dword [esp + 0x18]
sete byte [esp + 0x30]
add eax, 0xfffffff0
or esi, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49e731
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x30], 0
je 0x49e76d
lea eax, [edi - 0x10]
mov dword [esp + 0x24], esi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x49e755
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
mov eax, dword [ebx]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
test eax, eax
je 0x49e961
mov edx, dword [0x563288]
mov eax, dword [edx + 0xc]
mov ecx, 0x563288
call eax
add eax, 0x10
mov dword [esp + 0x30], eax
mov byte [esp + 0x24], 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x49e80d
call fcn.004177c0
test eax, eax
je 0x49e80d
lea ecx, [esp + 0x38]
push 0x108
push ecx
call fcn.00433510
mov esi, eax
lea edx, [esp + 0x3c]
push 0x109
push edx
mov byte [esp + 0x34], 9
call fcn.00433510
mov byte [esp + 0x34], 0xa
mov ecx, dword [esi]
mov edx, dword [ebx]
mov eax, dword [eax]
push ecx
push edx
push eax
push str._s___s__n_n_s
lea edi, [esp + 0x50]
call fcn.00404890
add esp, 0x20
lea ecx, [esp + 0x34]
call fcn.004016f0
lea ecx, [esp + 0x38]
mov byte [esp + 0x24], 8
call fcn.004016f0
jmp 0x49e85a
lea ecx, [esp + 0x34]
push 0x109
push ecx
call fcn.00433510
mov byte [esp + 0x2c], 0xb
mov edx, dword [ebx]
mov eax, dword [eax]
push edx
push eax
push str._s___s_
lea edi, [esp + 0x44]
call fcn.00404890
mov byte [esp + 0x38], 8
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
add esp, 0x14
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x49e85a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x18]
call fcn.00401140
mov esi, eax
lea ecx, [esp + 0x38]
push 0x106
push ecx
mov byte [esp + 0x2c], 0xc
call fcn.00433510
push esi
push eax
lea edx, [esp + 0x44]
mov bl, 0xd
push edx
mov byte [esp + 0x38], bl
call fcn.0041d700
add esp, 0x14
mov byte [esp + 0x24], 0xe
mov esi, dword [eax]
mov eax, dword [ebp]
mov edi, dword [esp + 0x30]
mov edx, dword [eax + 8]
push 0x10
push edi
mov ecx, ebp
call edx
push eax
mov eax, esi
call fcn.00488c60
mov byte [esp + 0x30], bl
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49e8d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x24], 0xc
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49e8fa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x24], 8
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49e91f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x24], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49e940
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x49e749
lea eax, [edi - 0x10]
mov dword [esp + 0x24], esi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x49e97e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [esp + 0x38]
mov dword [edx], eax
mov eax, 1
jmp 0x49e757
push 0x80070057
call fcn.00401540
int3