Function at 0x49f190
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53d2ae
mov eax, dword fs:[0]
push eax
sub esp, 0x1a0
push esi
push edi
mov eax, dword [0x5954a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x25], 0
lea ecx, [ebp - 0x24]
call fcn.004b362e
mov dword [ebp - 4], 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x24]
call fcn.004b3b7a
test eax, eax
jne 0x49f28e
mov dword [ebp - 0x3c], 3
lea ecx, [ebp - 0xf0]
mov dword [ebp - 0xf4], ecx
push 3
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0xf4]
call fcn.00470670
lea eax, [ebp - 0xf4]
mov dword [ebp - 0x1a0], eax
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x1a0]
sub esp, 0x84
mov ecx, 0x21
mov edi, esp
rep movsd dword es:[edi], dword [esi]
push str.error_open_ReadODMFileContent__s...
call fcn.0047c040
add esp, 0x88
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0xf4]
mov dword [ebp - 0x184], ecx
lea edx, [ebp - 0xf0]
cmp dword [ebp - 0x184], edx
je 0x49f26b
mov eax, dword [ebp - 0x184]
push eax
call fcn.004f84cf
add esp, 4
mov cl, byte [ebp - 0x25]
mov byte [ebp - 0xf5], cl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004b37e5
mov al, byte [ebp - 0xf5]
jmp 0x49f9bb
push 0
push 0
push 0x8af
lea ecx, [ebp - 0x24]
call fcn.004b33b1
mov edx, 1
test edx, edx
je 0x49f398
push 8
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x24]
call fcn.004b3322
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 8
je 0x49f378
mov dword [ebp - 0x50], 3
lea ecx, [ebp - 0x178]
mov dword [ebp - 0x17c], ecx
push 3
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x17c]
call fcn.00470670
lea eax, [ebp - 0x17c]
mov dword [ebp - 0x1a4], eax
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x1a4]
sub esp, 0x84
mov ecx, 0x21
mov edi, esp
rep movsd dword es:[edi], dword [esi]
push str.error_read_ReadODMFileContent__s...
call fcn.0047c040
add esp, 0x88
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x17c]
mov dword [ebp - 0x188], ecx
lea edx, [ebp - 0x178]
cmp dword [ebp - 0x188], edx
je 0x49f34d
mov eax, dword [ebp - 0x188]
push eax
call fcn.004f84cf
add esp, 4
lea ecx, [ebp - 0x24]
call fcn.004b35c8
mov cl, byte [ebp - 0x25]
mov byte [ebp - 0x17d], cl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004b37e5
mov al, byte [ebp - 0x17d]
jmp 0x49f9bb
cmp dword [ebp - 0x14], 0x64
jne 0x49f382
jmp 0x49f398
push 1
mov edx, dword [ebp - 0x10]
xor eax, eax
push eax
push edx
lea ecx, [ebp - 0x24]
call fcn.004b33b1
jmp 0x49f29f
mov dword [ebp - 0x2c], 0
push 0x64
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004982d0
add esp, 8
mov dword [ebp - 0x30], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
mov ecx, dword [edx + 0x10]
sub ecx, dword [eax + 0xc]
mov eax, ecx
cdq
mov ecx, 0x216
idiv ecx
cmp dword [ebp - 0x30], eax
jb 0x49f3d0
call fcn.004fb0ce
xor edx, edx
jne 0x49f3d0
mov eax, dword [ebp - 0x30]
imul eax, eax, 0x216
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xc]
cmp dword [eax + edx], 0x64
jne 0x49f79f
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x68], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.004f8626
add esp, 4
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
jne 0x49f442
push 0x4000000
call fcn.004f8626
add esp, 4
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x2c], 1
cmp dword [ebp - 0x5c], 0
jne 0x49f44d
jmp 0x49f7a3
cmp dword [ebp - 0x2c], 0
jne 0x49f4e0
mov edx, dword [ebp - 0x68]
push edx
push 0
mov eax, dword [ebp - 0x5c]
push eax
call fcn.004f8090
add esp, 0xc
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x10]
sub eax, dword [edx + 0xc]
cdq
mov ecx, 0x216
idiv ecx
cmp dword [ebp - 0x30], eax
jb 0x49f487
call fcn.004fb0ce
xor edx, edx
jne 0x49f487
mov eax, dword [ebp - 0x30]
imul eax, eax, 0x216
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xc]
mov ecx, dword [ebp - 0x5c]
mov dword [edx + eax + 4], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
mov ecx, dword [edx + 0x10]
sub ecx, dword [eax + 0xc]
mov eax, ecx
cdq
mov ecx, 0x216
idiv ecx
cmp dword [ebp - 0x30], eax
jb 0x49f4c1
call fcn.004fb0ce
xor edx, edx
jne 0x49f4c1
mov eax, dword [ebp - 0x30]
imul eax, eax, 0x216
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xc]
mov ecx, dword [ebp - 0x68]
mov dword [edx + eax + 8], ecx
jmp 0x49f68f
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
mov ecx, dword [edx + 0x10]
sub ecx, dword [eax + 0xc]
mov eax, ecx
cdq
mov ecx, 0x216
idiv ecx
cmp dword [ebp - 0x30], eax
jb 0x49f500
call fcn.004fb0ce
xor edx, edx
jne 0x49f500
mov eax, dword [ebp - 0x30]
imul eax, eax, 0x216
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xc]
lea eax, [edx + eax + 0xc]
push eax
push 0x200
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x10]
sub eax, dword [edx + 0xc]
cdq
mov ecx, 0x216
idiv ecx
cmp dword [ebp - 0x30], eax
jb 0x49f541
call fcn.004fb0ce
xor edx, edx
jne 0x49f541
mov eax, dword [ebp - 0x30]
imul eax, eax, 0x216
mov ecx, dword [ebp + 0xc]
add eax, dword [ecx + 0xc]
mov dword [ebp - 0x18c], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
mov ecx, dword [edx + 0x10]
sub ecx, dword [eax + 0xc]
mov eax, ecx
cdq
mov ecx, 0x216
idiv ecx
cmp dword [ebp - 0x30], eax
jb 0x49f57a
call fcn.004fb0ce
xor edx, edx
jne 0x49f57a
mov eax, dword [ebp - 0x30]
imul eax, eax, 0x216
mov ecx, dword [ebp + 0xc]
add eax, dword [ecx + 0xc]
mov dword [ebp - 0x190], eax
mov edx, dword [ebp - 0x190]
add edx, 0xc
push edx
call fcn.004f810a
add esp, 4
mov ecx, dword [ebp - 0x18c]
movzx edx, word [ecx + eax*2 + 0xa]
cmp edx, 0x5c
je 0x49f5f6
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax + 0x10]
sub eax, dword [ecx + 0xc]
cdq
mov ecx, 0x216
idiv ecx
cmp dword [ebp - 0x30], eax
jb 0x49f5d3
call fcn.004fb0ce
xor edx, edx
jne 0x49f5d3
push 0x5668c0
mov eax, dword [ebp - 0x30]
imul eax, eax, 0x216
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xc]
lea eax, [edx + eax + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x10]
sub eax, dword [edx + 0xc]
cdq
mov ecx, 0x216
idiv ecx
cmp dword [ebp - 0x30], eax
jb 0x49f614
call fcn.004fb0ce
xor edx, edx
jne 0x49f614
mov eax, dword [ebp - 0x30]
imul eax, eax, 0x216
mov ecx, dword [ebp + 0xc]
add eax, dword [ecx + 0xc]
mov dword [ebp - 0x194], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
mov ecx, dword [edx + 0x10]
sub ecx, dword [eax + 0xc]
mov eax, ecx
cdq
mov ecx, 0x216
idiv ecx
cmp dword [ebp - 0x30], eax
jb 0x49f64d
call fcn.004fb0ce
xor edx, edx
jne 0x49f64d
mov eax, dword [ebp - 0x30]
imul eax, eax, 0x216
mov ecx, dword [ebp + 0xc]
add eax, dword [ecx + 0xc]
mov dword [ebp - 0x198], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
mov edx, dword [ebp - 0x194]
add edx, 0xc
push edx
push str._s_x08.tmp
mov eax, dword [ebp - 0x198]
add eax, 0xc
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
cmp dword [ebp - 0x68], 0
jbe 0x49f79f
cmp dword [ebp - 0x68], 0x4000000
jb 0x49f6ae
mov dword [ebp - 0x1a8], 0x4000000
jmp 0x49f6b7
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x1a8], ecx
mov edx, dword [ebp - 0x1a8]
mov dword [ebp - 0x70], edx
cmp dword [ebp - 0x2c], 0
je 0x49f6d1
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x1ac], eax
jmp 0x49f6dd
mov ecx, dword [ebp - 0x5c]
add ecx, dword [ebp - 0x64]
mov dword [ebp - 0x1ac], ecx
mov edx, dword [ebp - 0x1ac]
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x70]
push eax
mov ecx, dword [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x24]
call fcn.004b3322
mov dword [ebp - 0x6c], eax
push 0x20
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x70]
push eax
mov ecx, dword [ebp - 0x58]
push ecx
call fcn.004a7200
add esp, 0x10
cmp dword [ebp - 0x2c], 0
je 0x49f767
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
mov ecx, dword [edx + 0x10]
sub ecx, dword [eax + 0xc]
mov eax, ecx
cdq
mov ecx, 0x216
idiv ecx
cmp dword [ebp - 0x30], eax
jb 0x49f735
call fcn.004fb0ce
xor edx, edx
jne 0x49f735
xor eax, eax
cmp eax, dword [ebp - 0x60]
sbb ecx, ecx
neg ecx
push ecx
mov edx, dword [ebp - 0x70]
push edx
mov eax, dword [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x30]
imul ecx, ecx, 0x216
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xc]
lea ecx, [eax + ecx + 0xc]
push ecx
call fcn.00497560
add esp, 0x10
mov edx, dword [ebp - 0x68]
sub edx, dword [ebp - 0x70]
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x64]
add eax, 0x4000000
mov dword [ebp - 0x64], eax
cmp dword [ebp + 0x14], 0
je 0x49f79a
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp - 0x70]
push edx
push 0
call dword [ebp + 0x14]
add esp, 0xc
movzx eax, al
test eax, eax
jne 0x49f79a
jmp 0x49f7a3
jmp 0x49f68f
mov byte [ebp - 0x25], 1
movzx ecx, byte [ebp - 0x25]
test ecx, ecx
jne 0x49f995
mov dword [ebp - 0x30], 0
jmp 0x49f7c1
mov edx, dword [ebp - 0x30]
add edx, 1
mov dword [ebp - 0x30], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax + 0x10]
sub eax, dword [ecx + 0xc]
cdq
mov ecx, 0x216
idiv ecx
cmp dword [ebp - 0x30], eax
jae 0x49f995
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
mov ecx, dword [edx + 0x10]
sub ecx, dword [eax + 0xc]
mov eax, ecx
cdq
mov ecx, 0x216
idiv ecx
cmp dword [ebp - 0x30], eax
jb 0x49f7fe
call fcn.004fb0ce
xor edx, edx
jne 0x49f7fe
mov eax, dword [ebp - 0x30]
imul eax, eax, 0x216
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xc]
cmp dword [edx + eax + 4], 0
je 0x49f856
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax + 0x10]
sub eax, dword [ecx + 0xc]
cdq
mov ecx, 0x216
idiv ecx
cmp dword [ebp - 0x30], eax
jb 0x49f836
call fcn.004fb0ce
xor edx, edx
jne 0x49f836
mov eax, dword [ebp - 0x30]
imul eax, eax, 0x216
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx + eax + 4]
push eax
call fcn.004f84cf
add esp, 4
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x10]
sub eax, dword [edx + 0xc]
cdq
mov ecx, 0x216
idiv ecx
cmp dword [ebp - 0x30], eax
jb 0x49f874
call fcn.004fb0ce
xor edx, edx
jne 0x49f874
mov eax, dword [ebp - 0x30]
imul eax, eax, 0x216
mov ecx, dword [ebp + 0xc]
add eax, dword [ecx + 0xc]
mov dword [ebp - 0x19c], eax
mov edx, dword [ebp - 0x19c]
add edx, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x49f8dd
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax + 0x10]
sub eax, dword [ecx + 0xc]
cdq
mov ecx, 0x216
idiv ecx
cmp dword [ebp - 0x30], eax
jb 0x49f8bf
call fcn.004fb0ce
xor edx, edx
jne 0x49f8bf
mov eax, dword [ebp - 0x30]
imul eax, eax, 0x216
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xc]
lea eax, [edx + eax + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x10]
sub eax, dword [edx + 0xc]
cdq
mov ecx, 0x216
idiv ecx
cmp dword [ebp - 0x30], eax
jb 0x49f8fb
call fcn.004fb0ce
xor edx, edx
jne 0x49f8fb
push 0x567128
mov eax, dword [ebp - 0x30]
imul eax, eax, 0x216
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xc]
lea eax, [edx + eax + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x10]
sub eax, dword [edx + 0xc]
cdq
mov ecx, 0x216
idiv ecx
cmp dword [ebp - 0x30], eax
jb 0x49f93c
call fcn.004fb0ce
xor edx, edx
jne 0x49f93c
mov eax, dword [ebp - 0x30]
imul eax, eax, 0x216
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xc]
mov dword [edx + eax + 4], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax + 0x10]
sub eax, dword [ecx + 0xc]
cdq
mov ecx, 0x216
idiv ecx
cmp dword [ebp - 0x30], eax
jb 0x49f975
call fcn.004fb0ce
xor edx, edx
jne 0x49f975
mov eax, dword [ebp - 0x30]
imul eax, eax, 0x216
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xc]
mov dword [edx + eax + 8], 0
jmp 0x49f7b8
lea ecx, [ebp - 0x24]
call fcn.004b35c8
mov al, byte [ebp - 0x25]
mov byte [ebp - 0x17e], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004b37e5
mov al, byte [ebp - 0x17e]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret