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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50d9d0
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push esi
push edi
mov eax, dword [0x558384]
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 0x490197
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 0x4901e5
lea ecx, [ebp - 0x24]
call fcn.004a8700
mov ax, word [ebp - 0x34]
test ax, ax
jne 0x4901cf
push 0x5155e8
jmp 0x4901f5
cmp ax, 8
je 0x4901f2
push dword [ebp - 0x24]
mov esi, 0x80004005
call fcn.004b8926
add esp, 4
lea ecx, [ebp - 0x34]
call fcn.004aa580
jmp 0x490644
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
call fcn.004a8800
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [edi + 0x1c]
call fcn.004a8790
push dword [ebp - 0x24]
call fcn.004b8926
add esp, 4
lea ecx, [ebp - 0x34]
call fcn.004aa580
xor eax, eax
cmp dword [ebp + 0x14], eax
jne 0x490646
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 0x490261
mov ax, word [ebp - 0x34]
test ax, ax
jne 0x490256
mov dword [edi + 0x44], esi
mov byte [edi + 0x49], al
jmp 0x490278
cmp ax, 0x13
je 0x49026e
mov esi, 0x80004005
lea ecx, [ebp - 0x34]
call fcn.004aa580
jmp 0x490644
mov eax, dword [ebp - 0x2c]
mov dword [edi + 0x44], eax
mov byte [edi + 0x49], 1
lea ecx, [ebp - 0x34]
call fcn.004aa580
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 0x4901e5
mov ax, word [ebp - 0x34]
cmp ax, 0xb
jne 0x4902ba
cmp word [ebp - 0x2c], si
setne al
mov byte [edi + 0x48], al
jmp 0x4902c6
test ax, ax
jne 0x490637
mov byte [edi + 0x48], al
lea ecx, [ebp - 0x34]
call fcn.004aa580
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 0x490261
movzx eax, word [ebp - 0x34]
test eax, eax
je 0x49034f
cmp eax, 0x40
jne 0x49025c
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 0x490342
cmp eax, 0x19
ja 0x490342
cmp word [ebp - 0x2e], dx
jne 0x490342
movzx ecx, word [ebp - 0x30]
cmp ecx, 0x64
jae 0x490342
mov edx, eax
jmp 0x490344
xor ecx, ecx
mov word [edi + 0x40], dx
mov byte [edi + 0x42], cl
mov byte [edi + 0x43], 1
lea ecx, [ebp - 0x34]
call fcn.004aa580
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 0x4901e5
movzx eax, word [ebp - 0x34]
cmp eax, 0x15
ja case.0x49038f.1
movzx eax, byte [eax + 0x490678]
jmp dword [eax*4 + 0x490670]
lea ecx, [ebp - 0x34]
call fcn.004aa580
lea esi, [edi + 0x1c]
mov ecx, esi
call fcn.004a8d20
test eax, eax
js 0x4903e3
push esi
push eax
lea ecx, [ebp - 0x24]
call fcn.004a85e0
lea eax, [ebp - 0x24]
push eax
lea esi, [edi + 0x10]
lea eax, [ebp - 0x30]
push esi
push eax
call fcn.004a8870
push dword [eax]
call fcn.004a90a0
push dword [ebp - 0x30]
call fcn.004b8926
push dword [ebp - 0x24]
call fcn.004b8926
add esp, 0x18
jmp 0x4903e6
lea esi, [edi + 0x10]
lea eax, [edi + 0x1c]
push eax
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.004a8870
add esp, 0xc
lea eax, [ebp - 0x18]
lea ecx, [edi + 0x28]
push eax
call fcn.004a8790
cmp byte [edi + 0x48], 0
je 0x490416
push dword [ebp - 0x18]
call fcn.004a90a0
jmp 0x49061b
lea ecx, [ebp - 0x6c]
call fcn.004a93f0
lea ecx, [ebp - 0x44]
call fcn.004a8700
push 0
push dword [ebp - 0x18]
lea ecx, [ebp - 0x6c]
call fcn.004a95b0
test al, al
je 0x490510
push dword [ebp - 0x18]
call fcn.004a92d0
add esp, 4
test al, al
jne 0x490510
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.00481d30
mov ecx, dword [ebp - 0x18]
push esi
sub esp, 0xc
mov edx, esp
push 0x515660
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.00481ee0
add esp, 0x1c
call fcn.00481d30
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.00481ee0
add esp, 0x1c
lea ecx, [ebp + 0xc]
call fcn.00487130
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.00481b50
mov esi, dword [ebp + 0xc]
add esp, 0x14
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 0x490508
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp + 0xc]
call fcn.00480fe0
push 0x18
call fcn.004bcee7
mov esi, eax
mov dword [ebp + 0xc], eax
add esp, 4
test esi, esi
je 0x49053d
mov dword [esi + 4], 0
mov dword [esi], vtable.COutFileStream.0
mov dword [esi + 8], 0xffffffff
mov byte [esi + 0xc], 0
jmp 0x490542
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 0x49055b
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.004a9dd0
test al, al
jne 0x4905f4
push 5
call fcn.00492490
add esp, 4
call fcn.00481d30
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.00481ee0
add esp, 0x1c
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], 1
test ecx, ecx
je 0x4905d7
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push dword [ebp - 0x44]
call fcn.004b8926
add esp, 4
mov esi, 0x80004004
push dword [ebp - 0x18]
call fcn.004b8926
add esp, 4
jmp 0x490644
test esi, esi
je 0x4905fe
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov ecx, dword [edi + 0x50]
test ecx, ecx
je 0x49060b
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.004b8926
add esp, 4
push 0
call fcn.004924b0
add esp, 4
xor esi, esi
push dword [ebp - 0x18]
call fcn.004b8926
add esp, 4
jmp 0x490644
lea ecx, [ebp - 0x34]
call fcn.004aa580
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 0x54f970
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x24e9f
push eax
call fcn.004dd737
mov edi, edi
xchg esi, eax
add ecx, dword [ecx]
pop ecx
push es
dec 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