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

Disassembly:
push 0xffffffffffffffff
push 0x519511
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
push ebx
push ebp
push esi
push edi
mov eax, dword [0x56c3c0]
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.004916c6
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.00491c12
test eax, eax
jne 0x480423
push 3
lea eax, [esp + 0x4c]
push edi
lea ecx, [esp + 0x4c]
mov dword [esp + 0x4c], eax
call fcn.00458760
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.00468970
mov eax, dword [esp + 0xcc]
lea ecx, [esp + 0xd0]
add esp, 0x88
cmp eax, ecx
je 0x480408
push eax
call fcn.004d5b05
add esp, 4
lea ecx, [esp + 0x28]
mov dword [esp + 0xd0], 0xffffffff
call fcn.0049187d
xor al, al
jmp 0x48088d
push esi
push esi
push 0x8af
lea ecx, [esp + 0x34]
call fcn.00491449
push 8
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0x30]
call fcn.004913ba
cmp eax, 8
jne 0x480480
mov ebp, 0x64
lea ecx, [ecx]
cmp dword [esp + 0x38], ebp
je 0x4804f3
mov eax, dword [esp + 0x3c]
push 1
push esi
push eax
lea ecx, [esp + 0x34]
call fcn.00491449
push 8
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x30]
call fcn.004913ba
cmp eax, 8
je 0x480450
push 3
lea edx, [esp + 0x4c]
push edi
lea ecx, [esp + 0x4c]
mov dword [esp + 0x4c], edx
call fcn.00458760
sub esp, 0x84
mov edi, esp
mov ecx, 0x21
lea esi, [esp + 0xc8]
push str.error_read_ReadODMFileContent__s...
mov byte [esp + 0x158], 2
rep movsd dword es:[edi], dword [esi]
call fcn.00468970
mov eax, dword [esp + 0xcc]
lea ecx, [esp + 0xd0]
add esp, 0x88
mov byte [esp + 0xd0], 0
cmp eax, ecx
je 0x4804e5
push eax
call fcn.004d5b05
add esp, 4
lea ecx, [esp + 0x28]
call fcn.00491660
jmp 0x480408
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0xdc]
push ebp
push esi
call fcn.0047eb10
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 0x48052a
call fcn.004d84ce
mov ecx, dword [esi + 0xc]
mov eax, ebx
imul eax, eax, 0x216
mov dword [esp + 0x40], eax
cmp dword [eax + ecx], ebp
jne 0x4806f6
mov edi, dword [esp + 0x3c]
push edi
mov dword [esp + 0x1c], edi
call fcn.004d5c5c
mov ebp, eax
add esp, 4
mov dword [esp + 0x20], ebp
test ebp, ebp
jne 0x48061e
push 0x4000000
call fcn.004d5c5c
add esp, 4
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 1
test eax, eax
je 0x480700
push ebx
mov ecx, esi
call fcn.0047e590
add eax, 0xc
push eax
push 0x200
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push ebx
mov ecx, esi
call fcn.0047e590
add eax, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4805a7
sub eax, edx
sar eax, 1
push ebx
mov ecx, esi
mov ebp, eax
call fcn.0047e590
cmp word [eax + ebp*2 + 0xa], 0x5c
je 0x4805df
push 0x53ef10
push ebx
mov ecx, esi
call fcn.0047e590
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.0047e590
add eax, 0xc
push eax
push str._s_x08.tmp
push ebx
mov ecx, esi
call fcn.0047e590
add eax, 0xc
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov ebp, dword [esp + 0x30]
add esp, 0x10
test edi, edi
jbe 0x4806f6
mov dword [esp + 0x1c], ebp
jmp 0x48064a
push edi
push 0
push ebp
call fcn.004d5720
add esp, 0xc
push ebx
mov ecx, esi
call fcn.0047e590
push ebx
mov ecx, esi
mov dword [eax + 4], ebp
call fcn.0047e590
mov dword [eax + 8], edi
jmp 0x480610
mov ebp, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
cmp edi, 0x4000000
jb 0x480657
mov edi, 0x4000000
cmp dword [esp + 0x24], 0
jne 0x480662
mov ebp, dword [esp + 0x1c]
push edi
push ebp
lea ecx, [esp + 0x30]
call fcn.004913ba
mov edx, dword [esp + 0xe0]
push 0x20
push edx
push edi
push ebp
call fcn.004897b0
add esp, 0x10
cmp dword [esp + 0x24], 0
je 0x4806c0
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 0x4806a8
call fcn.004d84ce
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.0047de30
add esp, 0x10
mov eax, dword [esp + 0xe4]
sub dword [esp + 0x18], edi
add dword [esp + 0x1c], 0x4000000
test eax, eax
je 0x4806eb
mov ecx, dword [esp + 0xe8]
push ecx
push edi
push 0
call eax
add esp, 0xc
test al, al
je 0x480700
cmp dword [esp + 0x18], 0
ja 0x480642
mov byte [esp + 0x17], 1
jmp 0x48086c
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 0x48086c
xor ebp, ebp
cmp edi, eax
jb 0x48072a
call fcn.004d84ce
mov eax, dword [esi + 0xc]
xor ebx, ebx
cmp dword [eax + ebp + 4], ebx
je 0x480764
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 0x480754
call fcn.004d84ce
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + ebp + 4]
push edx
call fcn.004d5b05
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 0x480784
call fcn.004d84ce
mov eax, dword [esi + 0xc]
add eax, ebp
add eax, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x4807c5
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 0x4807b7
call fcn.004d84ce
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 0x4807e5
call fcn.004d84ce
mov edx, dword [esi + 0xc]
push 0x53f778
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 0x480818
call fcn.004d84ce
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 0x48083f
call fcn.004d84ce
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 0x48072a
lea ecx, [esp + 0x28]
call fcn.00491660
lea ecx, [esp + 0x28]
mov dword [esp + 0xd0], 0xffffffff
call fcn.0049187d
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