Function at 0x498d00
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53ce1e
mov eax, dword fs:[0]
push eax
sub esp, 0xabc
mov eax, dword [0x5954a0]
xor eax, ebp
mov dword [ebp - 0x4c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 3
lea eax, [ebp - 0x9b0]
mov dword [ebp - 0x9b4], eax
push 3
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x9b4]
call fcn.00470670
lea edx, [ebp - 0x9b4]
mov dword [ebp - 0xac4], edx
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0xac4]
sub esp, 0x84
mov ecx, 0x21
mov edi, esp
rep movsd dword es:[edi], dword [esi]
push str.ReadOMDFileHeaderAndData__s_
call fcn.0047c040
add esp, 0x88
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x9b4]
mov dword [ebp - 0xa40], eax
lea ecx, [ebp - 0x9b0]
cmp dword [ebp - 0xa40], ecx
je 0x498dc0
mov edx, dword [ebp - 0xa40]
push edx
call fcn.004f84cf
add esp, 4
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x40]
call fcn.0044f380
mov dword [ebp - 4], 1
call fcn.004c02e6
push eax
lea ecx, [ebp - 0x14]
call fcn.004514d0
mov byte [ebp - 4], 2
mov ecx, 0x553568
test ecx, ecx
jne 0x498dfa
mov dword [ebp - 0xa4c], 0
jmp 0x498e0d
push 0x553568
call fcn.004f810a
add esp, 4
mov dword [ebp - 0xa4c], eax
mov edx, dword [ebp - 0xa4c]
push edx
push 0x553568
lea ecx, [ebp - 0x14]
call fcn.0044fb50
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xa50], eax
mov ecx, dword [ebp - 0xa50]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004fb74a
add esp, 8
test eax, eax
jne 0x498e52
mov eax, dword [ebp - 0x14]
push eax
push 0x5668c0
lea ecx, [ebp - 0x40]
call fcn.00459400
lea ecx, [ebp - 0x2c]
call fcn.004b362e
mov byte [ebp - 4], 3
push 0
lea ecx, [ebp - 0x40]
call fcn.004a46d0
mov dword [ebp - 0xa90], eax
push 0
push 0
mov ecx, dword [ebp - 0xa90]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004b3b7a
test eax, eax
setne dl
mov byte [ebp - 0xd], dl
movzx eax, byte [ebp - 0xd]
test eax, eax
jne 0x498f6c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x900], eax
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0xa94], ecx
lea edx, [ebp - 0xa34]
mov dword [ebp - 0xa38], edx
push 3
mov eax, dword [ebp - 0xa94]
push eax
lea ecx, [ebp - 0xa38]
call fcn.00470670
lea ecx, [ebp - 0xa38]
mov dword [ebp - 0xac8], ecx
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0xac8]
sub esp, 0x84
mov ecx, 0x21
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp - 0x900]
push edx
push str.error_code__d__openfile__s_.
call fcn.0047c040
add esp, 0x8c
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0xa38]
mov dword [ebp - 0xa98], eax
lea ecx, [ebp - 0xa34]
cmp dword [ebp - 0xa98], ecx
je 0x498f33
mov edx, dword [ebp - 0xa98]
push edx
call fcn.004f84cf
add esp, 4
mov byte [ebp - 0xa39], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.004b37e5
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.0044f990
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0044f990
mov al, byte [ebp - 0xa39]
jmp 0x499628
push 0x8af
lea eax, [ebp - 0x8fc]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004b3322
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0x8af
je 0x498fe5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x904], eax
mov ecx, dword [ebp - 0x904]
push ecx
push str.error_code__d__read.
call fcn.0047c040
add esp, 8
mov byte [ebp - 0xa3a], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.004b37e5
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.0044f990
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0044f990
mov al, byte [ebp - 0xa3a]
jmp 0x499628
push 1
mov edx, dword [ebp + 0xc]
push edx
call fcn.004982d0
add esp, 8
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x1c], 0x8af
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 - 0x48], eax
jb 0x49901b
call fcn.004fb0ce
xor edx, edx
jne 0x49901b
mov eax, dword [ebp - 0x48]
imul eax, eax, 0x216
mov ecx, dword [ebp + 0xc]
add eax, dword [ecx + 0xc]
mov dword [ebp - 0xaac], eax
mov edx, dword [ebp - 0x1c]
push edx
call fcn.004f8626
add esp, 4
mov ecx, dword [ebp - 0xaac]
mov dword [ecx + 4], 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 - 0x48], eax
jb 0x499069
call fcn.004fb0ce
xor edx, edx
jne 0x499069
mov eax, dword [ebp - 0x48]
imul eax, eax, 0x216
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xc]
cmp dword [edx + eax + 4], 0
jne 0x499088
jmp 0x4993c8
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 - 0x48], eax
jb 0x4990a6
call fcn.004fb0ce
xor edx, edx
jne 0x4990a6
mov eax, dword [ebp - 0x1c]
push eax
push 0
mov ecx, dword [ebp - 0x48]
imul ecx, ecx, 0x216
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax + ecx + 4]
push ecx
call fcn.004f8090
add esp, 0xc
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 - 0x48], eax
jb 0x4990ec
call fcn.004fb0ce
xor edx, edx
jne 0x4990ec
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x8fc]
push ecx
mov edx, dword [ebp - 0x48]
imul edx, edx, 0x216
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + edx + 4]
push edx
call fcn.004f8140
add esp, 0xc
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 - 0x48], eax
jb 0x499135
call fcn.004fb0ce
xor edx, edx
jne 0x499135
mov eax, dword [ebp - 0x48]
imul eax, eax, 0x216
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xc]
mov ecx, dword [ebp - 0x1c]
mov dword [edx + eax + 8], ecx
mov dword [ebp - 0x3c], 1
mov edx, 1
test edx, edx
je 0x4993c0
push 8
lea eax, [ebp - 0x910]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004b3322
mov dword [ebp - 0x908], eax
cmp dword [ebp - 0x908], 8
je 0x499195
push str.read_segment_file_end.
call fcn.0047c040
add esp, 4
jmp 0x4993c0
cmp dword [ebp - 0x910], 0x64
jne 0x4991c3
push 1
mov ecx, dword [ebp - 0x90c]
xor edx, edx
push edx
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004b33b1
mov dword [ebp - 0x91c], eax
mov dword [ebp - 0x918], edx
jmp 0x4993bb
mov eax, dword [ebp - 0x910]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004982d0
add esp, 8
mov dword [ebp - 0x924], eax
cmp dword [ebp - 0x924], 0xffffffff
jne 0x49920a
push 1
mov edx, dword [ebp - 0x90c]
xor eax, eax
push eax
push edx
lea ecx, [ebp - 0x2c]
call fcn.004b33b1
mov dword [ebp - 0x92c], eax
mov dword [ebp - 0x928], edx
jmp 0x499156
mov ecx, dword [ebp - 0x90c]
mov dword [ebp - 0x920], 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 - 0x924], eax
jb 0x499239
call fcn.004fb0ce
xor edx, edx
jne 0x499239
mov eax, dword [ebp - 0x924]
imul eax, eax, 0x216
mov ecx, dword [ebp + 0xc]
add eax, dword [ecx + 0xc]
mov dword [ebp - 0xab0], eax
mov edx, dword [ebp - 0x920]
push edx
call fcn.004f8626
add esp, 4
mov ecx, dword [ebp - 0xab0]
mov dword [ecx + 4], 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 - 0x924], eax
jb 0x499290
call fcn.004fb0ce
xor edx, edx
jne 0x499290
mov eax, dword [ebp - 0x924]
imul eax, eax, 0x216
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xc]
cmp dword [edx + eax + 4], 0
jne 0x4992b2
jmp 0x4993c8
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 - 0x924], eax
jb 0x4992d3
call fcn.004fb0ce
xor edx, edx
jne 0x4992d3
mov eax, dword [ebp - 0x920]
push eax
push 0
mov ecx, dword [ebp - 0x924]
imul ecx, ecx, 0x216
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax + ecx + 4]
push ecx
call fcn.004f8090
add esp, 0xc
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 - 0x924], eax
jb 0x499322
call fcn.004fb0ce
xor edx, edx
jne 0x499322
mov eax, dword [ebp - 0x924]
imul eax, eax, 0x216
mov ecx, dword [ebp + 0xc]
add eax, dword [ecx + 0xc]
mov dword [ebp - 0xab4], eax
mov edx, dword [ebp - 0x920]
push edx
mov eax, dword [ebp - 0xab4]
mov ecx, dword [eax + 4]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004b3322
mov dword [ebp - 0x908], eax
mov edx, dword [ebp - 0x908]
cmp edx, dword [ebp - 0x920]
je 0x49937a
push str.read_file_end.
call fcn.0047c040
add esp, 4
jmp 0x4993c0
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 - 0x924], eax
jb 0x49939b
call fcn.004fb0ce
xor edx, edx
jne 0x49939b
mov eax, dword [ebp - 0x924]
imul eax, eax, 0x216
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xc]
mov ecx, dword [ebp - 0x920]
mov dword [edx + eax + 8], ecx
jmp 0x499156
lea ecx, [ebp - 0x2c]
call fcn.004b35c8
cmp dword [ebp - 0x3c], 0
jne 0x4995ee
mov dword [ebp - 0x930], 0
jmp 0x4993ed
mov edx, dword [ebp - 0x930]
add edx, 1
mov dword [ebp - 0x930], 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 - 0x930], eax
jae 0x4995ee
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 - 0x930], eax
jb 0x499430
call fcn.004fb0ce
xor edx, edx
jne 0x499430
mov eax, dword [ebp - 0x930]
imul eax, eax, 0x216
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xc]
cmp dword [edx + eax + 4], 0
je 0x499491
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 - 0x930], eax
jb 0x49946e
call fcn.004fb0ce
xor edx, edx
jne 0x49946e
mov eax, dword [ebp - 0x930]
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 - 0x930], eax
jb 0x4994b2
call fcn.004fb0ce
xor edx, edx
jne 0x4994b2
mov eax, dword [ebp - 0x930]
imul eax, eax, 0x216
mov ecx, dword [ebp + 0xc]
add eax, dword [ecx + 0xc]
mov dword [ebp - 0xab8], eax
mov edx, dword [ebp - 0xab8]
add edx, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x499524
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 - 0x930], eax
jb 0x499503
call fcn.004fb0ce
xor edx, edx
jne 0x499503
mov eax, dword [ebp - 0x930]
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 - 0x930], eax
jb 0x499545
call fcn.004fb0ce
xor edx, edx
jne 0x499545
push 0x567128
mov eax, dword [ebp - 0x930]
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 - 0x930], eax
jb 0x49958c
call fcn.004fb0ce
xor edx, edx
jne 0x49958c
mov eax, dword [ebp - 0x930]
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 - 0x930], eax
jb 0x4995cb
call fcn.004fb0ce
xor edx, edx
jne 0x4995cb
mov eax, dword [ebp - 0x930]
imul eax, eax, 0x216
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xc]
mov dword [edx + eax + 8], 0
jmp 0x4993de
cmp dword [ebp - 0x3c], 0
setne al
mov byte [ebp - 0xa3b], al
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.004b37e5
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.0044f990
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0044f990
mov al, byte [ebp - 0xa3b]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x4c]
xor ecx, ebp
call fcn.004f8124
mov esp, ebp
pop ebp
ret