Function at 0x40ba50
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x438c36
mov eax, dword fs:[0]
push eax
sub esp, 0x2e0
mov eax, dword [0x444690]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, edx
mov ebx, ecx
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x224], edi
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x22c]
push ecx
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.00404f70
mov esi, dword [ebp - 0x22c]
add esp, 4
test eax, eax
je 0x40bd68
mov edi, dword [ebp - 0x228]
cmp esi, edi
je 0x40bd66
push 0x440fc8
push 0x440f64
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40bd66
push ebx
call eax
test eax, eax
je 0x40bb6f
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40bb6f
push 0x206
push eax
mov word [ebp - reloc.crypt32.dll_CertDeleteCRLFromStore], ax
lea eax, [ebp - 0x21a]
push eax
call fcn.00422250
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x40bd66
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x40bd66
push 1
lea eax, [ebp - 0x21c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x40bd66
push ecx
lea ecx, [ebp - 0x2d4]
call fcn.0040deb0
sub esp, 8
lea ecx, [ebp - 0x2d0]
push ebx
mov byte [ebp - 4], 2
call fcn.0040ec40
test eax, eax
mov eax, dword [ebp - 0x2d4]
lea ecx, [ebp - 0x2d4]
mov eax, dword [eax + 4]
jne 0x40bbb4
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x40bbc3
or eax, 4
jmp 0x40bbc3
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
mov edx, 4
cmove eax, edx
push 0
push eax
call fcn.004080b0
cmp dword [ebp - 0x280], 0
je 0x40bc68
push 0
sub edi, esi
push edi
push esi
lea ecx, [ebp - 0x2d4]
call fcn.0040d880
lea ecx, [ebp - 0x2d4]
call fcn.00408540
lea eax, [ebp - 0x2ec]
push eax
lea ecx, [ebp - 0x2d4]
call fcn.0040d9d0
mov ecx, eax
mov eax, dword [ecx + 8]
add eax, dword [ecx]
mov edx, dword [ecx + 0xc]
adc edx, dword [ecx + 4]
xor ecx, ecx
cmp edi, eax
jne 0x40bc29
cmp ecx, edx
jne 0x40bc29
mov dword [ebp - 0x220], 1
jmp 0x40bc31
xor eax, eax
mov dword [ebp - 0x220], eax
lea ecx, [ebp - 0x2d0]
call fcn.0040ed00
test eax, eax
jne 0x40bc68
mov eax, dword [ebp - 0x2d4]
lea ecx, [ebp - 0x2d4]
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x40bc60
or eax, 4
push 0
push eax
call fcn.004080b0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x2d4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x2d4], 0x441050
mov eax, dword [ebp - 0x2d4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [ebp + ecx - 0x2d8], eax
cmp dword [ebp - 0x280], 0
mov dword [ebp - 0x2d0], 0x441014
je 0x40bcd6
mov edx, dword [ebp - 0x2c4]
lea eax, [ebp - 0x28c]
cmp dword [edx], eax
jne 0x40bcd6
mov eax, dword [ebp - 0x298]
mov ecx, dword [ebp - 0x294]
mov dword [edx], eax
mov eax, dword [ebp - 0x2b4]
mov dword [eax], ecx
mov eax, dword [ebp - 0x2a4]
sub ecx, ecx
mov dword [eax], ecx
cmp byte [ebp - 0x284], 0
je 0x40bcea
lea ecx, [ebp - 0x2d0]
call fcn.0040ed00
mov edi, dword [ebp - 0x29c]
mov dword [ebp - 0x2d0], 0x441064
test edi, edi
je 0x40bd1e
mov ecx, dword [edi]
test ecx, ecx
je 0x40bd15
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, eax
test ecx, ecx
je 0x40bd15
mov eax, dword [ecx]
push 1
call dword [eax]
push edi
call fcn.0041fc4f
add esp, 4
mov eax, dword [ebp - 0x2d4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x2d4], 0x440efc
mov eax, dword [ebp - 0x2d4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x2d8], eax
lea eax, [ebp - 0x274]
push eax
mov dword [ebp - 0x274], 0x440f3c
call fcn.0041f7c3
mov edi, dword [ebp - 0x220]
add esp, 4
jmp 0x40bd68
xor edi, edi
test esi, esi
je 0x40bd8d
push esi
call fcn.0041fc4f
add esp, 4
jmp 0x40bd8d
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041fc54
mov esp, ebp
pop ebp
ret