Function at 0x418c30
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53a3c0
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push esi
push edi
mov eax, dword [0x58d984]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov dword [eax], 0
mov ecx, dword [edi + 0x50]
test ecx, ecx
je 0x418c77
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [edi + 0x50], 0
mov ecx, dword [edi + 0xc]
lea edx, [ebp - 0x34]
push edx
xor eax, eax
push 3
push dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ecx]
push ecx
call dword [eax + 0x18]
mov esi, eax
test esi, esi
jne 0x418cc5
lea ecx, [ebp - 0x24]
call fcn.00430ad0
mov ax, word [ebp - 0x34]
test ax, ax
jne 0x418caf
push str._Content_
jmp 0x418cd5
cmp ax, 8
je 0x418cd2
push dword [ebp - 0x24]
mov esi, 0x80004005
call fcn.004eda86
add esp, 4
lea ecx, [ebp - 0x34]
call fcn.00432950
jmp 0x4191ae
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
call fcn.00430bd0
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [edi + 0x1c]
call fcn.00430b60
push dword [ebp - 0x24]
call fcn.004eda86
add esp, 4
lea ecx, [ebp - 0x34]
call fcn.00432950
xor eax, eax
cmp dword [ebp + 0x14], eax
jne 0x4191b0
mov ecx, dword [edi + 0xc]
lea edx, [ebp - 0x34]
push edx
push 9
push dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ecx]
push ecx
call dword [eax + 0x18]
mov esi, eax
test esi, esi
jne 0x418d41
mov ax, word [ebp - 0x34]
test ax, ax
jne 0x418d36
mov dword [edi + 0x44], esi
mov byte [edi + 0x49], al
jmp 0x418d58
cmp ax, 0x13
je 0x418d4e
mov esi, 0x80004005
lea ecx, [ebp - 0x34]
call fcn.00432950
jmp 0x4191ae
mov eax, dword [ebp - 0x2c]
mov dword [edi + 0x44], eax
mov byte [edi + 0x49], 1
lea ecx, [ebp - 0x34]
call fcn.00432950
mov ecx, dword [edi + 0xc]
lea edx, [ebp - 0x34]
push edx
xor eax, eax
push 6
push dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ecx]
push ecx
call dword [eax + 0x18]
mov esi, eax
test esi, esi
jne 0x418cc5
mov ax, word [ebp - 0x34]
cmp ax, 0xb
jne 0x418d9a
cmp word [ebp - 0x2c], si
setne al
mov byte [edi + 0x48], al
jmp 0x418da6
test ax, ax
jne 0x4191a1
mov byte [edi + 0x48], al
lea ecx, [ebp - 0x34]
call fcn.00432950
xor eax, eax
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
lea edx, [ebp - 0x34]
mov dword [edi + 0x40], eax
mov ecx, dword [edi + 0xc]
push edx
push 0xc
push dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ecx]
push ecx
call dword [eax + 0x18]
mov esi, eax
test esi, esi
jne 0x418d41
movzx eax, word [ebp - 0x34]
test eax, eax
je 0x418e2f
cmp eax, 0x40
jne 0x418d3c
mov eax, dword [ebp - 0x2c]
xor edx, edx
mov dword [edi + 0x38], eax
mov eax, dword [ebp - 0x28]
mov dword [edi + 0x3c], eax
movzx eax, word [ebp - 0x32]
test eax, eax
je 0x418e22
cmp eax, 0x19
ja 0x418e22
cmp word [ebp - 0x2e], dx
jne 0x418e22
movzx ecx, word [ebp - 0x30]
cmp ecx, 0x64
jae 0x418e22
mov edx, eax
jmp 0x418e24
xor ecx, ecx
mov word [edi + 0x40], dx
mov byte [edi + 0x42], cl
mov byte [edi + 0x43], 1
lea ecx, [ebp - 0x34]
call fcn.00432950
mov ecx, dword [edi + 0xc]
lea edx, [ebp - 0x34]
push edx
xor eax, eax
push 7
push dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ecx]
push ecx
call dword [eax + 0x18]
mov esi, eax
test esi, esi
jne 0x418cc5
movzx eax, word [ebp - 0x34]
cmp eax, 0x15
ja case.0x418e6f.1
movzx eax, byte [eax + 0x4191e0]
jmp dword [eax*4 + 0x4191d8]
lea ecx, [ebp - 0x34]
call fcn.00432950
lea esi, [edi + 0x1c]
mov ecx, esi
call fcn.004310f0
test eax, eax
js 0x418ec3
push esi
push eax
lea ecx, [ebp - 0x24]
call fcn.004309b0
lea eax, [ebp - 0x24]
push eax
lea esi, [edi + 0x10]
lea eax, [ebp - 0x30]
push esi
push eax
call fcn.00430c40
push dword [eax]
call fcn.00431470
push dword [ebp - 0x30]
call fcn.004eda86
push dword [ebp - 0x24]
call fcn.004eda86
add esp, 0x18
jmp 0x418ec6
lea esi, [edi + 0x10]
lea eax, [edi + 0x1c]
push eax
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.00430c40
add esp, 0xc
lea eax, [ebp - 0x18]
lea ecx, [edi + 0x28]
push eax
call fcn.00430b60
cmp byte [edi + 0x48], 0
je 0x418ef6
push dword [ebp - 0x18]
call fcn.00431470
jmp 0x419185
lea ecx, [ebp - 0x6c]
call fcn.004317c0
lea ecx, [ebp - 0x44]
call fcn.00430ad0
push 0
push dword [ebp - 0x18]
lea ecx, [ebp - 0x6c]
call fcn.00431980
test al, al
je 0x41907a
push dword [ebp - 0x18]
call fcn.004316a0
add esp, 4
test al, al
jne 0x41907a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.004049c0
mov ecx, dword [ebp - 0x18]
push esi
sub esp, 0xc
mov edx, esp
push 0x547380
mov dword [edx], ecx
mov ecx, dword [ebp - 0x14]
mov dword [edx + 4], ecx
mov ecx, dword [ebp - 0x10]
push str.Reader___SetupHelper
push eax
mov dword [edx + 8], ecx
call fcn.00404b40
add esp, 0x1c
call fcn.004049c0
mov ecx, dword [ebp - 0x18]
push esi
sub esp, 0xc
mov edx, esp
push str.extractFiles_write_file__s__error__d___try_rename
mov dword [edx], ecx
mov ecx, dword [ebp - 0x14]
mov dword [edx + 4], ecx
mov ecx, dword [ebp - 0x10]
push str.Reader___SetupHelper
push eax
mov dword [edx + 8], ecx
call fcn.00404b40
add esp, 0x1c
lea ecx, [ebp + 0xc]
call fcn.0040a770
mov eax, dword [ebp - 0x18]
sub esp, 0xc
mov ecx, esp
push str._s.bak
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [ecx + 8], eax
lea eax, [ebp + 0xc]
push eax
call fcn.004047e0
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x6c]
add esp, 0x14
push 0
push esi
call fcn.00431980
test al, al
je 0x419050
mov edi, 1
lea ebx, [ebx]
call fcn.004049c0
push str.bak_file_is_already_exists._rename_continue
push str.Reader___SetupHelper
push eax
call fcn.00404b40
add esp, 0xc
lea eax, [ebp + 0xc]
lea ecx, [ebp + 0x14]
push eax
call fcn.00403640
lea ecx, [ebp + 0xc]
call fcn.00404620
push edi
push dword [ebp + 0x14]
lea eax, [ebp + 0xc]
inc edi
push str._s_d
push eax
call fcn.004047e0
call fcn.004049c0
mov esi, dword [ebp + 0xc]
push esi
push str.Reader___SetupHelper
push eax
call fcn.00404b40
add esp, 0x1c
lea ecx, [ebp + 0x14]
call fcn.004030f0
push 0
push esi
lea ecx, [ebp - 0x6c]
call fcn.00431980
test al, al
jne 0x418fe0
mov edi, dword [ebp + 8]
push 1
push esi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x419072
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp + 0xc]
call fcn.004030f0
push 0x18
call fcn.004ed767
mov esi, eax
mov dword [ebp + 0xc], eax
add esp, 4
test esi, esi
je 0x4190a7
mov dword [esi + 4], 0
mov dword [esi], vtable.COutFileStream.0
mov dword [esi + 8], 0xffffffff
mov byte [esi + 0xc], 0
jmp 0x4190ac
xor esi, esi
mov dword [ebp + 0xc], esi
mov dword [edi + 0x4c], esi
mov dword [ebp - 4], 0
mov ecx, esi
test esi, esi
je 0x4190c5
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov ecx, dword [edi + 0x4c]
mov eax, dword [ebp - 0x18]
push 2
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
add ecx, 8
push eax
mov dword [ebp - 4], 0xffffffff
call fcn.004321a0
test al, al
jne 0x41915e
push 5
call fcn.0041a460
add esp, 4
call fcn.004049c0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
sub esp, 0xc
mov edx, esp
push str.extractFiles_write_file__s__error__d_
mov dword [edx], ecx
mov ecx, dword [ebp - 0x14]
push str.Reader___SetupHelper
mov dword [edx + 4], ecx
push esi
mov dword [edx + 8], eax
call fcn.00404b40
add esp, 0x1c
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], 1
test ecx, ecx
je 0x419141
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push dword [ebp - 0x44]
call fcn.004eda86
add esp, 4
mov esi, 0x80004004
push dword [ebp - 0x18]
call fcn.004eda86
add esp, 4
jmp 0x4191ae
test esi, esi
je 0x419168
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov ecx, dword [edi + 0x50]
test ecx, ecx
je 0x419175
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x50], esi
mov dword [eax], esi
push dword [ebp - 0x44]
call fcn.004eda86
add esp, 4
push 0
call fcn.0041a480
add esp, 4
xor esi, esi
push dword [ebp - 0x18]
call fcn.004eda86
add esp, 4
jmp 0x4191ae
lea ecx, [ebp - 0x34]
call fcn.00432950
mov esi, 0x80004005
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
push 0x57f8e8
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x24e9f
push eax
call fcn.0050de50
jbe 0x419168
inc ecx
add bl, al
xchg ecx, eax
inc ecx
add byte [eax], al
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add byte [eax], al
add byte [ecx], al
add ah, cl
int3