Function at 0x477980
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x12
push 0
push 0
dec ecx
jne 0x477989
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x477fae
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 1
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 1
xor eax, eax
push ebp
push 0x477f1b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 4]
call fcn.00405844
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
mov edx, 0x477fc8
call fcn.00455f84
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0x14]
call fcn.004051f0
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 0x14]
call fcn.00405844
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
call fcn.0045bc94
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x10]
call fcn.004587f0
mov dl, 1
mov eax, dword [0x4159bc]
call fcn.00404150
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x477f0a
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
je 0x477a61
lea ecx, [ebp - 0x38]
xor edx, edx
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x38]
mov edx, 0x477ffc
call fcn.0040536c
je 0x477a7d
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 0xffffffff
call fcn.004049f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x477f2f
xor edx, edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x477b24
inc ebx
xor esi, esi
lea ecx, [ebp - 0x1c]
mov edx, esi
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0xc]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
xor ecx, ecx
mov edx, 0x478010
call fcn.00456f70
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
call fcn.004568f4
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 0x20]
call fcn.00456e44
mov eax, dword [ebp - 0x3c]
mov edx, 0x47801c
call fcn.0040536c
jne 0x477afa
lea eax, [ebp - 0x40]
mov edx, dword [ebp - 0x24]
call fcn.004051f0
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 4]
call fcn.004780ec
jmp 0x477b1c
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 0x20]
call fcn.00456e44
mov eax, dword [ebp - 0x44]
mov edx, 0x47802c
call fcn.0040536c
jne 0x477b1c
mov eax, dword [ebp - 0x1c]
call fcn.004618ec
inc esi
dec ebx
jne 0x477a9d
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x477cbb
inc ebx
xor esi, esi
lea ecx, [ebp - 0x1c]
mov edx, esi
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0xc]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
xor ecx, ecx
mov edx, 0x478010
call fcn.00456f70
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
call fcn.004568f4
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 0x20]
call fcn.00456e44
mov eax, dword [ebp - 0x48]
mov edx, 0x478038
call fcn.0040536c
jne 0x477b8f
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.0047769c
jmp 0x477cb3
lea edx, [ebp - 0x4c]
mov eax, dword [ebp - 0x20]
call fcn.00456e44
mov eax, dword [ebp - 0x4c]
mov edx, 0x478044
call fcn.0040536c
jne 0x477bb6
mov eax, dword [ebp - 0x24]
call fcn.00475cb8
jmp 0x477cb3
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 0x20]
call fcn.00456e44
mov eax, dword [ebp - 0x50]
mov edx, 0x478054
call fcn.0040536c
jne 0x477bdd
mov eax, dword [ebp - 0x24]
call fcn.00475d1c
jmp 0x477cb3
lea edx, [ebp - 0x54]
mov eax, dword [ebp - 0x20]
call fcn.00456e44
mov eax, dword [ebp - 0x54]
mov edx, 0x478064
call fcn.0040536c
jne 0x477c04
mov eax, dword [ebp - 0x24]
call fcn.00475ab4
jmp 0x477cb3
lea edx, [ebp - 0x58]
mov eax, dword [ebp - 0x20]
call fcn.00456e44
mov eax, dword [ebp - 0x58]
mov edx, 0x478074
call fcn.0040536c
jne 0x477c2b
mov eax, dword [ebp - 0x24]
call fcn.00475b18
jmp 0x477cb3
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 0x20]
call fcn.00456e44
mov eax, dword [ebp - 0x5c]
mov edx, 0x478084
call fcn.0040536c
jne 0x477c52
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.00477840
jmp 0x477cb3
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 0x20]
call fcn.00456e44
mov eax, dword [ebp - 0x60]
mov edx, 0x478090
call fcn.0040536c
jne 0x477c83
lea eax, [ebp - 0x64]
mov edx, dword [ebp - 0x24]
call fcn.004051f0
mov eax, dword [ebp - 0x64]
mov dl, 1
call fcn.004724a4
jmp 0x477cb3
lea edx, [ebp - 0x68]
mov eax, dword [ebp - 0x20]
call fcn.00456e44
mov eax, dword [ebp - 0x68]
mov edx, 0x47809c
call fcn.0040536c
jne 0x477cb3
lea eax, [ebp - 0x6c]
mov edx, dword [ebp - 0x24]
call fcn.004051f0
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 4]
call fcn.004780ec
inc esi
dec ebx
jne 0x477b3a
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
je 0x477cdd
lea eax, [ebp - 0x70]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 8]
call fcn.00405844
mov edx, dword [ebp - 0x70]
mov eax, dword [ebp - 4]
call fcn.0047769c
lea eax, [ebp - 0x74]
mov edx, dword [ebp - 0x14]
call fcn.00405844
mov edx, dword [ebp - 0x74]
mov eax, dword [ebp - 4]
call fcn.0047769c
mov dword [ebp - 0x18], 3
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x477df1
inc ebx
xor esi, esi
lea ecx, [ebp - 0x1c]
mov edx, esi
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0xc]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
xor ecx, ecx
mov edx, 0x478010
call fcn.00456f70
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
call fcn.004568f4
lea edx, [ebp - 0x78]
mov eax, dword [ebp - 0x20]
call fcn.00456e44
mov eax, dword [ebp - 0x78]
mov edx, 0x478038
call fcn.0040536c
jne 0x477d6d
lea edx, [ebp - 0x7c]
mov eax, dword [ebp - 0x24]
call fcn.0045ae2c
mov edx, dword [ebp - 0x7c]
mov eax, dword [ebp - 4]
call fcn.004777ac
jmp 0x477de9
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x20]
call fcn.00456e44
mov eax, dword [ebp - 0x80]
mov edx, 0x4780a8
call fcn.0040536c
jne 0x477d94
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.004777ac
jmp 0x477de9
lea edx, [ebp - 0x84]
mov eax, dword [ebp - 0x20]
call fcn.00456e44
mov eax, dword [ebp - 0x84]
mov edx, 0x4780b4
call fcn.0040536c
jne 0x477dbe
mov eax, dword [ebp - 0x24]
call fcn.0045f5f4
jmp 0x477de9
lea edx, [ebp - 0x88]
mov eax, dword [ebp - 0x20]
call fcn.00456e44
mov eax, dword [ebp - 0x88]
mov edx, 0x4780c0
call fcn.0040536c
jne 0x477de9
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.004778e0
inc esi
dec ebx
jne 0x477d10
dec dword [ebp - 0x18]
jne 0x477cfa
push 0
push 0
push 0
push 0x8000000
call fcn.00459b04
mov edx, 0x4780c8
mov eax, dword [ebp - 4]
call fcn.004777ac
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.00405420
push eax
call sub.KERNEL32.DLL_RemoveDirectoryA
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x477eea
inc ebx
xor esi, esi
lea ecx, [ebp - 0x1c]
mov edx, esi
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0xc]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
xor ecx, ecx
mov edx, 0x478010
call fcn.00456f70
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
call fcn.004568f4
lea edx, [ebp - 0x8c]
mov eax, dword [ebp - 0x20]
call fcn.00456e44
mov eax, dword [ebp - 0x8c]
mov edx, 0x47801c
call fcn.0040536c
jne 0x477ea7
lea eax, [ebp - 0x90]
mov edx, dword [ebp - 0x24]
call fcn.004051f0
mov edx, dword [ebp - 0x90]
mov eax, dword [ebp - 4]
call fcn.004780ec
jmp 0x477ee2
lea edx, [ebp - 0x94]
mov eax, dword [ebp - 0x20]
call fcn.00456e44
mov eax, dword [ebp - 0x94]
mov edx, 0x4780e8
call fcn.0040536c
jne 0x477ee2
lea eax, [ebp - 0x98]
mov edx, dword [ebp - 0x24]
call fcn.004051f0
mov edx, dword [ebp - 0x98]
xor eax, eax
call fcn.004632cc
inc esi
dec ebx
jne 0x477e3e
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x477f11
mov eax, dword [ebp - 0xc]
call fcn.00404180
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x477fb5
lea eax, [ebp - 0x98]
mov edx, 7
call fcn.00404f94
lea eax, [ebp - 0x7c]
call fcn.00405660
lea eax, [ebp - 0x78]
call fcn.00404f70
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.00405678
lea eax, [ebp - 0x6c]
mov edx, 0xe
call fcn.00404f94
lea eax, [ebp - 0x34]
call fcn.00405660
lea eax, [ebp - 0x30]
call fcn.00404f70
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.00405678
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00404f94
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00404f94
ret