Function at 0x40f900
Capabilities:
Access peb ldr_data
Delete file
Get disk size
Resolve function by parsing pe exports
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x47cdee
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xac
mov eax, dword [0x4a8ae4]
xor eax, esp
push ebx
push ebp
push esi
mov esi, dword [esp + 0xc8]
mov dword [esp + 0xb4], eax
push edi
mov dword [esp + 0x34], ecx
xor edi, edi
mov dword [esp + 0xc4], edi
mov dword [esp + 0x1c], 0x80004005
call fcn.004621d7
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0xc4], 1
call fcn.004621d7
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x5c], eax
mov byte [esp + 0xc4], 2
call fcn.004621d7
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x54], eax
mov byte [esp + 0xc4], 3
call fcn.004621d7
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x58], eax
mov byte [esp + 0xc4], 4
call fcn.004621d7
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov byte [esp + 0xc4], 5
mov dword [esp + 0x30], edi
mov dword [esp + 0xb0], edi
call fcn.00476002
mov ebp, dword [eax + 4]
call fcn.004621d7
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
push 0x208
mov byte [esp + 0xc8], 6
call fcn.004620d8
push 0x208
call fcn.004620d8
push 0x489aa4
call fcn.00449da9
add esp, 0xc
push eax
push 0x489aa4
lea ecx, [esp + 0x28]
call fcn.00403be0
push 1
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x28]
call fcn.00408280
push 0x48a08c
push eax
mov byte [esp + 0xcc], 7
call fcn.00408b90
mov bl, al
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
add esp, 8
mov byte [esp + 0xc4], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fa7c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x40fa8b
push 0x5c
lea ecx, [esp + 0x24]
call fcn.0040c080
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x68]
push edx
lea eax, [esp + 0x7c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x40fab4
mov ebx, dword [esp + 0x60]
jmp 0x40fabc
or ebx, 0xffffffff
mov edi, 0x80004005
cmp dword [esp + 0xe8], 8
mov eax, dword [esp + 0xd4]
mov dword [esp + 0x2c], ebx
jae 0x40fad8
lea eax, [esp + 0xd4]
lea edx, [esp + 0x64]
push edx
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov ecx, esi
call fcn.0042abd0
mov ecx, dword [esp + 0x68]
cmp ecx, edx
ja 0x40fb21
jb 0x40fb01
mov edx, dword [esp + 0x64]
cmp edx, eax
jae 0x40fb21
push 0x134
mov ecx, ebp
mov dword [esp + 0x20], 0x80004005
call fcn.0040e720
mov byte [ebp + 0x160], 1
jmp 0x410339
test edi, edi
jl 0x410339
lea eax, [esp + 0x38]
push eax
mov ecx, esi
call fcn.0042b760
mov eax, dword [eax + 0x14]
lea eax, [eax + eax + 8]
cdq
idiv ebx
mov eax, ebx
sub eax, edx
cdq
mov ebp, eax
cmp dword [esp + 0x50], 8
mov edi, edx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], edi
jb 0x40fb64
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.004620d3
add esp, 4
mov eax, ebx
cdq
cmp ebp, eax
jne 0x40fb6f
cmp edi, edx
je 0x40fb94
push ebp
call fcn.004620d8
mov ecx, ebp
mov edx, ecx
shr ecx, 2
mov edi, eax
mov dword [esp + 0x34], edi
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
add esp, 4
rep stosb byte es:[edi], al
xor edi, edi
jmp 0x40fb9e
xor edi, edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov ecx, esi
call fcn.0042abd0
xor ecx, ecx
mov cx, ax
mov eax, 0x10
and ecx, 0xf
sub eax, ecx
cmp ax, 0x10
mov word [esp + 0xb0], ax
jne 0x40fbca
mov word [esp + 0xb0], di
lea ecx, [esp + 0x18]
call fcn.00403ad0
push 0x489aa4
call fcn.00449da9
add esp, 4
push eax
push 0x489aa4
lea ecx, [esp + 0x20]
call fcn.004082f0
push 1
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x20]
call fcn.00408280
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
cmp ecx, 1
jne 0x40fc21
cmp ecx, edi
jge 0x40fc17
push 0x80070057
call fcn.004010a0
cmp word [eax], 0x5c
jne 0x40fc21
xor bl, bl
jmp 0x40fc23
mov bl, 1
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 0x40fc41
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x40fc55
push 1
push 0x48a050
lea ecx, [esp + 0x20]
call fcn.004082f0
lea eax, [esp + 0x38]
push eax
mov ecx, esi
call fcn.0042b6f0
mov edi, eax
lea ecx, [esp + 0x78]
push ecx
mov ecx, esi
mov byte [esp + 0xc8], 8
call fcn.0042b6f0
mov ecx, dword [eax + 0x18]
mov edi, dword [edi + 0x14]
mov ebp, 8
cmp ecx, ebp
mov byte [esp + 0xc4], 9
jb 0x40fc93
mov eax, dword [eax + 4]
jmp 0x40fc96
add eax, 4
push edi
push eax
lea ecx, [esp + 0x20]
call fcn.004082f0
cmp dword [esp + 0x90], ebp
jb 0x40fcb7
mov edx, dword [esp + 0x7c]
push edx
call fcn.004620d3
add esp, 4
xor eax, eax
mov dword [esp + 0x8c], eax
mov word [esp + 0x7c], ax
cmp dword [esp + 0x50], ebp
mov dword [esp + 0x90], 7
mov byte [esp + 0xc4], 6
jb 0x40fceb
mov eax, dword [esp + 0x3c]
push eax
call fcn.004620d3
add esp, 4
push 0x48a068
call fcn.00449da9
add esp, 4
push eax
push 0x48a068
lea ecx, [esp + 0x20]
call fcn.004082f0
cmp dword [esp + 0xe8], ebp
mov ebp, dword [esp + 0xd4]
jae 0x40fd1e
lea ebp, [esp + 0xd4]
mov edi, dword [esp + 0x34]
add edi, 0xcc
test ebp, ebp
jne 0x40fd30
xor eax, eax
jmp 0x40fd39
push ebp
call fcn.00449da9
add esp, 4
push eax
push ebp
mov ecx, edi
call fcn.00403be0
push edi
lea ecx, [esp + 0x14]
call fcn.00403cc0
push 1
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x18]
call fcn.00408280
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
cmp ecx, 1
jne 0x40fd7e
test ecx, ecx
jge 0x40fd74
push 0x80070057
call fcn.004010a0
cmp word [eax], 0x5c
jne 0x40fd7e
xor bl, bl
jmp 0x40fd80
mov bl, 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40fd9e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x40fdb2
push 1
push 0x48a050
lea ecx, [esp + 0x18]
call fcn.004082f0
lea eax, [esp + 0x38]
push eax
mov ecx, esi
call fcn.0042b6f0
mov edi, eax
lea ecx, [esp + 0x78]
push ecx
mov ecx, esi
mov byte [esp + 0xc8], 0xa
call fcn.0042b6f0
mov ecx, dword [eax + 0x18]
mov edi, dword [edi + 0x14]
mov ebx, 8
cmp ecx, ebx
mov byte [esp + 0xc4], 0xb
jb 0x40fdf0
mov eax, dword [eax + 4]
jmp 0x40fdf3
add eax, 4
push edi
push eax
lea ecx, [esp + 0x18]
call fcn.004082f0
cmp dword [esp + 0x90], ebx
jb 0x40fe14
mov edx, dword [esp + 0x7c]
push edx
call fcn.004620d3
add esp, 4
mov eax, dword [esp + 0x50]
xor ebp, ebp
cmp eax, ebx
mov dword [esp + 0x90], 7
mov dword [esp + 0x8c], ebp
mov word [esp + 0x7c], bp
mov byte [esp + 0xc4], 6
jb 0x40fe4a
mov eax, dword [esp + 0x3c]
push eax
call fcn.004620d3
add esp, 4
push 0x48a068
call fcn.00449da9
add esp, 4
push eax
push 0x48a068
lea ecx, [esp + 0x18]
call fcn.004082f0
mov ecx, dword [esp + 0x10]
push ebp
push 0x8000080
push 2
push ebp
push ebp
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x410263
push 0x10
call fcn.004620a8
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebp
mov byte [esp + 0xc4], 0xc
je 0x40feb1
push edi
mov ecx, eax
call fcn.00463a0d
mov edi, eax
jmp 0x40feb3
xor edi, edi
lea edx, [esp + 0x38]
push edx
mov ecx, esi
mov byte [esp + 0xc8], 6
call fcn.0042b760
mov ebp, eax
lea eax, [esp + 0x78]
push eax
mov ecx, esi
mov byte [esp + 0xc8], 0xd
call fcn.0042b760
cmp dword [eax + 0x18], ebx
mov ebp, dword [ebp + 0x14]
mov byte [esp + 0xc4], 0xe
jb 0x40fef2
mov eax, dword [eax + 4]
jmp 0x40fef5
add eax, 4
mov edx, dword [edi]
lea ecx, [ebp + ebp]
push ecx
push eax
mov ecx, edi
call dword [edx + 0x38]
cmp dword [esp + 0x90], ebx
jb 0x40ff18
mov edx, dword [esp + 0x7c]
push edx
call fcn.004620d3
add esp, 4
mov eax, dword [esp + 0x50]
xor ebp, ebp
cmp eax, ebx
mov dword [esp + 0x90], 7
mov dword [esp + 0x8c], ebp
mov word [esp + 0x7c], bp
mov byte [esp + 0xc4], 6
jb 0x40ff4e
mov eax, dword [esp + 0x3c]
push eax
call fcn.004620d3
add esp, 4
cmp dword [esp + 0x28], ebp
ja 0x40ff5a
cmp dword [esp + 0x24], ebp
jbe 0x40ff6b
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov edx, dword [edi]
push eax
push ecx
mov ecx, edi
call dword [edx + 0x38]
mov edx, dword [edi]
push ebx
lea eax, [esp + 0xb4]
push eax
mov ecx, edi
call dword [edx + 0x38]
mov ecx, esi
call fcn.0042abd0
cmp edx, ebp
ja 0x40ff8e
cmp eax, ebp
jbe 0x410247
xor ebx, ebx
mov eax, 0xf
mov dword [esp + 0x28], ebx
mov dword [esp + 0x90], eax
mov dword [esp + 0x8c], ebx
mov byte [esp + 0x7c], bl
mov dword [esp + 0xac], eax
mov dword [esp + 0xa8], ebx
mov byte [esp + 0x98], bl
mov ecx, esi
mov byte [esp + 0xc4], 0x10
call fcn.0042abd0
mov ebp, dword [esp + 0x2c]
push ebp
lea ecx, [esp + 0x3c]
push ecx
mov ecx, esi
call fcn.0042b3b0
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x84]
mov byte [esp + 0xd0], 0x11
call fcn.0040c120
cmp dword [esp + 0x50], 0x10
mov byte [esp + 0xc4], 0x10
jb 0x410014
mov edx, dword [esp + 0x3c]
push edx
call fcn.004620d3
add esp, 4
mov eax, dword [esp + 0x8c]
test eax, eax
jbe 0x4101a3
jmp 0x410030
mov ebx, dword [esp + 0x24]
lea esp, [esp]
lea eax, [esp + 0x94]
push eax
push ebx
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push ecx
mov ecx, esi
call fcn.0042b620
push ebp
lea edx, [esp + 0xa0]
push edx
sub esp, 0x1c
mov eax, esp
mov dword [esp + 0x74], esp
push eax
mov ecx, esi
mov byte [esp + 0x110], 0x12
call fcn.0042b550
mov byte [esp + 0x10c], 0x10
call fcn.00433e90
mov ecx, dword [esp + 0x70]
add esp, 0x48
add ebx, 1
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0xac]
adc ecx, 0
cmp eax, 0x10
mov eax, dword [esp + 0x98]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ecx
jae 0x4100ac
lea eax, [esp + 0x98]
mov ecx, dword [esp + 0xa8]
mov edx, dword [edi]
push ecx
push eax
mov ecx, edi
call dword [edx + 0x38]
mov ecx, dword [esp + 0x90]
cmp ecx, 0x10
mov edx, dword [esp + 0x7c]
mov eax, edx
jae 0x4100d2
lea eax, [esp + 0x7c]
mov ebx, dword [esp + 0x8c]
add eax, ebx
cmp ecx, 0x10
mov ecx, edx
jae 0x4100e6
lea ecx, [esp + 0x7c]
push eax
push ecx
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x84]
call fcn.00401a90
mov edx, dword [esp + 0xac]
cmp edx, 0x10
mov ecx, dword [esp + 0x98]
mov eax, ecx
jae 0x410115
lea eax, [esp + 0x98]
mov ebx, dword [esp + 0xa8]
add eax, ebx
cmp edx, 0x10
jae 0x41012a
lea ecx, [esp + 0x98]
push eax
push ecx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0xa0]
call fcn.00401a90
push ebp
lea ecx, [esp + 0x3c]
push ecx
mov ecx, esi
call fcn.0042b3b0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x84]
mov byte [esp + 0xd0], 0x13
call fcn.0040c120
cmp dword [esp + 0x50], 0x10
mov byte [esp + 0xc4], 0x10
jb 0x41017f
mov edx, dword [esp + 0x3c]
push edx
call fcn.004620d3
add esp, 4
mov eax, dword [esp + 0x8c]
test eax, eax
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], 0
mov byte [esp + 0x3c], 0
ja 0x410025
cmp dword [esp + 0xac], 0x10
jb 0x4101bd
mov eax, dword [esp + 0x98]
push eax
call fcn.004620d3
add esp, 4
cmp dword [esp + 0x90], 0x10
mov dword [esp + 0xac], 0xf
mov dword [esp + 0xa8], 0
mov byte [esp + 0x98], 0
mov byte [esp + 0xc4], 6
jb 0x4101fa
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.004620d3
add esp, 4
cmp dword [esp + 0x1c], 0x80004005
jne 0x410251
mov ecx, esi
call fcn.0042afa0
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x4c]
mov ebp, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x80
push ebp
call esi
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call ebp
mov ebx, dword [esp + 0x18]
push 0x80
push ebx
call esi
push ebx
call ebp
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax + 4]
jmp 0x4102c2
mov dword [esp + 0x1c], 0x80004005
jmp 0x410204
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x4c]
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax + 4]
jmp 0x4102c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov dword [esp + 0x1c], 0x80004005
call fcn.0042afa0
call fcn.004621d7
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
mov esi, eax
call fcn.004621d7
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4102a9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, esi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4102c2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4102d3
push eax
call fcn.004620d3
add esp, 4
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x410339
mov eax, dword [esp + 0x10]
mov eax, dword [eax - 0xc]
add eax, 0xfffffffc
push eax
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x18]
call fcn.00405220
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx + 0xd98]
add ecx, 0xd90
push eax
push edx
mov byte [esp + 0xcc], 0x14
call fcn.0045c091
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0xc4], 6
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x410339
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0xc4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41035f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0xc4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410385
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
mov byte [esp + 0xc4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4103ab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
mov byte [esp + 0xc4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4103d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff0
mov byte [esp + 0xc4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4103f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0xc4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41041d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp dword [esp + 0xe8], 8
jb 0x410437
mov eax, dword [esp + 0xd4]
push eax
call fcn.004620d3
add esp, 4
mov ecx, dword [esp + 0xbc]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0xb0]
pop ebp
pop ebx
xor ecx, esp
call fcn.0044a318
add esp, 0xb8
ret 0x20