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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x52c5d6
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x56fcac]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push esi
push edi
mov eax, dword [0x56fcac]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
xor ebx, ebx
push 0xffffffffffffffff
mov esi, ecx
push ebx
push eax
lea ecx, [esp + 0x98]
mov dword [esp + 0x34], esi
mov dword [esp + 0x40], edi
mov dword [esp + 0xb0], 7
mov dword [esp + 0xac], ebx
mov word [esp + 0x9c], bx
call fcn.00403310
mov dword [esp + 0xb8], ebx
push 0x548004
lea ebx, [esp + 0x90]
call fcn.00404bb0
add esp, 4
cmp dword [esp + 0xa0], 0
je 0x410bfe
push 0x5c
mov esi, ebx
call fcn.004081b0
mov esi, dword [esp + 0x28]
xor eax, eax
push 0xffffffffffffffff
push eax
lea ebx, [edi + 0x10]
push ebx
lea ecx, [esp + 0x7c]
mov dword [esp + 0x94], 7
mov dword [esp + 0x90], eax
mov word [esp + 0x80], ax
call fcn.00403310
lea ecx, [esp + 0x17]
push ecx
lea edx, [esp + 0x74]
push edx
mov byte [esp + 0xc0], 2
mov eax, dword [esi]
mov edx, dword [eax + 0x1c]
lea ecx, [esp + 0x94]
push ecx
push edi
mov ecx, esi
mov byte [esp + 0x27], 0
call edx
cmp byte [esp + 0x17], 0
je 0x410ca8
mov esi, 8
cmp dword [esp + 0x88], esi
jb 0x410c75
mov eax, dword [esp + 0x74]
push eax
call fcn.004aaa59
add esp, 4
xor eax, eax
cmp dword [esp + 0xa4], esi
mov dword [esp + 0x88], 7
mov dword [esp + 0x84], eax
mov word [esp + 0x74], ax
jb 0x4113ac
mov ecx, dword [esp + 0x90]
push ecx
jmp 0x4113a4
lea ecx, [esp + 0x70]
call fcn.00406b10
test al, al
jne 0x410d04
lea edx, [esp + 0x70]
push edx
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0x5c]
push ecx
call fcn.00408d00
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x98]
mov byte [esp + 0xc4], 3
call fcn.00403310
mov byte [esp + 0xb8], 2
cmp dword [esp + 0x6c], 8
jb 0x410d04
mov edx, dword [esp + 0x58]
push edx
call fcn.004aaa59
add esp, 4
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x94]
push eax
lea ecx, [edi + 0x2c]
call fcn.00403310
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x78]
push ecx
mov ecx, ebx
call fcn.00403310
cmp dword [esi + 0xe8], 0
je 0x410d3f
mov ecx, dword [esi + 0xe8]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push edi
call eax
xor ebx, ebx
cmp dword [edi + 0x98], ebx
je 0x4110d6
mov ebx, dword [esp + 0x28]
mov edx, dword [ebx]
mov eax, dword [edx + 0x20]
xor esi, esi
push esi
push edi
mov ecx, ebx
call eax
mov eax, dword [ebx + 0xb4]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
lea esi, [esp + 0x2c]
call fcn.0043ba60
test al, al
jne 0x410dcd
mov esi, 8
cmp dword [esp + 0x88], esi
jb 0x410d94
mov ecx, dword [esp + 0x74]
push ecx
call fcn.004aaa59
add esp, 4
xor eax, eax
cmp dword [esp + 0xa4], esi
mov dword [esp + 0x88], 7
mov dword [esp + 0x84], eax
mov word [esp + 0x74], ax
jb 0x410dc6
mov edx, dword [esp + 0x90]
push edx
call fcn.004aaa59
add esp, 4
xor al, al
jmp 0x4113ae
mov eax, dword [edi + 0x78]
mov edx, dword [esp + 0x2c]
cmp edx, eax
mov ecx, dword [edi + 0x7c]
jne 0x410de3
mov edx, dword [esp + 0x30]
cmp edx, ecx
je 0x410e0c
push 0
push ecx
push eax
mov eax, dword [ebx + 0xb4]
lea esi, [esp + 0x38]
call fcn.0043bb10
test al, al
je 0x410e79
mov eax, dword [esp + 0x2c]
cmp eax, dword [edi + 0x78]
jne 0x410e79
mov ecx, dword [esp + 0x30]
cmp ecx, dword [edi + 0x7c]
jne 0x410e79
mov eax, dword [edi + 0x70]
mov edx, dword [ebx]
mov edx, dword [edx + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, ebx
call edx
mov byte [esp + 0xb8], 4
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x410e68
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
call edx
mov eax, dword [edi + 0x98]
cmp eax, 1
jne 0x410e95
sub esp, 8
lea ecx, [esp + 0x20]
mov eax, esp
mov dword [esp + 0x34], esp
call fcn.00411420
push edi
push ebx
lea ecx, [esp + 0x9c]
call fcn.004115c0
test al, al
jne 0x4110bc
lea eax, [esp + 0x18]
mov byte [esp + 0xb8], 2
call fcn.004113e0
lea ecx, [esp + 0x70]
call fcn.00401e70
lea ecx, [esp + 0x8c]
call fcn.00401e70
xor al, al
jmp 0x4113ae
cmp eax, 2
jne 0x4110bc
lea esi, [edi + 0x88]
mov edi, dword [edi + 0x68]
mov dword [esp + 0x3c], 0
call fcn.00403d20
mov ebx, dword [esp + 0x34]
cmp dword [ebx + 0x70], 0
jne 0x410ef5
mov edx, dword [ebx + 0x68]
mov eax, dword [ebx + 0x90]
lea ecx, [esp + 0x3c]
push ecx
push edx
push eax
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 0xb4]
call fcn.0043b9c0
test al, al
je 0x410e68
mov ebx, dword [ebx + 0x68]
mov eax, dword [esi + 4]
cmp ebx, eax
ja 0x410eed
mov eax, ebx
mov dword [esi + 0xc], eax
jmp 0x4110b8
mov ecx, dword [ebx + 0x90]
mov eax, dword [ebx + 0x68]
mov dword [esp + 0x24], ecx
add ecx, eax
mov dword [esp + 0x2c], ecx
mov ecx, dword [esi + 4]
cmp eax, ecx
jbe 0x410f11
mov eax, ecx
mov dword [esi + 0xc], eax
mov edi, dword [ebx + 0x80]
lea esi, [esp + 0x44]
call fcn.004038c0
mov byte [esp + 0xb8], 5
mov eax, dword [ebx + 0x80]
mov ecx, dword [esp + 0x4c]
lea edx, [esp + 0x3c]
push edx
mov edx, dword [esp + 0x2c]
push eax
push ecx
mov ecx, dword [edx + 0xb4]
call fcn.0043b9c0
test al, al
jne 0x410f5d
lea ecx, [esp + 0x44]
call fcn.00403950
jmp 0x410e68
mov ecx, dword [esp + 0x48]
mov eax, dword [ebx + 0x80]
cmp eax, ecx
mov dword [esp + 0x50], ecx
ja 0x410f73
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x24]
xor esi, esi
cmp eax, esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x40], esi
jbe 0x41102f
lea ecx, [ecx]
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
push 0
lea edx, [esp + 0x44]
push edx
mov edx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x58]
add edx, esi
push edx
call eax
test al, al
je 0x410f4f
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
sub dword [esp + 0x20], eax
add esi, eax
mov eax, dword [edx + 0x20]
push esi
push ebx
call eax
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
test eax, eax
jbe 0x411024
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x24], 0
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
lea eax, [esp + 0x24]
push eax
call edx
test eax, eax
je 0x411019
mov ecx, dword [esp + 0x24]
test ecx, ecx
jbe 0x411019
mov edx, dword [esp + 0x2c]
sub edx, edi
cmp edx, ecx
jb 0x410f4f
push ecx
push eax
push edi
call fcn.004eca20
add esp, 0xc
add edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov edx, dword [eax + 0x18]
call edx
cmp dword [esp + 0x20], 0
ja 0x410f90
cmp dword [ebx + 0x70], 0
je 0x4110af
mov esi, dword [esp + 0x2c]
xor ebx, ebx
jmp 0x411040
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
test eax, eax
jbe 0x411095
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x20], ebx
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
lea edx, [esp + 0x20]
push edx
call eax
cmp eax, ebx
je 0x411095
mov ecx, dword [esp + 0x20]
cmp ecx, ebx
jbe 0x411095
mov edx, esi
sub edx, edi
cmp edx, ecx
jb 0x410f4f
push ecx
push eax
push edi
call fcn.004eca20
add esp, 0xc
add edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
test eax, eax
ja 0x411040
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov edx, dword [eax + 0x18]
call edx
lea ecx, [esp + 0x44]
call fcn.00403950
mov edi, dword [esp + 0x34]
lea eax, [esp + 0x18]
mov byte [esp + 0xb8], 2
call fcn.004113e0
mov esi, dword [esp + 0x28]
jmp 0x41133d
lea eax, [esp + 0x8c]
push eax
call fcn.00406870
add esp, 4
test al, al
je 0x411140
mov esi, 8
cmp dword [esp + 0x88], esi
jb 0x411105
mov ecx, dword [esp + 0x74]
push ecx
call fcn.004aaa59
add esp, 4
cmp dword [esp + 0xa4], esi
mov dword [esp + 0x88], 7
mov dword [esp + 0x84], ebx
mov word [esp + 0x74], bx
jb 0x410dc6
mov edx, dword [esp + 0x90]
push edx
call fcn.004aaa59
add esp, 4
xor al, al
jmp 0x4113ae
lea eax, [esp + 0x8c]
push eax
call fcn.00406720
add esp, 4
test al, al
jne 0x4111ce
mov edx, dword [esi]
mov edx, dword [edx + 0x28]
lea eax, [esp + 0x8c]
push eax
mov ecx, esi
call edx
test al, al
jne 0x4111ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi]
mov edx, dword [edx + 0x2c]
lea ecx, [esp + 0x8c]
push ecx
push eax
mov ecx, esi
call edx
test al, al
je 0x410e79
mov eax, dword [esi]
mov edx, dword [eax + 0x20]
push ebx
push edi
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
push edi
mov ecx, esi
call edx
cmp dword [esi + 0xe8], ebx
je 0x4111b4
mov ecx, dword [esi + 0xe8]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
push edi
call edx
lea ecx, [esp + 0x70]
call fcn.00401e70
lea ecx, [esp + 0x8c]
call fcn.00401e70
jmp 0x4113ac
mov eax, dword [esi]
mov edx, dword [eax + 0x20]
push 0
push edi
mov ecx, esi
call edx
mov eax, edi
xor ebx, ebx
call fcn.00414820
test eax, eax
jbe 0x411276
jmp 0x4111f0
mov al, byte [esi + 0xe4]
test al, al
jne 0x411276
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x41120d
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 3
cmp ebx, eax
jb 0x411212
call fcn.004ec14b
mov ecx, dword [edi + 4]
lea eax, [ecx + ebx*8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
test eax, eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], eax
je 0x411235
add eax, 4
mov edx, 1
lock xadd dword [eax], edx
lea edx, [esp + 0x8c]
mov byte [esp + 0xb8], 6
mov eax, dword [esi]
mov eax, dword [eax + 0x18]
push edx
push ecx
mov ecx, esi
call eax
test al, al
lea eax, [esp + 0x34]
je 0x4112d5
mov byte [esp + 0xb8], 2
call fcn.004101d0
mov eax, edi
add ebx, 1
call fcn.00414820
cmp ebx, eax
jb 0x4111f0
mov dl, byte [esi + 0xe4]
test dl, dl
je 0x4112ed
cmp dword [esp + 0x88], 8
jb 0x411297
mov eax, dword [esp + 0x74]
push eax
call fcn.004aaa59
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 0x410dc6
mov ecx, dword [esp + 0x90]
push ecx
call fcn.004aaa59
add esp, 4
xor al, al
jmp 0x4113ae
mov cl, byte [esi + 0xe4]
mov byte [esp + 0xb8], 2
call fcn.004101d0
jmp 0x410e79
cmp dword [esp + 0xa4], 8
mov ecx, dword [edi + 0x60]
mov eax, dword [esp + 0x90]
jae 0x411308
lea eax, [esp + 0x90]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x41131c
call ebx
lea edx, [edi + 0x58]
push edx
lea eax, [edi + 0x50]
push eax
lea ecx, [edi + 0x48]
push ecx
lea eax, [esp + 0x98]
call fcn.0043d640
add esp, 0xc
test al, al
jne 0x41133d
call ebx
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push edi
mov ecx, esi
call eax
xor ebx, ebx
cmp dword [esi + 0xe8], ebx
je 0x411361
mov esi, dword [esi + 0xe8]
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
push edi
mov ecx, esi
call eax
mov esi, 8
cmp dword [esp + 0x88], esi
jb 0x41137c
mov ecx, dword [esp + 0x74]
push ecx
call fcn.004aaa59
add esp, 4
cmp dword [esp + 0xa4], esi
mov dword [esp + 0x88], 7
mov dword [esp + 0x84], ebx
mov word [esp + 0x74], bx
jb 0x4113ac
mov edx, dword [esp + 0x90]
push edx
call fcn.004aaa59
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.004ead41
mov esp, ebp
pop ebp
ret 8