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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5eb786
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x64c874]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push esi
push edi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
xor esi, esi
mov edi, ecx
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x94]
mov dword [esp + 0x2c], edi
mov dword [esp + 0xac], 7
mov dword [esp + 0xa8], esi
mov word [esp + 0x98], si
call fcn.00402580
push 0x10
lea ecx, [esp + 0x90]
mov dword [esp + 0xbc], esi
call fcn.00429af0
add esp, 4
push 0xffffffffffffffff
lea eax, [ebx + 0x10]
push esi
lea ecx, [esp + 0x78]
mov dword [esp + 0x90], 7
mov dword [esp + 0x8c], esi
mov word [esp + 0x7c], si
call fcn.00402580
lea ecx, [esp + 0x17]
push ecx
lea edx, [esp + 0x74]
push edx
mov byte [esp + 0xc0], 1
mov eax, dword [edi]
mov edx, dword [eax + 0x20]
lea ecx, [esp + 0x94]
push ecx
push ebx
mov ecx, edi
mov byte [esp + 0x27], 0
call edx
cmp byte [esp + 0x17], 0
jne 0x4601eb
lea esi, [esp + 0x70]
call fcn.00429e60
test al, al
jne 0x45fb11
mov edx, esi
push edx
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0x5c]
call fcn.00429c30
add esp, 8
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x94]
mov byte [esp + 0xc0], 2
call fcn.00402580
mov byte [esp + 0xb8], 1
cmp dword [esp + 0x6c], 8
jb 0x45fb11
mov ecx, dword [esp + 0x58]
push ecx
call fcn.0059b877
add esp, 4
push 0xffffffffffffffff
xor esi, esi
push esi
lea ecx, [ebx + 0x2c]
lea eax, [esp + 0x94]
call fcn.00402580
push 0xffffffffffffffff
push esi
lea eax, [esp + 0x78]
lea ecx, [ebx + 0x10]
call fcn.00402580
mov ecx, dword [edi + 0x104]
cmp ecx, esi
je 0x45fb46
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push ebx
call eax
cmp dword [ebx + 0x98], esi
je 0x45fed9
mov edx, dword [edi]
mov eax, dword [edx + 0x24]
xor esi, esi
push esi
push esi
push ebx
mov ecx, edi
call eax
mov eax, dword [edi + 0xb4]
push 1
push esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
push esi
lea esi, [esp + 0x38]
call fcn.004316d0
test al, al
jne 0x45fbd3
mov esi, 8
cmp dword [esp + 0x88], esi
jb 0x45fb9a
mov ecx, dword [esp + 0x74]
push ecx
call fcn.0059b877
add esp, 4
xor eax, eax
cmp dword [esp + 0xa4], esi
mov dword [esp + 0x84], eax
mov word [esp + 0x74], ax
mov dword [esp + 0x88], 7
jb 0x45fbcc
mov edx, dword [esp + 0x90]
push edx
call fcn.0059b877
add esp, 4
xor al, al
jmp 0x460238
mov eax, dword [ebx + 0x78]
mov edx, dword [esp + 0x2c]
cmp edx, eax
mov ecx, dword [ebx + 0x7c]
jne 0x45fbe9
mov edx, dword [esp + 0x30]
cmp edx, ecx
je 0x45fc16
push 0
push ecx
push eax
mov eax, dword [edi + 0xb4]
lea esi, [esp + 0x38]
call fcn.004316d0
test al, al
je 0x45fc84
mov eax, dword [esp + 0x2c]
cmp eax, dword [ebx + 0x78]
jne 0x45fc84
mov ecx, dword [esp + 0x30]
cmp ecx, dword [ebx + 0x7c]
jne 0x45fc84
mov eax, dword [ebx + 0x70]
mov edx, dword [edi]
mov edx, dword [edx + 0x18]
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, edi
call edx
mov byte [esp + 0xb8], 3
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x45fc73
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
call edx
mov eax, dword [ebx + 0x98]
cmp eax, 1
jne 0x45fca0
sub esp, 8
lea ecx, [esp + 0x24]
mov eax, esp
mov dword [esp + 0x34], esp
call fcn.0051bbd0
push ebx
lea eax, [esp + 0x98]
push eax
push edi
call fcn.00461460
test al, al
jne 0x45febf
lea eax, [esp + 0x1c]
mov byte [esp + 0xb8], 1
call fcn.00565750
lea esi, [esp + 0x70]
call fcn.00405c10
lea esi, [esp + 0x8c]
call fcn.00405c10
xor al, al
jmp 0x460238
cmp eax, 2
jne 0x45febf
mov edi, dword [ebx + 0x68]
lea esi, [ebx + 0x88]
mov dword [esp + 0x38], 0
call fcn.0042dd60
cmp dword [ebx + 0x70], 0
jne 0x45fcff
mov ecx, dword [esp + 0x24]
mov eax, dword [ebx + 0x90]
mov edx, dword [ebx + 0x68]
mov ecx, dword [ecx + 0xb4]
lea esi, [esp + 0x38]
call fcn.00431600
test al, al
je 0x45fc73
mov eax, dword [ebx + 0x68]
mov ecx, dword [ebx + 0x8c]
cmp eax, ecx
jbe 0x45fcf4
mov eax, ecx
mov dword [ebx + 0x94], eax
jmp 0x45febf
mov ecx, dword [ebx + 0x90]
mov eax, dword [ebx + 0x68]
lea edx, [eax + ecx]
mov dword [esp + 0x18], ecx
mov ecx, dword [ebx + 0x8c]
cmp eax, ecx
mov dword [esp + 0x2c], edx
jbe 0x45fd1f
mov eax, ecx
mov dword [ebx + 0x94], eax
mov edi, dword [ebx + 0x80]
lea eax, [esp + 0x44]
call fcn.0043abf0
mov byte [esp + 0xb8], 4
mov ecx, dword [esp + 0x24]
mov edx, dword [ebx + 0x80]
mov eax, dword [esp + 0x4c]
mov ecx, dword [ecx + 0xb4]
lea esi, [esp + 0x38]
call fcn.00431600
test al, al
jne 0x45fd6b
lea ecx, [esp + 0x44]
call fcn.0042dd30
jmp 0x45fc73
mov ecx, dword [esp + 0x48]
mov eax, dword [ebx + 0x80]
cmp eax, ecx
mov dword [esp + 0x50], ecx
ja 0x45fd81
mov dword [esp + 0x50], eax
mov edi, dword [esp + 0x38]
xor esi, esi
cmp edi, esi
mov dword [esp + 0x40], esi
jbe 0x45fe35
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
mov edx, dword [edx + 8]
push 0
lea eax, [esp + 0x44]
push eax
mov eax, dword [esp + 0x54]
push edi
add eax, esi
push eax
call edx
test al, al
je 0x45fd5d
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x24]
add esi, eax
push 0
sub edi, eax
mov eax, dword [ecx]
mov edx, dword [eax + 0x24]
push esi
push ebx
call edx
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
test eax, eax
jbe 0x45fe2d
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x3c], 0
mov eax, dword [ecx]
mov eax, dword [eax + 0x18]
lea edx, [esp + 0x3c]
push edx
call eax
test eax, eax
je 0x45fe22
mov ecx, dword [esp + 0x3c]
test ecx, ecx
jbe 0x45fe22
mov edx, dword [esp + 0x2c]
sub edx, dword [esp + 0x18]
cmp edx, ecx
jb 0x45fd5d
push ecx
push eax
mov eax, dword [esp + 0x20]
push eax
call fcn.005c3120
mov ecx, dword [esp + 0x48]
add esp, 0xc
add dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
call eax
test edi, edi
ja 0x45fd93
cmp dword [ebx + 0x70], 0
je 0x45feb6
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
test eax, eax
jbe 0x45fe9c
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x18]
push eax
call edx
test eax, eax
je 0x45fe9c
mov ecx, dword [esp + 0x18]
test ecx, ecx
jbe 0x45fe9c
mov edx, edi
sub edx, esi
cmp edx, ecx
jb 0x45fd5d
push ecx
push eax
push esi
call fcn.005c3120
add esp, 0xc
add esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
test eax, eax
ja 0x45fe43
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
call edx
lea ecx, [esp + 0x44]
call fcn.0042dd30
lea eax, [esp + 0x1c]
mov byte [esp + 0xb8], 1
call fcn.00565750
mov edi, dword [esp + 0x24]
jmp 0x4601b3
lea eax, [esp + 0x8c]
push eax
call fcn.0042a550
add esp, 4
test al, al
je 0x45ff20
mov edi, 8
cmp dword [esp + 0x88], edi
jb 0x45ff08
mov ecx, dword [esp + 0x74]
push ecx
call fcn.0059b877
add esp, 4
cmp dword [esp + 0xa4], edi
mov dword [esp + 0x84], esi
mov word [esp + 0x74], si
jmp 0x45fbaf
lea eax, [esp + 0x8c]
push eax
call fcn.0042a480
add esp, 4
test al, al
jne 0x45ffc9
mov edx, dword [edi]
mov edx, dword [edx + 0x2c]
lea eax, [esp + 0x8c]
push eax
mov ecx, edi
call edx
test al, al
jne 0x45ffc9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [edi]
mov edx, dword [edx + 0x30]
lea ecx, [esp + 0x8c]
push ecx
push eax
mov ecx, edi
call edx
test al, al
je 0x4600a0
mov eax, dword [edi]
mov edx, dword [eax + 0x24]
push esi
push esi
push ebx
mov ecx, edi
call edx
mov eax, dword [edi]
mov edx, dword [eax + 0x28]
push ebx
mov ecx, edi
call edx
mov eax, dword [ebx + 0x80]
add dword [edi + 0x110], eax
mov ecx, dword [ebx + 0x84]
adc dword [edi + 0x114], ecx
mov edi, dword [edi + 0x104]
cmp edi, esi
je 0x45ffaf
mov edx, dword [edi]
mov eax, dword [edx + 0x10]
push ebx
mov ecx, edi
call eax
lea esi, [esp + 0x70]
call fcn.00405c10
lea esi, [esp + 0x8c]
call fcn.00405c10
jmp 0x460236
mov edx, dword [edi]
mov eax, dword [edx + 0x24]
push 0
push 0
push ebx
mov ecx, edi
call eax
mov eax, ebx
xor esi, esi
call fcn.004902f0
test eax, eax
jbe 0x4600f9
mov cl, byte [edi + 0x100]
test cl, cl
jne 0x4600f9
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x460009
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 3
cmp esi, eax
jb 0x46000e
call fcn.005b8b18
mov edx, dword [ebx + 4]
mov ecx, dword [edx + esi*8]
lea eax, [edx + esi*8]
mov eax, dword [eax + 4]
test eax, eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], eax
je 0x460032
add eax, 4
mov edx, 1
lock xadd dword [eax], edx
mov byte [esp + 0xb8], 5
cmp dword [ecx + 0x70], 3
jne 0x4600bc
cmp dword [ecx + 0x80], 0
jne 0x460056
cmp dword [ecx + 0x84], 0
je 0x4600d6
mov eax, dword [edi]
mov edx, dword [eax + 0x1c]
push ecx
mov ecx, edi
call edx
test al, al
jne 0x4600d6
mov cl, byte [edi + 0x100]
test cl, cl
je 0x46008f
mov eax, dword [edi + 0x104]
test eax, eax
je 0x46008f
mov eax, dword [eax]
movzx edx, byte [edi + 0x100]
mov ecx, dword [edi + 0x104]
add eax, 0x14
mov eax, dword [eax]
push edx
call eax
lea eax, [esp + 0x24]
mov byte [esp + 0xb8], 1
call fcn.00565750
lea esi, [esp + 0x70]
call fcn.00405c10
lea esi, [esp + 0x8c]
call fcn.00405c10
xor al, al
jmp 0x460238
mov eax, dword [edi]
mov eax, dword [eax + 0x10]
lea edx, [esp + 0x8c]
push edx
push ecx
mov ecx, edi
call eax
test al, al
je 0x460158
lea eax, [esp + 0x24]
mov byte [esp + 0xb8], 1
call fcn.00565750
mov eax, ebx
add esi, 1
call fcn.004902f0
cmp esi, eax
jb 0x45ffe8
mov dl, byte [edi + 0x100]
test dl, dl
je 0x460163
cmp dword [esp + 0x88], 8
jb 0x46011a
mov eax, dword [esp + 0x74]
push eax
call fcn.0059b877
add esp, 4
xor eax, eax
cmp dword [esp + 0xa4], 8
mov dword [esp + 0x88], 7
mov dword [esp + 0x84], eax
mov word [esp + 0x74], ax
jb 0x45fbcc
mov ecx, dword [esp + 0x90]
push ecx
call fcn.0059b877
add esp, 4
xor al, al
jmp 0x460238
mov cl, byte [edi + 0x100]
jmp 0x46008f
cmp dword [esp + 0xa4], 8
mov ecx, dword [ebx + 0x60]
mov eax, dword [esp + 0x90]
jae 0x46017e
lea eax, [esp + 0x90]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x460192
call esi
lea edx, [ebx + 0x58]
push edx
lea eax, [ebx + 0x50]
push eax
lea ecx, [ebx + 0x48]
push ecx
lea eax, [esp + 0x98]
call fcn.00438f00
add esp, 0xc
test al, al
jne 0x4601b3
call esi
mov edx, dword [edi]
mov eax, dword [edx + 0x28]
push ebx
mov ecx, edi
call eax
mov ecx, dword [ebx + 0x80]
add dword [edi + 0x110], ecx
mov edx, dword [ebx + 0x84]
adc dword [edi + 0x114], edx
mov edi, dword [edi + 0x104]
xor esi, esi
cmp edi, esi
je 0x4601eb
mov eax, dword [edi]
mov edx, dword [eax + 0x10]
push ebx
mov ecx, edi
call edx
mov edi, 8
cmp dword [esp + 0x88], edi
jb 0x460206
mov eax, dword [esp + 0x74]
push eax
call fcn.0059b877
add esp, 4
cmp dword [esp + 0xa4], edi
mov word [esp + 0x74], si
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], 7
jb 0x460236
mov ecx, dword [esp + 0x90]
push ecx
call fcn.0059b877
add esp, 4
mov al, 1
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.005b88a9
mov esp, ebp
pop ebp
ret 8