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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x40c4
call fcn.00492e50
mov eax, dword [0x4e42d0]
xor eax, esp
mov dword [esp + 0x40c0], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0xc]
push SysReAllocString
push eax
xor ebx, ebx
mov dword [esp + 0x54], esi
mov dword [esp + 0x48], 0x411220
mov dword [esp + 0x4c], 0x410a90
mov dword [esp + 0x58], 0x411220
mov dword [esp + 0x5c], 0x410a90
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x4c], eax
cmp eax, 0xffffffff
jne 0x410e21
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jne 0x4111c5
lea ecx, [esp + 0x44]
mov dword [esp + 0x44], 0x40c170
mov dword [esp + 0x48], 0x40c1a0
mov dword [esp + 0xa8], 0x40e8f0
mov dword [esp + 0xac], 0x40e950
mov dword [esp + 0xb0], 0x40e960
mov dword [esp + 0xb4], 0x40e9c0
mov dword [esp + 0xb8], ecx
mov dword [esp + 0xc0], esi
mov dword [esp + 0xbc], esi
call fcn.0040b340
lea edx, [esp + 0xa8]
push edx
lea eax, [esp + 0x5c]
push eax
lea edx, [esp + 0x44]
lea ecx, [esp + 0x34]
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x90], esi
mov dword [esp + 0x94], esi
mov dword [esp + 0x98], esi
mov dword [esp + 0x9c], esi
mov dword [esp + 0xa0], esi
mov dword [esp + 0xa4], esi
mov dword [esp + 0xa8], esi
call fcn.0040e280
add esp, 8
mov dword [esp + 0x18], eax
cmp eax, esi
je 0x410f02
lea edi, [esp + 0x2c]
lea eax, [esp + 0x58]
call fcn.0040c390
mov eax, dword [esp + 0x18]
mov dword [esp + 0xc], eax
cmp eax, esi
jne 0x41114f
xor eax, eax
mov dword [esp + 0x50], 0xffffffff
mov dword [esp + 0x20], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x14], eax
cmp dword [esp + 0x74], esi
jbe 0x41113e
mov edi, edi
mov edi, dword [esp + 0x98]
mov dword [esp + 0x34], esi
mov dword [esp + 0x1c], esi
mov esi, dword [edi + eax*4 + 4]
sub esi, dword [edi + eax*4]
mov edx, eax
shl edx, 5
add edx, dword [esp + 0x68]
mov dword [esp + 0x10], edx
cmp esi, dword [esp + 0x38]
jbe 0x410f89
push ebx
call fcn.0048f989
add esp, 4
mov dword [esp + 0x38], esi
add esi, esi
je 0x411128
push esi
call fcn.0048f80a
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x41112a
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov esi, dword [edi + eax*4]
mov ecx, dword [edi + eax*4 + 4]
sub ecx, esi
test ebx, ebx
je 0x410fc5
mov edi, dword [esp + 0x9c]
lea esi, [edi + esi*2]
test ecx, ecx
je 0x410fc5
mov edx, esi
mov eax, ebx
sub edx, ebx
lea ebx, [ebx]
mov si, word [edx + eax]
mov word [eax], si
add eax, 2
dec ecx
jne 0x410fb0
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
cmp byte [edx + 0x19], 0
je 0x410fda
push 0x4baed4
call fcn.004911e5
add esp, 4
jmp 0x41101e
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x40]
push edx
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x68]
push ecx
push eax
lea edx, [esp + 0xc8]
push edx
lea eax, [esp + 0x7c]
call fcn.0040e650
add esp, 0x24
mov dword [esp + 0xc], eax
test eax, eax
jne 0x41113c
xor edi, edi
cmp word [ebx], di
je 0x411052
mov esi, ebx
cmp word [esi], 0x2f
jne 0x411047
mov ecx, dword [esp + 0x24]
xor eax, eax
push ebx
mov word [esi], ax
call fcn.00410b60
mov ecx, 0x5c
add esp, 4
mov word [esi], cx
inc edi
cmp word [ebx + edi*2], 0
lea esi, [ebx + edi*2]
jne 0x411027
mov edx, dword [esp + 0x10]
cmp byte [edx + 0x19], 0
mov ecx, dword [esp + 0x24]
je 0x41106e
push ebx
call fcn.00410b60
add esp, 4
jmp 0x4110fb
lea eax, [esp + 0x28]
push eax
mov edx, ebx
call fcn.00410c80
add esp, 4
test eax, eax
je 0x41108b
mov dword [esp + 0xc], 0xb
jmp 0x411108
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
add eax, dword [esp + 0x34]
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x28]
push ecx
lea edi, [esp + 0x1c]
call fcn.0040c060
add esp, 4
test eax, eax
jne 0x411134
mov edx, dword [esp + 0x1c]
cmp dword [esp + 0x18], edx
jne 0x411134
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x28]
push edi
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp esi, 0xffffffff
je 0x4110ea
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x41111e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x411134
cmp byte [edi + 0x1d], 0
je 0x4110fb
mov eax, dword [edi + 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x4baed8
call fcn.004911e5
add esp, 4
mov eax, dword [esp + 0x14]
inc eax
xor esi, esi
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x74]
jae 0x41113e
jmp 0x410f30
mov dword [esp + 0x28], 0xffffffff
jmp 0x4110ea
xor ebx, ebx
mov dword [esp + 0xc], 2
jmp 0x41113c
mov dword [esp + 0xc], 0xb
xor esi, esi
mov ecx, dword [esp + 0x20]
push ecx
lea edx, [esp + 0x30]
push edx
call dword [esp + 0x38]
add esp, 8
lea edi, [esp + 0x2c]
lea eax, [esp + 0x58]
call fcn.0040c390
push ebx
call fcn.0048f989
mov eax, dword [esp + 0x50]
add esp, 4
cmp eax, 0xffffffff
je 0x411189
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x411181
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x411189
mov dword [esp + 0x4c], 0xffffffff
mov eax, dword [esp + 0xc]
cmp eax, esi
jne 0x4111a8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40c0]
xor ecx, esp
call fcn.0048f6cb
mov esp, ebp
pop ebp
ret
cmp eax, 4
je 0x4111c5
cmp eax, 2
je 0x4111c5
cmp eax, 3
je 0x4111c5
push eax
push 0x4baedc
call fcn.004911e5
add esp, 8
mov ecx, dword [esp + 0x40cc]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0048f6cb
mov esp, ebp
pop ebp
ret