Function at 0x405110
Capabilities:
Delete directory
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x436068
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x354
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0xc0]
call fcn.00413eb0
xor ebx, ebx
lea ecx, [esp + 0xc8]
mov dword [esp + 0x36c], ebx
call fcn.00416ca0
lea ecx, [esp + 0x40]
mov dword [esp + 0x36c], 1
call fcn.0040de30
lea ecx, [esp + 0x14]
mov byte [esp + 0x36c], 2
call fcn.0040de30
lea ecx, [esp + 0x94]
mov byte [esp + 0x36c], 3
call fcn.0040de30
lea ecx, [esp + 0x6c]
mov byte [esp + 0x36c], 4
call fcn.00412600
lea ecx, [esp + 0x128]
mov byte [esp + 0x36c], 5
call fcn.00417f00
push ebx
lea ecx, [esp + 0x44]
mov byte [esp + 0x370], 6
lea esi, [ebp + 0x2b8]
call fcn.0040eef0
push eax
mov eax, dword [ebp + 8]
push eax
mov ecx, esi
call fcn.00406a30
test eax, eax
je 0x4054aa
lea ecx, [esp + 0x40]
call fcn.0040e230
mov edi, dword [esp + 0x374]
cmp edi, ebx
jne 0x40526e
lea esi, [ebp + 0x1e88]
mov ecx, esi
call fcn.0040ef30
test eax, eax
je 0x40526e
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x18]
call fcn.0040e470
push 0x5c
lea ecx, [esp + 0x18]
call fcn.0040f860
push ebx
lea ecx, [esp + 0x44]
call fcn.0040eef0
push eax
lea edx, [esp + 0x98]
push str.end___s_
push edx
call fcn.0040f2c0
add esp, 0xc
lea ecx, [esp + 0x14]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040eef0
push eax
push ebx
lea ecx, [esp + 0xb4]
call fcn.0040eef0
push eax
push ebx
mov ecx, esi
call fcn.0040eef0
push eax
lea ecx, [esp + 0x14c]
call fcn.00418390
push ebx
lea ecx, [esp + 0x44]
call fcn.0040eef0
push eax
lea ecx, [esp + 0xc4]
call fcn.00418730
test eax, eax
je 0x4054aa
cmp edi, 1
jne 0x4052f4
lea esi, [ebp + 0x1858]
push ebx
mov ecx, esi
call fcn.0040eef0
push eax
push 0x10005
lea ecx, [esp + 0x74]
call fcn.00412710
mov ecx, esi
call fcn.0040e230
push str.assets
push ebx
lea ecx, [esp + 0x48]
call fcn.0040eef0
push eax
lea ecx, [esp + 0x48]
call fcn.0040f810
push eax
lea eax, [esp + 0x1c]
push str._s__s_
push eax
call fcn.0040f2c0
add esp, 0x10
lea ecx, [esp + 0x14]
push ebx
call fcn.0040eef0
push eax
mov ecx, esi
call fcn.0040e3b0
lea ecx, [esp + 0xc8]
call fcn.00416f30
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x40548a
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0x3c]
test eax, 0xffff0000
je 0x405470
push str.assets
push eax
call fcn.0042ac26
add esp, 8
test eax, eax
jne 0x405470
lea ecx, [esi + 0x40]
call fcn.00416f30
mov edi, eax
cmp edi, ebx
je 0x405470
test dword [edi + 0x68], 0xffff0000
je 0x40545b
mov ecx, dword [edi + 0x6c]
lea esi, [ebp + 0x1858]
push ecx
push ebx
mov ecx, esi
call fcn.0040eef0
push eax
lea edx, [esp + 0x1c]
push str._s_s
push edx
call fcn.0040f2c0
add esp, 0x10
lea ecx, [esp + 0x14]
call fcn.0040e5e0
push ebx
lea ecx, [esp + 0x18]
call fcn.0040eef0
mov eax, dword [esp + 0x374]
push ebx
cmp eax, 1
lea ecx, [esp + 0x18]
jne 0x40544c
call fcn.0040eef0
push eax
lea ecx, [esp + 0x70]
call fcn.00412640
test eax, eax
jne 0x405444
push ebx
mov ecx, esi
call fcn.0040eef0
push eax
lea ecx, [esp + 0x70]
call fcn.00412690
test eax, eax
jne 0x4053fb
push ebx
push ebx
mov ecx, esi
call fcn.0040eef0
push eax
lea ecx, [esp + 0x74]
call fcn.00412c60
push 2
push ebx
mov ecx, esi
call fcn.0040eef0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp + 0x1820], 1
mov eax, dword [edi + 0x68]
mov ecx, dword [edi + 0x6c]
push eax
push ecx
push ebx
lea ecx, [esp + 0x20]
call fcn.0040eef0
mov edx, dword [ebp + 8]
push eax
push edx
lea ecx, [ebp + 0x2b8]
call fcn.00406970
mov eax, dword [edi + 0x6c]
push str.flashnotify.bat
push eax
call fcn.0042ac26
add esp, 8
test eax, eax
jne 0x40545b
lea ecx, [esp + 0x14]
push ecx
lea ecx, [ebp + 0x1e88]
call fcn.0040e470
jmp 0x40545b
mov dword [ebp + 0x181c], ebx
jmp 0x40545b
call fcn.0040eef0
push eax
lea ecx, [esp + 0x70]
call fcn.00412e10
mov ecx, edi
call fcn.00416f50
mov edi, eax
cmp edi, ebx
jne 0x405346
mov esi, dword [esp + 0x10]
mov ecx, esi
call fcn.00416f50
cmp eax, ebx
mov dword [esp + 0x10], eax
jne 0x40530c
mov edi, dword [esp + 0x374]
cmp edi, ebx
jne 0x4054aa
cmp dword [ebp + 0x1820], 1
jne 0x4054aa
push ebx
lea ecx, [ebp + 0x1858]
call fcn.0040eef0
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [esp + 0xc0]
call fcn.00418780
lea ecx, [esp + 0xc0]
call fcn.004187a0
cmp dword [esp + 0x374], 1
jne 0x40554a
lea esi, [ebp + 0x1e88]
mov ecx, esi
call fcn.0040ef30
test eax, eax
je 0x40554a
lea edx, [esp + 0x40]
lea ecx, [esp + 0x14]
push edx
call fcn.0040e470
push 0x5c
lea ecx, [esp + 0x18]
call fcn.0040f860
push ebx
lea ecx, [esp + 0x44]
call fcn.0040eef0
push eax
lea eax, [esp + 0x98]
push str.start___s_
push eax
call fcn.0040f2c0
add esp, 0xc
lea ecx, [esp + 0x14]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040eef0
push eax
push ebx
lea ecx, [esp + 0xb4]
call fcn.0040eef0
push eax
push ebx
mov ecx, esi
call fcn.0040eef0
push eax
lea ecx, [esp + 0x14c]
call fcn.00418390
lea ecx, [esp + 0x128]
mov byte [esp + 0x36c], 5
call fcn.00417f60
lea ecx, [esp + 0x6c]
mov byte [esp + 0x36c], 4
call fcn.00412620
lea ecx, [esp + 0x94]
mov byte [esp + 0x36c], 3
call fcn.0040ded0
lea ecx, [esp + 0x14]
mov byte [esp + 0x36c], 2
call fcn.0040ded0
lea ecx, [esp + 0x40]
mov byte [esp + 0x36c], 1
call fcn.0040ded0
lea ecx, [esp + 0xc8]
mov dword [esp + 0x36c], 7
call fcn.00416d00
lea ecx, [esp + 0xc0]
mov dword [esp + 0x36c], 0xffffffff
call fcn.00413ec0
mov ecx, dword [esp + 0x364]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x360
ret 4