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

Disassembly:
push 0xffffffffffffffff
push 0x41dc77
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1e4
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x10]
lea edx, [esp + 0x204]
push eax
xor ebp, ebp
sub esp, 0x10
mov dword [esp + 0x210], 2
mov ecx, esp
mov dword [esp + 0x5c], esp
push edx
mov dword [esp + 0x28], ebp
call fcn.0040c030
call fcn.0040afc0
mov esi, eax
add esp, 0x14
cmp esi, ebp
jne 0x40b628
push 1
lea ecx, [esp + 0x208]
mov byte [esp + 0x200], 1
call fcn.0040cc10
push 1
lea ecx, [esp + 0x218]
mov byte [esp + 0x200], 0
call fcn.0040cc10
push 1
lea ecx, [esp + 0x22c]
mov dword [esp + 0x200], 0xffffffff
call fcn.0040cc10
mov eax, 1
jmp 0x40c013
mov al, byte [esp + 0x17]
push ebp
lea ecx, [esp + 0x50]
mov byte [esp + 0x50], al
call fcn.0040cc10
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
lea ecx, [esp + 0x54]
call fcn.0040cc60
push esi
mov byte [esp + 0x200], 3
call fcn.00415431
mov edi, 0x403858
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebp
push 0x403858
lea ecx, [esp + 0x58]
call fcn.0040ca50
cmp eax, 0xffffffff
jne 0x40b6e3
push 1
lea ecx, [esp + 0x50]
mov byte [esp + 0x200], 2
call fcn.0040cc10
push 1
lea ecx, [esp + 0x208]
mov byte [esp + 0x200], 1
call fcn.0040cc10
push 1
lea ecx, [esp + 0x218]
mov byte [esp + 0x200], 0
call fcn.0040cc10
push 1
lea ecx, [esp + 0x22c]
mov dword [esp + 0x200], 0xffffffff
call fcn.0040cc10
jmp 0x40c00e
mov edi, 0x403858
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebp
push 0x403858
lea ecx, [esp + 0x58]
call fcn.0040ca50
push eax
lea ecx, [esp + 0x94]
push ebp
push ecx
lea ecx, [esp + 0x58]
call fcn.0040c190
mov edi, 0x403858
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x1fc], 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebp
push 0x403858
lea ecx, [esp + 0x58]
call fcn.0040ca50
mov edx, dword [0x407740]
inc eax
push edx
push eax
lea eax, [esp + 0x88]
lea ecx, [esp + 0x54]
push eax
call fcn.0040c190
push 0x40384c
lea edx, [esp + 0x94]
sub esp, 0x10
mov bl, 5
mov ecx, esp
mov dword [esp + 0x5c], esp
push edx
mov byte [esp + 0x214], bl
call fcn.0040c030
lea eax, [esp + 0x70]
push eax
call fcn.0040abe0
add esp, 0x18
mov eax, dword [esp + 0x60]
mov byte [esp + 0x1fc], 6
cmp eax, ebp
jne 0x40b79c
mov eax, 0x407744
mov ecx, dword [esp + 0x84]
cmp ecx, ebp
jne 0x40b7ac
mov ecx, 0x407744
mov edx, dword [0x4032c0]
push edx
push eax
push ecx
call fcn.0040a8d0
add esp, 0xc
test eax, eax
jne 0x40b865
push 1
lea ecx, [esp + 0x60]
mov byte [esp + 0x200], bl
call fcn.0040cc10
push 1
lea ecx, [esp + 0x84]
mov byte [esp + 0x200], 4
call fcn.0040cc10
push 1
lea ecx, [esp + 0x94]
mov byte [esp + 0x200], 3
call fcn.0040cc10
push 1
lea ecx, [esp + 0x50]
mov byte [esp + 0x200], 2
call fcn.0040cc10
push 1
lea ecx, [esp + 0x208]
mov byte [esp + 0x200], 1
call fcn.0040cc10
push 1
lea ecx, [esp + 0x218]
mov byte [esp + 0x200], 0
call fcn.0040cc10
push 1
lea ecx, [esp + 0x22c]
mov dword [esp + 0x200], 0xffffffff
call fcn.0040cc10
mov eax, 3
jmp 0x40c013
mov edi, 0x403858
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebp
push 0x403858
lea ecx, [esp + 0x68]
call fcn.0040ca50
mov esi, eax
mov al, byte [esp + 0x17]
push ebp
lea ecx, [esp + 0x2c]
mov dword [esp + 0x4c], esi
mov byte [esp + 0x2c], al
call fcn.0040cc10
cmp esi, 0xffffffff
mov byte [esp + 0x1fc], 7
je 0x40b93b
push esi
lea ecx, [esp + 0xa4]
push ebp
push ecx
lea ecx, [esp + 0x68]
call fcn.0040c190
mov edx, dword [0x407740]
lea ecx, [esp + 0x28]
push edx
push ebp
push eax
mov byte [esp + 0x208], 8
call fcn.0040c540
push 1
lea ecx, [esp + 0xa4]
mov byte [esp + 0x200], 7
call fcn.0040cc10
mov eax, dword [0x407740]
inc esi
push eax
lea ecx, [esp + 0xc4]
push esi
push ecx
lea ecx, [esp + 0x68]
call fcn.0040c190
mov edx, dword [0x407740]
lea ecx, [esp + 0x5c]
push edx
push ebp
push eax
mov byte [esp + 0x208], 9
call fcn.0040c540
push 1
lea ecx, [esp + 0xc4]
mov byte [esp + 0x200], 7
call fcn.0040cc10
jmp 0x40b950
mov eax, dword [0x407740]
lea ecx, [esp + 0x5c]
push eax
push ebp
push ecx
lea ecx, [esp + 0x34]
call fcn.0040c540
mov edi, 0x40341c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebp
push 0x40341c
lea ecx, [esp + 0x34]
call fcn.0040c940
cmp eax, 0xffffffff
je 0x40be54
mov edi, 0x40341c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebp
push 0x40341c
lea ecx, [esp + 0x34]
call fcn.0040ca50
push eax
lea edx, [esp + 0x1c]
push ebp
push edx
lea ecx, [esp + 0x34]
call fcn.0040c190
mov edi, 0x40341c
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x1fc], 0xa
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebp
push 0x40341c
lea ecx, [esp + 0x34]
call fcn.0040ca50
mov ecx, dword [0x407740]
inc eax
push ecx
lea edx, [esp + 0x3c]
push eax
push edx
lea ecx, [esp + 0x34]
call fcn.0040c190
mov eax, dword [esp + 0x3c]
mov byte [esp + 0x1fc], 0xb
cmp eax, ebp
jne 0x40b9fa
mov eax, 0x407744
push 0x403844
push eax
call fcn.004155a0
add esp, 8
test eax, eax
je 0x40bb13
mov ecx, dword [esp + 0x230]
cmp ecx, ebp
je 0x40ba44
mov eax, dword [esp + 0x22c]
cmp eax, ebp
jne 0x40ba2b
mov eax, 0x407744
push ecx
push eax
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x20]
push eax
push ebp
call fcn.0040cb20
cmp eax, ebp
je 0x40bdf2
lea ecx, [esp + 0x10]
lea edx, [esp + 0x38]
push ecx
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x80], esp
push edx
call fcn.0040c030
call fcn.0040afc0
mov esi, eax
add esp, 0x14
cmp esi, ebp
je 0x40bdf2
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xe0]
push eax
push esi
push ecx
call fcn.0040a640
add esp, 0xc
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
cmp eax, ebp
mov byte [esp + 0x1fc], 0xc
jne 0x40ba9e
mov eax, 0x407744
mov edx, dword [esp + 0x20]
push ecx
push eax
push edx
push ebp
lea ecx, [esp + 0x28]
call fcn.0040cb20
cmp eax, ebp
push 1
lea ecx, [esp + 0xe4]
mov byte [esp + 0x200], 0xb
sete bl
call fcn.0040cc10
test bl, bl
je 0x40bdf2
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x238]
push eax
push esi
push edi
call fcn.0040b4d0
add esp, 0xc
push 2
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [esp + 0x10]
push ecx
push esi
call fcn.0040b3d0
mov edx, dword [esp + 0x244]
push esi
mov dword [edx], eax
call fcn.00415431
add esp, 0xc
jmp 0x40bce3
mov eax, dword [esp + 0x3c]
cmp eax, ebp
jne 0x40bb20
mov eax, 0x407744
push 0x40383c
push eax
call fcn.004155a0
add esp, 8
test eax, eax
je 0x40bc3b
mov ecx, dword [esp + 0x21c]
cmp ecx, ebp
je 0x40bb6a
mov eax, dword [esp + 0x218]
cmp eax, ebp
jne 0x40bb51
mov eax, 0x407744
push ecx
push eax
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x20]
push eax
push ebp
call fcn.0040cb20
cmp eax, ebp
je 0x40bdf2
lea ecx, [esp + 0x10]
lea edx, [esp + 0x38]
push ecx
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x80], esp
push edx
call fcn.0040c030
call fcn.0040afc0
mov esi, eax
add esp, 0x14
cmp esi, ebp
je 0x40bce3
mov edi, dword [esp + 0x224]
push edi
call fcn.0040aee0
mov eax, dword [esp + 0x14]
push edi
push eax
push esi
call fcn.0040b530
push esi
mov edi, eax
call fcn.00415431
add esp, 0x14
cmp edi, ebp
je 0x40bdf2
mov ecx, dword [esp + 0x224]
lea edx, [esp + 0xb0]
push ecx
push edx
call fcn.0040a230
add esp, 8
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
cmp eax, ebp
mov byte [esp + 0x1fc], 0xd
jne 0x40bbf2
mov eax, 0x407744
push ecx
push eax
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x20]
push eax
push ebp
call fcn.0040cb20
cmp eax, ebp
push 1
lea ecx, [esp + 0xb4]
mov byte [esp + 0x200], 0xb
sete bl
call fcn.0040cc10
test bl, bl
je 0x40bdf2
mov ecx, dword [esp + 0x224]
push ecx
call fcn.00408730
add esp, 4
jmp 0x40bce3
mov edi, 0x403838
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x407740]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push 0x403838
lea ecx, [esp + 0x44]
call fcn.0040cab0
mov edx, dword [0x407740]
inc eax
push edx
push eax
lea eax, [esp + 0x78]
lea ecx, [esp + 0x40]
push eax
call fcn.0040c190
mov eax, dword [esp + 0x74]
mov byte [esp + 0x1fc], 0xe
cmp eax, ebp
jne 0x40bc8c
mov eax, 0x407744
push eax
push 0x403828
lea ecx, [esp + 0xf8]
push 0x403820
push ecx
call fcn.0041531f
add esp, 0x10
lea edx, [esp + 0x10]
lea eax, [esp + 0x38]
push edx
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x80], esp
push eax
call fcn.0040c030
call fcn.0040afc0
mov esi, eax
add esp, 0x14
cmp esi, ebp
jne 0x40bd21
push 1
lea ecx, [esp + 0x74]
mov byte [esp + 0x200], 0xb
call fcn.0040cc10
push 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x200], 0xa
call fcn.0040cc10
push 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x200], 7
call fcn.0040cc10
push 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x200], 6
call fcn.0040cc10
jmp 0x40be8c
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0xf0]
push ecx
push esi
push edx
call fcn.0040b4d0
push esi
call fcn.00415431
lea eax, [esp + 0x100]
lea ecx, [esp + 0xe0]
push eax
push ecx
call fcn.0040a230
add esp, 0x18
mov ebx, dword [eax + 8]
mov eax, dword [eax + 4]
cmp eax, ebp
jne 0x40bd61
mov eax, 0x407744
mov edx, dword [esp + 0x20]
cmp edx, ebx
mov ecx, edx
jb 0x40bd6d
mov ecx, ebx
mov esi, dword [esp + 0x1c]
mov edi, eax
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40bd7e
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebp
jne 0x40bd94
cmp edx, ebx
jae 0x40bd8b
or eax, 0xffffffff
jmp 0x40bd92
xor eax, eax
cmp edx, ebx
setne al
cmp eax, ebp
push 1
lea ecx, [esp + 0xd4]
sete bl
mov byte [esp + 0x200], 0xe
call fcn.0040cc10
test bl, bl
je 0x40bdc1
lea edx, [esp + 0xf0]
push edx
call fcn.00408730
add esp, 4
mov eax, dword [esp + 0x74]
cmp eax, ebp
je 0x40bde6
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40bddd
cmp al, 0xff
je 0x40bddd
dec al
mov byte [ecx], al
jmp 0x40bde6
push ecx
call fcn.00412d82
add esp, 4
mov dword [esp + 0x74], ebp
mov dword [esp + 0x78], ebp
mov dword [esp + 0x7c], ebp
mov eax, dword [esp + 0x3c]
cmp eax, ebp
je 0x40be17
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40be0e
cmp al, 0xff
je 0x40be0e
dec al
mov byte [ecx], al
jmp 0x40be17
push ecx
call fcn.00412d82
add esp, 4
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x3c], ebp
cmp eax, ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
je 0x40be48
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40be3f
cmp al, 0xff
je 0x40be3f
dec al
mov byte [ecx], al
jmp 0x40be48
push ecx
call fcn.00412d82
add esp, 4
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov ecx, dword [esp + 0x2c]
mov byte [esp + 0x1fc], 6
cmp ecx, ebp
je 0x40be80
mov al, byte [ecx - 1]
test al, al
je 0x40be76
cmp al, 0xff
je 0x40be76
dec al
mov byte [ecx - 1], al
jmp 0x40be80
dec ecx
push ecx
call fcn.00412d82
add esp, 4
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
cmp dword [esp + 0x48], 0xffffffff
jne 0x40b865
mov ecx, dword [esp + 0x60]
cmp ecx, ebp
je 0x40bebb
mov al, byte [ecx - 1]
test al, al
je 0x40beb1
cmp al, 0xff
je 0x40beb1
dec al
mov byte [ecx - 1], al
jmp 0x40bebb
dec ecx
push ecx
call fcn.00412d82
add esp, 4
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x60], ebp
cmp ecx, ebp
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], ebp
je 0x40beee
mov al, byte [ecx - 1]
test al, al
je 0x40bee4
cmp al, 0xff
je 0x40bee4
dec al
mov byte [ecx - 1], al
jmp 0x40beee
dec ecx
push ecx
call fcn.00412d82
add esp, 4
mov ecx, dword [esp + 0x94]
mov dword [esp + 0x84], ebp
cmp ecx, ebp
mov dword [esp + 0x88], ebp
mov dword [esp + 0x8c], ebp
je 0x40bf2a
mov al, byte [ecx - 1]
test al, al
je 0x40bf20
cmp al, 0xff
je 0x40bf20
dec al
mov byte [ecx - 1], al
jmp 0x40bf2a
dec ecx
push ecx
call fcn.00412d82
add esp, 4
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x94], ebp
cmp ecx, ebp
mov dword [esp + 0x98], ebp
mov dword [esp + 0x9c], ebp
je 0x40bf63
mov al, byte [ecx - 1]
test al, al
je 0x40bf59
cmp al, 0xff
je 0x40bf59
dec al
mov byte [ecx - 1], al
jmp 0x40bf63
dec ecx
push ecx
call fcn.00412d82
add esp, 4
mov ecx, dword [esp + 0x208]
mov dword [esp + 0x50], ebp
cmp ecx, ebp
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], ebp
je 0x40bf96
mov al, byte [ecx - 1]
test al, al
je 0x40bf8c
cmp al, 0xff
je 0x40bf8c
dec al
mov byte [ecx - 1], al
jmp 0x40bf96
dec ecx
push ecx
call fcn.00412d82
add esp, 4
mov ecx, dword [esp + 0x218]
mov dword [esp + 0x208], ebp
cmp ecx, ebp
mov dword [esp + 0x20c], ebp
mov dword [esp + 0x210], ebp
je 0x40bfd2
mov al, byte [ecx - 1]
test al, al
je 0x40bfc8
cmp al, 0xff
je 0x40bfc8
dec al
mov byte [ecx - 1], al
jmp 0x40bfd2
dec ecx
push ecx
call fcn.00412d82
add esp, 4
mov ecx, dword [esp + 0x22c]
mov dword [esp + 0x218], ebp
cmp ecx, ebp
mov dword [esp + 0x21c], ebp
mov dword [esp + 0x220], ebp
je 0x40c00e
mov al, byte [ecx - 1]
test al, al
je 0x40c004
cmp al, 0xff
je 0x40c004
dec al
mov byte [ecx - 1], al
jmp 0x40c00e
dec ecx
push ecx
call fcn.00412d82
add esp, 4
mov eax, 2
mov ecx, dword [esp + 0x1f4]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1f0
ret