Function at 0x430710
Capabilities:
Check if file exists
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a3fb0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4d61d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor bh, bh
mov edi, dword [ebp + 0xc]
test esi, esi
je 0x430927
test edi, edi
je 0x430927
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x430927
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x430767
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jbe 0x430927
mov ecx, edi
mov dword [ebp - 0x30], 0
xor eax, eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4307a6
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x40]
call fcn.004077e0
mov dword [ebp - 4], 0
xor bl, bl
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push 0xfde9
cmovae eax, dword [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00431e20
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
mov eax, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
cmp byte [eax + ecx], 0x5c
je 0x430811
push 1
push 0x4a9a88
lea ecx, [ebp - 0x28]
call fcn.00407260
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
je 0x430839
mov bl, 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004041a0
jmp 0x4308bf
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x43085d
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004041a0
jmp 0x4308bf
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.dbghelp.dll_MakeSureDirectoryPathExists]
cmp eax, 1
sete bl
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x4308ad
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4308a3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x430945
push edx
push ecx
call fcn.00439e29
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x4308fc
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4308f2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43094a
push edx
push ecx
call fcn.00439e29
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
test bl, bl
je 0x430927
push edi
push esi
call fcn.0042ff20
add esp, 8
mov bh, al
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov al, bh
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043a373
mov esp, ebp
pop ebp
ret
call fcn.0046c89c
call fcn.0046c89c
int3