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

Disassembly:
push 0xffffffffffffffff
push 0x485fa1
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b7b70]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x17], 0
call fcn.0043d9ce
mov edi, dword [esp + 0xd8]
xor esi, esi
push esi
push esi
push edi
lea ecx, [esp + 0x34]
mov dword [esp + 0xdc], esi
call fcn.0043ddcb
test eax, eax
jne 0x42f8d3
push 3
lea eax, [esp + 0x4c]
push edi
lea ecx, [esp + 0x4c]
mov dword [esp + 0x4c], eax
call fcn.00417850
sub esp, 0x84
mov edi, esp
mov ecx, 0x21
lea esi, [esp + 0xc8]
push str.error_open_ReadODMFileContent__s...
mov byte [esp + 0x158], 1
rep movsd dword es:[edi], dword [esi]
call fcn.00424900
mov eax, dword [esp + 0xcc]
lea ecx, [esp + 0xd0]
add esp, 0x88
cmp eax, ecx
je 0x42f8b8
push eax
call fcn.004603e5
add esp, 4
lea ecx, [esp + 0x28]
mov dword [esp + 0xd0], 0xffffffff
call fcn.0043daa9
xor al, al
jmp 0x42fd3d
push esi
push esi
push 0x8af
lea ecx, [esp + 0x34]
call fcn.0043d751
push 8
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0x30]
call fcn.0043d6c2
cmp eax, 8
jne 0x42f930
mov ebp, 0x64
lea ecx, [ecx]
cmp dword [esp + 0x38], ebp
je 0x42f9a3
mov eax, dword [esp + 0x3c]
push 1
push esi
push eax
lea ecx, [esp + 0x34]
call fcn.0043d751
push 8
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x30]
call fcn.0043d6c2
cmp eax, 8
je 0x42f900
push 3
lea edx, [esp + 0x4c]
push edi
lea ecx, [esp + 0x4c]
mov dword [esp + 0x4c], edx
call fcn.00417850
sub esp, 0x84
mov edi, esp
mov ecx, 0x21
lea esi, [esp + 0xc8]
push 0x493750
mov byte [esp + 0x158], 2
rep movsd dword es:[edi], dword [esi]
call fcn.00424900
mov eax, dword [esp + 0xcc]
lea ecx, [esp + 0xd0]
add esp, 0x88
mov byte [esp + 0xd0], 0
cmp eax, ecx
je 0x42f995
push eax
call fcn.004603e5
add esp, 4
lea ecx, [esp + 0x28]
call fcn.0043d968
jmp 0x42f8b8
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0xdc]
push ebp
push esi
call fcn.0042ee10
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov ebx, eax
mov eax, 0x7aba01eb
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
add esp, 8
cmp ebx, eax
jb 0x42f9da
call fcn.004624bf
mov ecx, dword [esi + 0xc]
mov eax, ebx
imul eax, eax, 0x216
mov dword [esp + 0x40], eax
cmp dword [eax + ecx], ebp
jne 0x42fba6
mov edi, dword [esp + 0x3c]
push edi
mov dword [esp + 0x1c], edi
call fcn.004604c2
mov ebp, eax
add esp, 4
mov dword [esp + 0x20], ebp
test ebp, ebp
jne 0x42face
push 0x4000000
call fcn.004604c2
add esp, 4
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 1
test eax, eax
je 0x42fbb0
push ebx
mov ecx, esi
call fcn.0042ed10
add eax, 0xc
push eax
push 0x200
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push ebx
mov ecx, esi
call fcn.0042ed10
add eax, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42fa57
sub eax, edx
sar eax, 1
push ebx
mov ecx, esi
mov ebp, eax
call fcn.0042ed10
cmp word [eax + ebp*2 + 0xa], 0x5c
je 0x42fa8f
push 0x49bc48
push ebx
mov ecx, esi
call fcn.0042ed10
add eax, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push ebx
mov ecx, esi
call fcn.0042ed10
add eax, 0xc
push eax
push str._s_x08.tmp
push ebx
mov ecx, esi
call fcn.0042ed10
add eax, 0xc
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov ebp, dword [esp + 0x30]
add esp, 0x10
test edi, edi
jbe 0x42fba6
mov dword [esp + 0x1c], ebp
jmp 0x42fafa
push edi
push 0
push ebp
call fcn.00460000
add esp, 0xc
push ebx
mov ecx, esi
call fcn.0042ed10
push ebx
mov ecx, esi
mov dword [eax + 4], ebp
call fcn.0042ed10
mov dword [eax + 8], edi
jmp 0x42fac0
mov ebp, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
cmp edi, 0x4000000
jb 0x42fb07
mov edi, 0x4000000
cmp dword [esp + 0x24], 0
jne 0x42fb12
mov ebp, dword [esp + 0x1c]
push edi
push ebp
lea ecx, [esp + 0x30]
call fcn.0043d6c2
mov edx, dword [esp + 0xe0]
push 0x20
push edx
push edi
push ebp
call fcn.00437020
add esp, 0x10
cmp dword [esp + 0x24], 0
je 0x42fb70
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x7aba01eb
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x42fb58
call fcn.004624bf
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x40]
push 0
push edi
lea eax, [edx + ecx + 0xc]
push ebp
push eax
call fcn.0042e690
add esp, 0x10
mov eax, dword [esp + 0xe4]
sub dword [esp + 0x18], edi
add dword [esp + 0x1c], 0x4000000
test eax, eax
je 0x42fb9b
mov ecx, dword [esp + 0xe8]
push ecx
push edi
push 0
call eax
add esp, 0xc
test al, al
je 0x42fbb0
cmp dword [esp + 0x18], 0
ja 0x42faf2
mov byte [esp + 0x17], 1
jmp 0x42fd1c
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x7aba01eb
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
xor edi, edi
add eax, edx
je 0x42fd1c
xor ebp, ebp
cmp edi, eax
jb 0x42fbda
call fcn.004624bf
mov eax, dword [esi + 0xc]
xor ebx, ebx
cmp dword [eax + ebp + 4], ebx
je 0x42fc14
mov ecx, dword [esi + 0x10]
sub ecx, eax
mov eax, 0x7aba01eb
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x42fc04
call fcn.004624bf
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + ebp + 4]
push edx
call fcn.004603e5
add esp, 4
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x7aba01eb
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x42fc34
call fcn.004624bf
mov eax, dword [esi + 0xc]
add eax, ebp
add eax, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x42fc75
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x7aba01eb
imul ecx
sar edx, 8
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp edi, ecx
jb 0x42fc67
call fcn.004624bf
mov edx, dword [esi + 0xc]
lea eax, [edx + ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x7aba01eb
imul ecx
sar edx, 8
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp edi, ecx
jb 0x42fc95
call fcn.004624bf
mov edx, dword [esi + 0xc]
push 0x49c0a0
lea eax, [edx + ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x7aba01eb
imul ecx
sar edx, 8
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp edi, ecx
jb 0x42fcc8
call fcn.004624bf
mov edx, dword [esi + 0xc]
mov dword [edx + ebp + 4], ebx
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x7aba01eb
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x42fcef
call fcn.004624bf
mov ecx, dword [esi + 0xc]
mov dword [ecx + ebp + 8], ebx
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x7aba01eb
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
inc edi
add eax, edx
add ebp, 0x216
cmp edi, eax
jb 0x42fbda
lea ecx, [esp + 0x28]
call fcn.0043d968
lea ecx, [esp + 0x28]
mov dword [esp + 0xd0], 0xffffffff
call fcn.0043daa9
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc0
ret