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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x493152
mov eax, dword fs:[0]
push eax
sub esp, 0x930
mov eax, dword [0x4aeea0]
xor eax, esp
mov dword [esp + 0x928], eax
push ebx
push esi
push edi
mov eax, dword [0x4aeea0]
xor eax, esp
push eax
lea eax, [esp + 0x940]
mov dword fs:[0], eax
mov ebx, edx
mov dword [esp + 0x24], ebx
mov esi, ecx
mov dword [esp + 0x20], esi
push 1
call fcn.00441f39
add esp, 4
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x94c], 0
call fcn.004049e0
mov dword [esp + 0x94c], 0xffffffff
mov ecx, dword [esp + 0x18]
add esp, 4
mov dword [esp + 0x1c], eax
test ecx, ecx
je 0x4086ca
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x4086ca
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx]
lea ecx, [esp + 0x54]
call fcn.0040dbd0
lea ecx, [esp + 0x3c]
mov dword [esp + 0x948], 1
call fcn.0040d4a0
mov ecx, esi
mov byte [esp + 0x948], 2
call fcn.0040dfb0
push ecx
lea edx, [esp + 0x40]
lea ecx, [esp + 0x58]
call fcn.0040dcd0
add esp, 4
test al, al
je 0x408845
lea ecx, [esp + 0x3c]
call fcn.0040dd90
push 0xc8
call fcn.0045b2f0
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
test edi, edi
je 0x408790
push ecx
lea ecx, [edi + 0x10]
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
call fcn.00402100
mov byte [esp + 0x948], 4
sub esp, 8
lea ecx, [edi + 0x10]
mov dword [edi], vtable.ResOutStream.0
call fcn.0040b8d0
mov byte [esp + 0x948], 5
cmp dword [esp + 0x50], 8
push 0xc8
lea eax, [esp + 0x40]
cmovae eax, dword [esp + 0x40]
push 0x4a47fc
push eax
mov ecx, edi
call fcn.0040b590
jmp 0x408792
xor edi, edi
push 0x38
mov byte [esp + 0x94c], 2
call fcn.0045b2f0
add esp, 4
mov dword [esp + 0x18], eax
mov byte [esp + 0x948], 6
test eax, eax
je 0x4087c7
push ebx
mov ecx, eax
mov dword [eax + 0x1c], 0
call fcn.00404f90
mov ebx, eax
jmp 0x4087c9
xor ebx, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], 0
mov byte [esp + 0x38], 0
mov dword [esp + 0x28], 0
lea ecx, [esp + 0x28]
mov byte [esp + 0x948], 7
call fcn.0040ca70
mov esi, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], esi
test ebx, ebx
je 0x408811
mov esi, dword [ebx]
push 1
mov ecx, ebx
call dword [esi]
mov esi, dword [esp + 0x14]
test edi, edi
je 0x40881d
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
test esi, esi
jg 0x40882e
jl 0x40882a
cmp dword [esp + 0x18], 0
ja 0x40882e
mov al, 1
jmp 0x408830
xor al, al
mov byte [esp + 0x948], 2
test al, al
je 0x4088aa
lea ecx, [esp + 0x3c]
call fcn.0040dc80
xor bl, bl
cmp dword [esp + 0x50], 8
jb 0x40885a
push dword [esp + 0x3c]
call fcn.0045b2a0
add esp, 4
xor eax, eax
cmp dword [esp + 0x68], 8
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], 0
mov word [esp + 0x3c], ax
jb 0x408884
push dword [esp + 0x54]
call fcn.0045b2a0
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x940]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x928]
xor ecx, esp
call fcn.0045a8cf
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x24]
cmp dword [eax + 0x14], 8
jb 0x4088b6
mov eax, dword [eax]
push 0x100
lea ecx, [esp + 0x738]
push ecx
push 0x100
lea ecx, [esp + 0x540]
push ecx
push 0x100
lea ecx, [esp + 0x348]
push ecx
push 0x100
lea ecx, [esp + 0x150]
push ecx
push eax
call fcn.0045cb0a
add esp, 0x24
lea eax, [esp + 0x734]
push 0x100
push eax
call fcn.0045bfea
lea ecx, [esp + 0x44]
mov esi, eax
call fcn.0040dd90
add esp, 4
lea ecx, [esp + 0x80]
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
call fcn.00402100
mov byte [esp + 0x948], 8
sub esp, 8
lea ecx, [esp + 0x84]
mov dword [esp + 0x74], vtable.ResOutStream.0
call fcn.0040b8d0
mov byte [esp + 0x948], 9
cmp dword [esp + 0x50], 8
push 0x12c
lea eax, [esp + 0x40]
cmovae eax, dword [esp + 0x40]
push 0x4a47fc
push eax
lea ecx, [esp + 0x78]
call fcn.0040b590
push 0
add esi, esi
push esi
lea eax, [esp + 0x73c]
push eax
lea ecx, [esp + 0x98]
mov byte [esp + 0x954], 0xa
call fcn.00405b40
lea ecx, [esp + 0x6c]
call fcn.0040b730
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x734]
mov edx, dword [ecx]
add eax, esi
push eax
lea eax, [esp + 0x738]
push eax
call dword [edx + 0x24]
lea ecx, [esp + 0x3c]
call fcn.0040dd90
sub esp, 0x18
lea eax, [esp + 0x74c]
mov ecx, esp
push eax
call fcn.004028f0
lea ecx, [esp + 0x54]
call fcn.00407fa0
add esp, 0x18
test al, al
jne 0x408a11
lea ecx, [esp + 0x3c]
call fcn.0040dc80
lea ecx, [esp + 0x6c]
xor bl, bl
mov byte [esp + 0x948], 2
call fcn.0040b660
jmp 0x408847
cmp dword [esp + 0x50], 8
lea eax, [esp + 0x3c]
cmovae eax, dword [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [esp + 0x50], 8
lea ecx, [esp + 0x3c]
cmovae ecx, dword [esp + 0x3c]
and eax, 0xffffff7f
or eax, 2
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esp + 0x3c]
call fcn.0040dd90
mov esi, dword [esp + 0x20]
sub esp, 8
mov edx, esi
lea ecx, [esp + 0x44]
call fcn.0040dd30
add esp, 8
movzx edi, al
test al, al
je 0x408a7a
push 2
mov edx, 0x80
mov ecx, esi
call fcn.0040df70
add esp, 4
test edi, edi
lea ecx, [esp + 0x6c]
setne bl
mov byte [esp + 0x948], 2
call fcn.0040b660
jmp 0x408847