Function at 0x40cea0
Capabilities:
Resolve function by parsing pe exports
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4792e6
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x4921bc]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push esi
push edi
mov eax, dword [0x4921bc]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
xor esi, esi
push 0xffffffffffffffff
push esi
mov edi, ecx
push eax
lea eax, [esp + 0x90]
mov dword [esp + 0x38], edi
mov dword [esp + 0xa8], 7
mov dword [esp + 0xa4], esi
mov word [esp + 0x94], si
call fcn.00401790
push 0x10
lea ecx, [esp + 0x88]
mov dword [esp + 0xb4], esi
call fcn.004091a0
add esp, 4
push 0xffffffffffffffff
lea eax, [ebx + 0x10]
push esi
push eax
lea eax, [esp + 0x74]
mov dword [esp + 0x8c], 7
mov dword [esp + 0x88], esi
mov word [esp + 0x78], si
call fcn.00401790
lea ecx, [esp + 0x13]
push ecx
lea edx, [esp + 0x6c]
push edx
mov byte [esp + 0xb8], 1
mov eax, dword [edi]
mov edx, dword [eax + 0x1c]
lea ecx, [esp + 0x8c]
push ecx
push ebx
mov ecx, edi
mov byte [esp + 0x23], 0
call edx
cmp byte [esp + 0x13], 0
je 0x40cfd0
mov edi, 8
cmp dword [esp + 0x80], edi
jb 0x40cfa2
mov eax, dword [esp + 0x6c]
push eax
call fcn.0046207a
add esp, 4
cmp dword [esp + 0x9c], edi
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], esi
mov word [esp + 0x6c], si
jb 0x40d6b0
mov ecx, dword [esp + 0x88]
push ecx
jmp 0x40d6a8
lea esi, [esp + 0x68]
call fcn.0040f9b0
test al, al
jne 0x40d029
mov edx, esi
push edx
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x54]
call fcn.004092e0
add esp, 8
push 0xffffffffffffffff
push 0
push eax
lea eax, [esp + 0x90]
mov byte [esp + 0xbc], 2
call fcn.00401790
mov byte [esp + 0xb0], 1
cmp dword [esp + 0x64], 8
jb 0x40d029
mov ecx, dword [esp + 0x50]
push ecx
call fcn.0046207a
add esp, 4
push 0xffffffffffffffff
xor esi, esi
push esi
lea edx, [esp + 0x8c]
push edx
lea eax, [ebx + 0x2c]
call fcn.00401790
push 0xffffffffffffffff
push esi
lea eax, [esp + 0x70]
push eax
lea eax, [ebx + 0x10]
call fcn.00401790
mov ecx, dword [edi + 0xe8]
cmp ecx, esi
je 0x40d060
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push ebx
call eax
cmp dword [ebx + 0x98], esi
je 0x40d3f6
mov edx, dword [edi]
mov eax, dword [edx + 0x20]
xor esi, esi
push esi
push ebx
mov ecx, edi
call eax
mov eax, dword [edi + 0xb4]
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
lea esi, [esp + 0x24]
call fcn.00411a80
test al, al
jne 0x40d0e5
mov esi, 8
cmp dword [esp + 0x80], esi
jb 0x40d0af
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.0046207a
add esp, 4
xor eax, eax
cmp dword [esp + 0x9c], esi
mov dword [esp + 0x7c], eax
mov word [esp + 0x6c], ax
mov dword [esp + 0x80], 7
jb 0x40d0de
mov edx, dword [esp + 0x88]
push edx
call fcn.0046207a
add esp, 4
xor al, al
jmp 0x40d6b2
mov eax, dword [ebx + 0x78]
mov edx, dword [esp + 0x24]
cmp edx, eax
mov ecx, dword [ebx + 0x7c]
jne 0x40d0fb
mov edx, dword [esp + 0x28]
cmp edx, ecx
je 0x40d124
push 0
push ecx
push eax
mov eax, dword [edi + 0xb4]
lea esi, [esp + 0x30]
call fcn.00411b30
test al, al
je 0x40d191
mov eax, dword [esp + 0x24]
cmp eax, dword [ebx + 0x78]
jne 0x40d191
mov ecx, dword [esp + 0x28]
cmp ecx, dword [ebx + 0x7c]
jne 0x40d191
mov eax, dword [ebx + 0x70]
mov edx, dword [edi]
mov edx, dword [edx + 0x14]
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
call edx
mov byte [esp + 0xb0], 3
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x40d180
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
call edx
mov eax, dword [ebx + 0x98]
cmp eax, 1
jne 0x40d1ad
sub esp, 8
lea ecx, [esp + 0x1c]
mov eax, esp
mov dword [esp + 0x2c], esp
call fcn.0040d6e0
push ebx
push edi
lea ecx, [esp + 0x94]
call fcn.0040d880
test al, al
jne 0x40d3dc
lea eax, [esp + 0x14]
mov byte [esp + 0xb0], 1
call fcn.0040c830
lea esi, [esp + 0x68]
call fcn.00432680
lea esi, [esp + 0x84]
call fcn.00432680
xor al, al
jmp 0x40d6b2
cmp eax, 2
jne 0x40d3dc
mov edi, dword [ebx + 0x68]
lea esi, [ebx + 0x88]
mov dword [esp + 0x34], 0
call fcn.00405120
cmp dword [ebx + 0x70], 0
jne 0x40d20d
mov ecx, dword [ebx + 0x68]
mov edx, dword [esp + 0x2c]
mov eax, dword [ebx + 0x90]
push ecx
mov ecx, dword [edx + 0xb4]
lea esi, [esp + 0x38]
call fcn.004119f0
test al, al
je 0x40d180
mov eax, dword [ebx + 0x68]
mov ecx, dword [ebx + 0x8c]
cmp eax, ecx
jbe 0x40d202
mov eax, ecx
mov dword [ebx + 0x94], eax
jmp 0x40d3dc
mov ecx, dword [ebx + 0x90]
mov eax, dword [ebx + 0x68]
mov dword [esp + 0x20], ecx
add ecx, eax
mov dword [esp + 0x24], ecx
mov ecx, dword [ebx + 0x8c]
cmp eax, ecx
jbe 0x40d22c
mov eax, ecx
mov dword [ebx + 0x94], eax
mov edi, dword [ebx + 0x80]
lea esi, [esp + 0x3c]
call fcn.00408e00
mov byte [esp + 0xb0], 4
mov edx, dword [ebx + 0x80]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x44]
mov ecx, dword [ecx + 0xb4]
push edx
lea esi, [esp + 0x38]
call fcn.004119f0
test al, al
jne 0x40d279
lea ecx, [esp + 0x3c]
call fcn.00404a80
jmp 0x40d180
mov ecx, dword [esp + 0x40]
mov eax, dword [ebx + 0x80]
cmp eax, ecx
mov dword [esp + 0x48], ecx
ja 0x40d28f
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x20]
xor esi, esi
cmp eax, esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x38], esi
jbe 0x40d34f
lea esp, [esp]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
push 0
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x50]
add eax, esi
push eax
call edx
test al, al
je 0x40d26b
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x2c]
sub dword [esp + 0x1c], eax
add esi, eax
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
push esi
push ebx
call edx
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
test eax, eax
jbe 0x40d344
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x20], 0
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
lea edx, [esp + 0x20]
push edx
call eax
test eax, eax
je 0x40d339
mov ecx, dword [esp + 0x20]
test ecx, ecx
jbe 0x40d339
mov edx, dword [esp + 0x24]
sub edx, edi
cmp edx, ecx
jb 0x40d26b
push ecx
push eax
push edi
call fcn.00464e30
add esp, 0xc
add edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov edx, dword [eax + 0x18]
call edx
cmp dword [esp + 0x1c], 0
ja 0x40d2b0
cmp dword [ebx + 0x70], 0
je 0x40d3d3
mov esi, dword [esp + 0x24]
lea esp, [esp]
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
test eax, eax
jbe 0x40d3b9
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x1c], 0
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
lea edx, [esp + 0x1c]
push edx
call eax
test eax, eax
je 0x40d3b9
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jbe 0x40d3b9
mov edx, esi
sub edx, edi
cmp edx, ecx
jb 0x40d26b
push ecx
push eax
push edi
call fcn.00464e30
add esp, 0xc
add edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
test eax, eax
ja 0x40d360
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov edx, dword [eax + 0x18]
call edx
lea ecx, [esp + 0x3c]
call fcn.00404a80
lea eax, [esp + 0x14]
mov byte [esp + 0xb0], 1
call fcn.0040c830
mov edi, dword [esp + 0x2c]
jmp 0x40d648
lea eax, [esp + 0x84]
push eax
call fcn.0040f810
add esp, 4
test al, al
je 0x40d43a
mov edi, 8
cmp dword [esp + 0x80], edi
jb 0x40d425
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.0046207a
add esp, 4
cmp dword [esp + 0x9c], edi
mov dword [esp + 0x7c], esi
mov word [esp + 0x6c], si
jmp 0x40d0c1
lea eax, [esp + 0x84]
push eax
call fcn.0040f740
add esp, 4
test al, al
jne 0x40d4c6
mov edx, dword [edi]
mov edx, dword [edx + 0x28]
lea eax, [esp + 0x84]
push eax
mov ecx, edi
call edx
test al, al
jne 0x40d4c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [edi]
mov edx, dword [edx + 0x2c]
lea ecx, [esp + 0x84]
push ecx
push eax
mov ecx, edi
call edx
test al, al
je 0x40d5dc
mov eax, dword [edi]
mov edx, dword [eax + 0x20]
push esi
push ebx
mov ecx, edi
call edx
mov eax, dword [edi]
mov edx, dword [eax + 0x24]
push ebx
mov ecx, edi
call edx
mov edi, dword [edi + 0xe8]
cmp edi, esi
je 0x40d4ac
mov eax, dword [edi]
mov edx, dword [eax + 0x10]
push ebx
mov ecx, edi
call edx
lea esi, [esp + 0x68]
call fcn.00432680
lea esi, [esp + 0x84]
call fcn.00432680
jmp 0x40d6b0
mov eax, dword [edi]
mov edx, dword [eax + 0x20]
push 0
push ebx
mov ecx, edi
call edx
mov eax, ebx
xor esi, esi
call fcn.0040e040
test eax, eax
jbe 0x40d569
mov al, byte [edi + 0xe4]
test al, al
jne 0x40d569
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x40d500
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 3
cmp esi, eax
jb 0x40d505
call fcn.004625df
mov ecx, dword [ebx + 4]
lea eax, [ecx + esi*8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
test eax, eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], eax
je 0x40d528
add eax, 4
mov edx, 1
lock xadd dword [eax], edx
lea edx, [esp + 0x84]
mov byte [esp + 0xb0], 5
mov eax, dword [edi]
mov eax, dword [eax + 0x18]
push edx
push ecx
mov ecx, edi
call eax
test al, al
lea eax, [esp + 0x2c]
je 0x40d5c9
mov byte [esp + 0xb0], 1
call fcn.0040c830
mov eax, ebx
add esi, 1
call fcn.0040e040
cmp esi, eax
jb 0x40d4e3
mov dl, byte [edi + 0xe4]
test dl, dl
je 0x40d5f8
cmp dword [esp + 0x80], 8
jb 0x40d58e
mov eax, dword [esp + 0x6c]
push eax
call fcn.0046207a
add esp, 4
xor eax, eax
cmp dword [esp + 0x9c], 8
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], eax
mov word [esp + 0x6c], ax
jb 0x40d0de
mov ecx, dword [esp + 0x88]
push ecx
call fcn.0046207a
add esp, 4
xor al, al
jmp 0x40d6b2
mov cl, byte [edi + 0xe4]
mov byte [esp + 0xb0], 1
call fcn.0040c830
lea esi, [esp + 0x68]
call fcn.00432680
lea esi, [esp + 0x84]
call fcn.00432680
xor al, al
jmp 0x40d6b2
cmp dword [esp + 0x9c], 8
mov ecx, dword [ebx + 0x60]
mov eax, dword [esp + 0x88]
jae 0x40d613
lea eax, [esp + 0x88]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x40d627
call esi
lea edx, [ebx + 0x58]
push edx
lea eax, [ebx + 0x50]
push eax
lea ecx, [ebx + 0x48]
push ecx
lea eax, [esp + 0x90]
call fcn.004098e0
add esp, 0xc
test al, al
jne 0x40d648
call esi
mov edx, dword [edi]
mov eax, dword [edx + 0x24]
push ebx
mov ecx, edi
call eax
mov edi, dword [edi + 0xe8]
xor esi, esi
cmp edi, esi
je 0x40d668
mov edx, dword [edi]
mov eax, dword [edx + 0x10]
push ebx
mov ecx, edi
call eax
mov edi, 8
cmp dword [esp + 0x80], edi
jb 0x40d683
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.0046207a
add esp, 4
cmp dword [esp + 0x9c], edi
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], esi
mov word [esp + 0x6c], si
jb 0x40d6b0
mov edx, dword [esp + 0x88]
push edx
call fcn.0046207a
add esp, 4
mov al, 1
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.00461f6b
mov esp, ebp
pop ebp
ret 8