Function at 0x482ae0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x5196d7
mov eax, dword fs:[0]
push eax
sub esp, 0x960
mov eax, dword [0x56c3c0]
xor eax, esp
mov dword [esp + 0x95c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x56c3c0]
xor eax, esp
push eax
lea eax, [esp + 0x974]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x984]
mov ebp, dword [esp + 0x988]
push 3
lea eax, [esp + 0x44]
xor esi, esi
push ebx
lea ecx, [esp + 0x44]
mov dword [esp + 0x24], esi
mov dword [esp + 0x44], eax
call fcn.00458760
mov dword [esp + 0x97c], esi
sub esp, 0x84
mov edi, esp
mov ecx, 0x21
lea esi, [esp + 0xc0]
push str.ReadOMDFileHeaderAndData__s_
rep movsd dword es:[edi], dword [esi]
call fcn.00468970
mov eax, dword [esp + 0xc4]
or edi, 0xffffffff
lea ecx, [esp + 0xc8]
add esp, 0x88
mov dword [esp + 0x97c], edi
cmp eax, ecx
je 0x482b95
push eax
call fcn.004d5b05
add esp, 4
push ebx
lea ecx, [esp + 0x18]
call fcn.0044d470
mov dword [esp + 0x97c], 1
call fcn.0049f0da
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x482bc4
push 0x80004005
call fcn.0044b810
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push 2
push 0x52c754
lea ecx, [esp + 0x20]
mov byte [esp + 0x984], 2
call fcn.0044c940
mov esi, dword [esp + 0x18]
push esi
push ebx
call fcn.004d8b29
add esp, 8
test eax, eax
jne 0x482c0d
push esi
push 0x53ef10
lea ecx, [esp + 0x1c]
call fcn.00455570
lea ecx, [esp + 0x20]
call fcn.004916c6
mov edx, dword [esp + 0x14]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
mov byte [esp + 0x97c], 3
or ecx, eax
jge 0x482c40
push 0
lea ecx, [esp + 0x18]
call fcn.0044c410
mov edx, dword [esp + 0x14]
push 0
push 0
push edx
lea ecx, [esp + 0x2c]
call fcn.00491c12
test eax, eax
setne al
test al, al
jne 0x482d30
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x40]
push 3
mov dword [esp + 0x40], ecx
push edx
lea ecx, [esp + 0x44]
mov ebx, eax
call fcn.00458760
sub esp, 0x84
mov edi, esp
push ebx
mov ecx, 0x21
lea esi, [esp + 0xc4]
push str.error_code__d__openfile__s_.
mov byte [esp + 0xa08], 4
rep movsd dword es:[edi], dword [esi]
call fcn.00468970
mov eax, dword [esp + 0xc8]
lea ecx, [esp + 0xcc]
add esp, 0x8c
cmp eax, ecx
je 0x482cc5
push eax
call fcn.004d5b05
add esp, 4
lea ecx, [esp + 0x20]
mov byte [esp + 0x97c], 2
call fcn.0049187d
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x97c], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x482cfe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x97c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x482d29
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x4831e7
push 0x8af
lea ecx, [esp + 0xc4]
push ecx
lea ecx, [esp + 0x28]
call fcn.004913ba
cmp eax, 0x8af
je 0x482db2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.error_code__d__read.
call fcn.00468970
add esp, 8
lea ecx, [esp + 0x20]
mov byte [esp + 0x97c], 2
call fcn.0049187d
lea eax, [esi - 0x10]
mov byte [esp + 0x97c], 1
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x482d95
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x97c], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jmp 0x482d1d
push 1
push ebp
call fcn.0047eb10
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp + 0xc]
mov esi, eax
mov eax, 0x7aba01eb
imul ecx
sar edx, 8
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
add esp, 8
cmp esi, ecx
jb 0x482ddf
call fcn.004d84ce
mov ebx, dword [ebp + 0xc]
mov edi, esi
imul edi, edi, 0x216
push 0x8af
add ebx, edi
call fcn.004d5c5c
mov dword [ebx + 4], eax
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp + 0xc]
mov eax, 0x7aba01eb
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
add esp, 4
cmp esi, eax
jb 0x482e1c
call fcn.004d84ce
mov eax, dword [ebp + 0xc]
cmp dword [edi + eax + 4], 0
je 0x483005
push 0x8af
push 0
push esi
mov ecx, ebp
call fcn.0047e590
mov ecx, dword [eax + 4]
push ecx
call fcn.004d5720
add esp, 0xc
push 0x8af
lea edx, [esp + 0xc4]
push edx
push esi
mov ecx, ebp
call fcn.0047e590
mov eax, dword [eax + 4]
push eax
call fcn.004d57a0
add esp, 0xc
push esi
mov ecx, ebp
call fcn.0047e590
push 8
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x28]
mov dword [eax + 8], 0x8af
mov dword [esp + 0x24], 1
call fcn.004913ba
cmp eax, 8
jne 0x482fe3
mov eax, dword [esp + 0x34]
cmp eax, 0x64
jne 0x482eb6
mov edx, dword [esp + 0x38]
push 1
push 0
push edx
lea ecx, [esp + 0x2c]
call fcn.00491449
jmp 0x482fca
push eax
push ebp
call fcn.0047eb10
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
jne 0x482ede
mov eax, dword [esp + 0x38]
push 1
push 0
push eax
lea ecx, [esp + 0x2c]
call fcn.00491449
jmp 0x482fca
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x30], ecx
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp + 0xc]
mov eax, 0x7aba01eb
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x482f06
call fcn.004d84ce
mov ecx, dword [esp + 0x30]
mov ebx, dword [ebp + 0xc]
mov esi, edi
imul esi, esi, 0x216
push ecx
add ebx, esi
call fcn.004d5c5c
mov dword [ebx + 4], eax
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp + 0xc]
mov eax, 0x7aba01eb
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
add esp, 4
cmp edi, eax
jb 0x482f43
call fcn.004d84ce
mov eax, dword [ebp + 0xc]
cmp dword [esi + eax + 4], 0
je 0x483179
mov ecx, dword [ebp + 0x10]
sub ecx, eax
mov eax, 0x7aba01eb
imul ecx
sar edx, 8
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp edi, ecx
jb 0x482f70
call fcn.004d84ce
mov ebx, dword [esp + 0x30]
mov edx, dword [ebp + 0xc]
mov eax, dword [esi + edx + 4]
push ebx
push 0
push eax
call fcn.004d5720
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp + 0xc]
mov eax, 0x7aba01eb
imul ecx
sar edx, 8
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
add esp, 0xc
cmp edi, ecx
jb 0x482fa7
call fcn.004d84ce
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + esi + 4]
add eax, esi
push ebx
push edx
lea ecx, [esp + 0x28]
call fcn.004913ba
cmp eax, ebx
jne 0x482fea
push edi
mov ecx, ebp
call fcn.0047e590
mov dword [eax + 8], ebx
push 8
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x28]
call fcn.004913ba
cmp eax, 8
je 0x482e96
push str.read_segment_file_end.
jmp 0x482fef
push str.read_file_end.
call fcn.00468970
add esp, 4
lea ecx, [esp + 0x20]
call fcn.00491660
jmp 0x483179
mov ecx, dword [ebp + 0x10]
sub ecx, eax
mov eax, 0x7aba01eb
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
xor esi, esi
add eax, edx
je 0x483179
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor edi, edi
cmp esi, eax
jb 0x483034
call fcn.004d84ce
mov eax, dword [ebp + 0xc]
cmp dword [edi + eax + 4], 0
je 0x48306d
mov ecx, dword [ebp + 0x10]
sub ecx, eax
mov eax, 0x7aba01eb
imul ecx
sar edx, 8
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp esi, ecx
jb 0x48305d
call fcn.004d84ce
mov edx, dword [ebp + 0xc]
mov eax, dword [edi + edx + 4]
push eax
call fcn.004d5b05
add esp, 4
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp + 0xc]
mov eax, 0x7aba01eb
imul ecx
sar edx, 8
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp esi, ecx
jb 0x48308d
call fcn.004d84ce
mov eax, dword [ebp + 0xc]
add eax, edi
add eax, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x4830ce
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp + 0xc]
mov eax, 0x7aba01eb
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x4830c0
call fcn.004d84ce
mov ecx, dword [ebp + 0xc]
lea edx, [edi + ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp + 0xc]
mov eax, 0x7aba01eb
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x4830ee
call fcn.004d84ce
mov ecx, dword [ebp + 0xc]
push 0x53f778
lea edx, [edi + ecx + 0xc]
push edx
call ebx
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp + 0xc]
mov eax, 0x7aba01eb
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x48311d
call fcn.004d84ce
mov ecx, dword [ebp + 0xc]
mov dword [edi + ecx + 4], 0
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp + 0xc]
mov eax, 0x7aba01eb
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x483148
call fcn.004d84ce
mov ecx, dword [ebp + 0xc]
mov dword [edi + ecx + 8], 0
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp + 0xc]
mov eax, 0x7aba01eb
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
inc esi
add eax, edx
add edi, 0x216
cmp esi, eax
jb 0x483034
cmp dword [esp + 0x1c], 0
lea ecx, [esp + 0x20]
setne bl
mov byte [esp + 0x97c], 2
call fcn.0049187d
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x97c], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4831ba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x97c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4831e5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
mov ecx, dword [esp + 0x974]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x95c]
xor ecx, esp
call fcn.004d6555
add esp, 0x96c
ret