Function at 0x431150
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x486497
mov eax, dword fs:[0]
push eax
sub esp, 0x960
mov eax, dword [0x4b7b70]
xor eax, esp
mov dword [esp + 0x95c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b7b70]
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.00417830
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.00424af0
mov eax, dword [esp + 0xc4]
or edi, 0xffffffff
lea ecx, [esp + 0xc8]
add esp, 0x88
mov dword [esp + 0x97c], edi
cmp eax, ecx
je 0x431205
push eax
call fcn.00460675
add esp, 4
push ebx
lea ecx, [esp + 0x18]
call fcn.00411f10
mov dword [esp + 0x97c], 1
call fcn.004462c7
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x431234
push 0x80004005
call fcn.00410860
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 0x4938a8
lea ecx, [esp + 0x20]
mov byte [esp + 0x984], 2
call fcn.00411460
mov esi, dword [esp + 0x18]
push esi
push ebx
call fcn.00462ba9
add esp, 8
test eax, eax
jne 0x43127d
push esi
push 0x49bcb8
lea ecx, [esp + 0x1c]
call fcn.00415160
lea ecx, [esp + 0x20]
call fcn.0043dc5e
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 0x4312b0
push 0
lea ecx, [esp + 0x18]
call fcn.00411000
mov edx, dword [esp + 0x14]
push 0
push 0
push edx
lea ecx, [esp + 0x2c]
call fcn.0043e05b
test eax, eax
setne al
test al, al
jne 0x4313a0
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.00417830
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.00424af0
mov eax, dword [esp + 0xc8]
lea ecx, [esp + 0xcc]
add esp, 0x8c
cmp eax, ecx
je 0x431335
push eax
call fcn.00460675
add esp, 4
lea ecx, [esp + 0x20]
mov byte [esp + 0x97c], 2
call fcn.0043dd39
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 0x43136e
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 0x431399
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x431857
push 0x8af
lea ecx, [esp + 0xc4]
push ecx
lea ecx, [esp + 0x28]
call fcn.0043d952
cmp eax, 0x8af
je 0x431422
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.error_code__d__read.
call fcn.00424af0
add esp, 8
lea ecx, [esp + 0x20]
mov byte [esp + 0x97c], 2
call fcn.0043dd39
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 0x431405
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 0x43138d
push 1
push ebp
call fcn.0042f120
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 0x43144f
call fcn.0046274f
mov ebx, dword [ebp + 0xc]
mov edi, esi
imul edi, edi, 0x216
push 0x8af
add ebx, edi
call fcn.00460752
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 0x43148c
call fcn.0046274f
mov eax, dword [ebp + 0xc]
cmp dword [edi + eax + 4], 0
je 0x431675
push 0x8af
push 0
push esi
mov ecx, ebp
call fcn.0042f020
mov ecx, dword [eax + 4]
push ecx
call fcn.00460290
add esp, 0xc
push 0x8af
lea edx, [esp + 0xc4]
push edx
push esi
mov ecx, ebp
call fcn.0042f020
mov eax, dword [eax + 4]
push eax
call fcn.00460310
add esp, 0xc
push esi
mov ecx, ebp
call fcn.0042f020
push 8
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x28]
mov dword [eax + 8], 0x8af
mov dword [esp + 0x24], 1
call fcn.0043d952
cmp eax, 8
jne 0x431653
mov eax, dword [esp + 0x34]
cmp eax, 0x64
jne 0x431526
mov edx, dword [esp + 0x38]
push 1
push 0
push edx
lea ecx, [esp + 0x2c]
call fcn.0043d9e1
jmp 0x43163a
push eax
push ebp
call fcn.0042f120
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
jne 0x43154e
mov eax, dword [esp + 0x38]
push 1
push 0
push eax
lea ecx, [esp + 0x2c]
call fcn.0043d9e1
jmp 0x43163a
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 0x431576
call fcn.0046274f
mov ecx, dword [esp + 0x30]
mov ebx, dword [ebp + 0xc]
mov esi, edi
imul esi, esi, 0x216
push ecx
add ebx, esi
call fcn.00460752
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 0x4315b3
call fcn.0046274f
mov eax, dword [ebp + 0xc]
cmp dword [esi + eax + 4], 0
je 0x4317e9
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 0x4315e0
call fcn.0046274f
mov ebx, dword [esp + 0x30]
mov edx, dword [ebp + 0xc]
mov eax, dword [esi + edx + 4]
push ebx
push 0
push eax
call fcn.00460290
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 0x431617
call fcn.0046274f
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + esi + 4]
add eax, esi
push ebx
push edx
lea ecx, [esp + 0x28]
call fcn.0043d952
cmp eax, ebx
jne 0x43165a
push edi
mov ecx, ebp
call fcn.0042f020
mov dword [eax + 8], ebx
push 8
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x28]
call fcn.0043d952
cmp eax, 8
je 0x431506
push str.read_segment_file_end.
jmp 0x43165f
push str.read_file_end.
call fcn.00424af0
add esp, 4
lea ecx, [esp + 0x20]
call fcn.0043dbf8
jmp 0x4317e9
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 0x4317e9
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor edi, edi
cmp esi, eax
jb 0x4316a4
call fcn.0046274f
mov eax, dword [ebp + 0xc]
cmp dword [edi + eax + 4], 0
je 0x4316dd
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 0x4316cd
call fcn.0046274f
mov edx, dword [ebp + 0xc]
mov eax, dword [edi + edx + 4]
push eax
call fcn.00460675
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 0x4316fd
call fcn.0046274f
mov eax, dword [ebp + 0xc]
add eax, edi
add eax, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x43173e
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 0x431730
call fcn.0046274f
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 0x43175e
call fcn.0046274f
mov ecx, dword [ebp + 0xc]
push 0x49c110
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 0x43178d
call fcn.0046274f
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 0x4317b8
call fcn.0046274f
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 0x4316a4
cmp dword [esp + 0x1c], 0
lea ecx, [esp + 0x20]
setne bl
mov byte [esp + 0x97c], 2
call fcn.0043dd39
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 0x43182a
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 0x431855
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.00460f10
add esp, 0x96c
ret