Function at 0x403f20
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x41a913
mov eax, dword fs:[0]
push eax
sub esp, 0x324
mov eax, dword [0x422060]
xor eax, esp
mov dword [esp + 0x320], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x422060]
xor eax, esp
push eax
lea eax, [esp + 0x338]
mov dword fs:[0], eax
mov eax, edx
lea esi, [eax + 2]
xor ebp, ebp
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x403f62
sub eax, esi
sar eax, 1
cmp eax, 5
ja 0x403f7d
xor eax, eax
jmp 0x4045db
mov eax, edx
mov dword [esp + 0xc4], 7
mov dword [esp + 0xc0], ebp
mov word [esp + 0xb0], bp
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x403fa0
sub eax, esi
sar eax, 1
push eax
push edx
lea esi, [esp + 0xb4]
call fcn.00405150
mov dword [esp + 0x340], ebp
mov eax, dword [esp + 0xc0]
lea esi, [eax - 1]
cmp esi, eax
jbe 0x403fd7
call fcn.0040b939
cmp dword [esp + 0xc4], 8
mov eax, dword [esp + 0xb0]
jae 0x403fef
lea eax, [esp + 0xb0]
cmp word [eax + esi*2], 0x5c
je 0x404009
push 1
push 0x41d2a8
lea ecx, [esp + 0xb4]
call fcn.00401c60
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
xor esi, esi
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
lea eax, [esp + 0xac]
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x344], 3
call fcn.00405000
cmp dword [esp + 0x2c], ebp
je 0x4043c4
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
lea ebx, [ecx + edi]
cmp edi, ebx
jbe 0x404072
call fcn.0040b939
cmp edi, ebx
mov esi, edi
jb 0x40407d
call fcn.0040b939
mov eax, dword [esp + 0x24]
cmp eax, edi
ja 0x404089
mov esi, edi
sub esi, eax
mov edx, dword [esp + 0x20]
mov eax, dword [edx + esi*4]
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0x7c]
mov dword [esp + 0x94], 7
mov dword [esp + 0x90], ebp
mov word [esp + 0x80], bp
call fcn.00401ba0
lea eax, [esp + 0x74]
push eax
mov ebx, 0x41d33c
lea esi, [esp + 0x94]
mov byte [esp + 0x344], 4
call fcn.004021c0
add esp, 4
mov byte [esp + 0x340], 5
mov eax, dword [esp + 0x94]
mov ebx, 8
cmp dword [esp + 0xa8], ebx
jae 0x4040fb
lea eax, [esp + 0x94]
lea ecx, [esp + 0xe4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
jne 0x4041c0
cmp dword [esp + 0x2c], ebp
je 0x404163
mov edx, dword [esp + 0x20]
mov esi, dword [edx + edi*4]
cmp dword [esi + 0x18], ebx
jb 0x404135
mov eax, dword [esi + 4]
push eax
call fcn.0040b5a3
add esp, 4
add edi, 1
cmp dword [esp + 0x24], edi
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebp
mov word [esi + 4], bp
mov dword [esp + 0x28], edi
ja 0x404156
xor edi, edi
mov dword [esp + 0x28], edi
sub dword [esp + 0x2c], 1
jne 0x404163
xor edi, edi
mov dword [esp + 0x28], edi
cmp dword [esp + 0xa8], ebx
jb 0x40417c
mov eax, dword [esp + 0x94]
push eax
call fcn.0040b5a3
add esp, 4
mov byte [esp + 0x340], 3
cmp dword [esp + 0x8c], ebx
mov dword [esp + 0xa8], 7
mov dword [esp + 0xa4], ebp
mov word [esp + 0x94], bp
jb 0x4043b6
mov ecx, dword [esp + 0x78]
push ecx
jmp 0x4043ae
lea edx, [esp + 0x110]
push 0x41d344
push edx
call fcn.0040cdea
add esp, 8
test eax, eax
je 0x4042ea
lea eax, [esp + 0x110]
push 0x41d348
push eax
call fcn.0040cdea
add esp, 8
test eax, eax
je 0x4042ea
test byte [esp + 0xe4], 0x10
lea ebx, [esp + 0x110]
je 0x4042a0
lea ecx, [esp + 0x74]
push ecx
lea esi, [esp + 0x5c]
call fcn.004021c0
add esp, 4
push eax
mov ebx, 0x41d2a8
lea esi, [esp + 0xcc]
mov byte [esp + 0x344], 6
call fcn.004021c0
add esp, 4
mov ebx, 8
mov byte [esp + 0x340], bl
cmp dword [esp + 0x70], ebx
jb 0x40425c
mov edx, dword [esp + 0x5c]
push edx
call fcn.0040b5a3
add esp, 4
lea eax, [esp + 0xc8]
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x74], 7
mov dword [esp + 0x70], ebp
mov word [esp + 0x60], bp
call fcn.00405000
lea ecx, [esp + 0xc8]
push ecx
lea ecx, [esp + 0x34]
call fcn.00405000
mov byte [esp + 0x340], 5
cmp dword [esp + 0xe0], ebx
jmp 0x4042d8
lea eax, [esp + 0x74]
push eax
lea esi, [esp + 0xcc]
call fcn.004021c0
add esp, 4
mov ecx, esi
push ecx
lea ecx, [esp + 0x48]
mov byte [esp + 0x344], 9
call fcn.00405000
mov byte [esp + 0x340], 5
cmp dword [esp + 0xe0], 8
jb 0x4042ea
mov edx, dword [esp + 0xcc]
push edx
call fcn.0040b5a3
add esp, 4
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xe4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4041c0
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x2c], ebp
mov edi, dword [esp + 0x28]
mov ebx, 8
je 0x404365
mov eax, dword [esp + 0x20]
mov esi, dword [eax + edi*4]
cmp dword [esi + 0x18], ebx
jb 0x404337
mov eax, dword [esi + 4]
push eax
call fcn.0040b5a3
add esp, 4
add edi, 1
cmp dword [esp + 0x24], edi
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebp
mov word [esi + 4], bp
mov dword [esp + 0x28], edi
ja 0x404358
xor edi, edi
mov dword [esp + 0x28], edi
sub dword [esp + 0x2c], 1
jne 0x404365
xor edi, edi
mov dword [esp + 0x28], edi
cmp dword [esp + 0xa8], ebx
jb 0x40437e
mov ecx, dword [esp + 0x94]
push ecx
call fcn.0040b5a3
add esp, 4
mov byte [esp + 0x340], 3
cmp dword [esp + 0x8c], ebx
mov dword [esp + 0xa8], 7
mov dword [esp + 0xa4], ebp
mov word [esp + 0x94], bp
jb 0x4043b6
mov edx, dword [esp + 0x78]
push edx
call fcn.0040b5a3
add esp, 4
cmp dword [esp + 0x2c], ebp
jne 0x404062
mov esi, dword [esp + 0x50]
cmp dword [esp + 0x54], ebp
mov dword [esp + 0x18], 1
je 0x4044b5
mov eax, dword [esp + 0x54]
lea ebx, [eax + esi]
cmp esi, ebx
jbe 0x4043e6
call fcn.0040b939
cmp esi, ebx
mov edi, esi
jb 0x4043f1
call fcn.0040b939
mov eax, dword [esp + 0x4c]
cmp eax, esi
ja 0x4043fd
mov edi, esi
sub edi, eax
mov ebx, dword [esp + 0x48]
mov eax, dword [ebx + edi*4]
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0x7c]
mov dword [esp + 0x94], 7
mov dword [esp + 0x90], ebp
mov word [esp + 0x80], bp
call fcn.00401ba0
cmp dword [esp + 0x8c], 8
mov eax, dword [esp + 0x78]
jae 0x40443c
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40444b
mov dword [esp + 0x18], ebp
cmp dword [esp + 0x54], ebp
je 0x404494
mov edi, dword [ebx + esi*4]
cmp dword [edi + 0x18], 8
jb 0x404466
mov ecx, dword [edi + 4]
push ecx
call fcn.0040b5a3
add esp, 4
add esi, 1
cmp dword [esp + 0x4c], esi
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], ebp
mov word [edi + 4], bp
mov dword [esp + 0x50], esi
ja 0x404487
xor esi, esi
mov dword [esp + 0x50], esi
sub dword [esp + 0x54], 1
jne 0x404494
xor esi, esi
mov dword [esp + 0x50], esi
cmp dword [esp + 0x8c], 8
jb 0x4044ab
mov edx, dword [esp + 0x78]
push edx
call fcn.0040b5a3
add esp, 4
cmp dword [esp + 0x54], ebp
jne 0x4043d6
cmp dword [esp + 0x40], ebp
je 0x4045a2
mov ebx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
lea edi, [eax + ebx]
cmp ebx, edi
jbe 0x4044d3
call fcn.0040b939
cmp ebx, edi
mov esi, ebx
jb 0x4044de
call fcn.0040b939
mov eax, dword [esp + 0x38]
cmp eax, ebx
ja 0x4044ea
mov esi, ebx
sub esi, eax
mov edi, dword [esp + 0x34]
mov eax, dword [edi + esi*4]
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0x7c]
mov dword [esp + 0x94], 7
mov dword [esp + 0x90], ebp
mov word [esp + 0x80], bp
call fcn.00401ba0
cmp dword [esp + 0x8c], 8
mov eax, dword [esp + 0x78]
jae 0x404529
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x404538
mov dword [esp + 0x18], ebp
cmp dword [esp + 0x40], ebp
je 0x404581
mov esi, dword [edi + ebx*4]
cmp dword [esi + 0x18], 8
jb 0x404553
mov ecx, dword [esi + 4]
push ecx
call fcn.0040b5a3
add esp, 4
add ebx, 1
cmp dword [esp + 0x38], ebx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebp
mov word [esi + 4], bp
mov dword [esp + 0x3c], ebx
ja 0x404574
xor ebx, ebx
mov dword [esp + 0x3c], ebx
sub dword [esp + 0x40], 1
jne 0x404581
xor ebx, ebx
mov dword [esp + 0x3c], ebx
cmp dword [esp + 0x8c], 8
jb 0x404598
mov edx, dword [esp + 0x78]
push edx
call fcn.0040b5a3
add esp, 4
cmp dword [esp + 0x40], ebp
jne 0x4044c3
lea esi, [esp + 0x30]
call fcn.004050b0
lea esi, [esp + 0x44]
call fcn.004050b0
lea esi, [esp + 0x1c]
call fcn.004050b0
cmp dword [esp + 0xc4], 8
jb 0x4045d7
mov eax, dword [esp + 0xb0]
push eax
call fcn.0040b5a3
add esp, 4
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x338]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x320]
xor ecx, esp
call fcn.0040b949
add esp, 0x330
ret