Function at 0x405da0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x440017
mov eax, dword fs:[0]
push eax
sub esp, 0x1c0
mov eax, dword [0x44f3c0]
xor eax, esp
mov dword [esp + 0x1b8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44f3c0]
xor eax, esp
push eax
lea eax, [esp + 0x1d4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1e8]
mov ebp, dword [esp + 0x1e4]
mov dword [esp + 0x14], eax
xor ebx, ebx
mov eax, 0xf
mov dword [esp + 0x88], eax
mov dword [esp + 0x84], ebx
mov byte [esp + 0x74], bl
mov dword [esp + 0x1dc], ebx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
push ebp
mov edi, str..
lea esi, [esp + 0x20]
mov byte [esp + 0x1e0], 1
call fcn.00408cb0
add esp, 4
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x60]
mov byte [esp + 0x1e8], 2
call fcn.00403e60
mov esi, 0x10
mov byte [esp + 0x1dc], 1
cmp dword [esp + 0x34], esi
jb 0x405e68
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00424b3c
add esp, 4
mov eax, dword [esp + 0x58]
cmp dword [esp + 0x6c], esi
jae 0x405e76
lea eax, [esp + 0x58]
lea edx, [esp + 0x8c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
je 0x406096
cmp byte [esp + 0xb8], 0x2e
je 0x405ff5
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x405ee5
cmp dword [esp + 0x1ec], ebx
jne 0x405ee5
lea ecx, [esp + 0xb8]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x405ed8
cmp dl, bl
je 0x405ed4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x405ed8
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x405eb8
xor eax, eax
jmp 0x405edd
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x405ff5
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x78]
call fcn.00403a70
push ebp
mov edi, 0x4487f8
lea esi, [esp + 0x3c]
call fcn.00408cb0
add esp, 4
push eax
lea edi, [esp + 0xbc]
lea esi, [esp + 0x20]
mov byte [esp + 0x1e0], 3
call fcn.00408cb0
add esp, 4
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x7c]
mov byte [esp + 0x1e8], 4
call fcn.00403e60
mov esi, 0x10
cmp dword [esp + 0x34], esi
jb 0x405f4c
mov eax, dword [esp + 0x20]
push eax
call fcn.00424b3c
add esp, 4
mov edi, 0xf
mov byte [esp + 0x1dc], 1
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
cmp dword [esp + 0x50], esi
jb 0x405f78
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.00424b3c
add esp, 4
test byte [esp + 0x8c], 0x10
je 0x405fdd
mov edx, dword [esp + 0x1ec]
mov eax, dword [esp + 0x14]
inc edx
push edx
push eax
lea ecx, [esp + 0x78]
push ecx
call fcn.00405da0
add esp, 0xc
test al, al
jne 0x405ff5
cmp dword [esp + 0x6c], esi
jb 0x405fb4
mov eax, dword [esp + 0x58]
push eax
call fcn.00424b3c
add esp, 4
mov dword [esp + 0x6c], edi
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
cmp dword [esp + 0x88], esi
jb 0x405fd6
mov ecx, dword [esp + 0x74]
push ecx
call fcn.00424b3c
add esp, 4
xor al, al
jmp 0x4060d1
mov eax, dword [esp + 0x74]
cmp dword [esp + 0x88], esi
jae 0x405fee
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, dword [esp + 0x18]
lea edx, [esp + 0x8c]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405e92
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x40605f
cmp dword [esp + 0x6c], esi
jb 0x406035
mov edx, dword [esp + 0x58]
push edx
call fcn.00424b3c
add esp, 4
mov dword [esp + 0x6c], 0xf
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
cmp dword [esp + 0x88], esi
jb 0x405fd6
mov eax, dword [esp + 0x74]
push eax
call fcn.00424b3c
add esp, 4
xor al, al
jmp 0x4060d1
cmp dword [esp + 0x1ec], ebx
je 0x406096
cmp dword [ebp + 0x18], esi
jb 0x406072
mov eax, dword [ebp + 4]
jmp 0x406075
lea eax, [ebp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x406096
lea ecx, [esp + 0x54]
call fcn.00403ff0
lea ecx, [esp + 0x70]
call fcn.00403ff0
xor al, al
jmp 0x4060d1
cmp dword [esp + 0x6c], esi
jb 0x4060a9
mov ecx, dword [esp + 0x58]
push ecx
call fcn.00424b3c
add esp, 4
mov dword [esp + 0x6c], 0xf
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
cmp dword [esp + 0x88], esi
jb 0x4060cf
mov edx, dword [esp + 0x74]
push edx
call fcn.00424b3c
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x1d4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1b8]
xor ecx, esp
call fcn.00424b47
add esp, 0x1cc
ret