Function at 0x431010
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d3acf
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x517b80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x288], edi
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x270], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x280], eax
xor eax, eax
mov dword [ebp - 0x26c], eax
mov eax, dword [edi + 0x30]
sub eax, dword [edi + 0x2c]
mov dword [ebp - 0x278], esi
mov byte [ebp - 0x219], 0
cmp eax, 4
jae 0x431084
mov eax, 2
jmp 0x431af0
cmp dword [ebp + 0x10], 1
jne 0x4310cc
add edi, 0x84
push edi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [edi + 0x1c]
mov esi, dword [edi + 0x18]
push edi
mov dword [ebp - 0x27c], eax
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov eax, dword [ebp - 0x27c]
xor edx, edx
mov ecx, dword [ebp + 0x10]
sub eax, esi
mov edi, dword [ebp - 0x288]
cmp eax, 0x20
mov esi, dword [ebp - 0x278]
cmovb ecx, edx
mov dword [ebp + 0x10], ecx
push edi
mov dword [ebp - 0x28c], edi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov dword [ebp - 4], 0
test esi, esi
jne 0x43162c
push 0x590
call fcn.004a71b8
mov esi, eax
add esp, 4
mov dword [ebp - 0x284], esi
mov byte [ebp - 4], 1
test esi, esi
je 0x43113b
push 0x590
push 0
push esi
call fcn.004aa220
add esp, 0xc
mov ecx, esi
call fcn.004266c0
mov dword [ebp - 0x278], eax
mov dword [ebp - 0x27c], eax
test eax, eax
je 0x43114f
lock inc dword [eax + 0x57c]
mov dword [ebp - 0x278], eax
jmp 0x43114f
mov dword [ebp - 0x278], 0
mov dword [ebp - 0x27c], 0
mov eax, dword [edi + 0x30]
mov byte [ebp - 4], 2
mov esi, dword [eax - 4]
lea ecx, [esi + 0x4f0]
call fcn.004812b0
lea ecx, [esi + 0x524]
push ecx
lea ecx, [esi + 0x4b8]
mov esi, dword [ebp - 0x278]
push ecx
lea ecx, [esi + 0x524]
push ecx
lea ecx, [esi + 0x4b8]
push ecx
mov ecx, eax
call fcn.0047edc0
lea ecx, [esi + 0x4f0]
push eax
call fcn.0047dc10
mov eax, dword [ebp + 0x10]
xor ecx, ecx
cmp byte [ebp + 0x18], cl
cmovne eax, ecx
sub eax, ecx
je 0x431413
sub eax, 1
je 0x4312e5
sub eax, 1
jne 0x4315e8
push 0x30
push eax
lea eax, [ebp - 0x268]
push eax
call fcn.004aa220
add esp, 0xc
push 0
push 0
push 0x1032
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0x219]
push ecx
push eax
push 0x4e6af0
push dword [ebp - 0x270]
lea ecx, [ebp - 0x268]
call fcn.004265a0
push 0
push 0
push 0x1032
push dword [edi + 0x18]
mov byte [ebp - 4], 7
mov dword [ebp - 0x274], 0
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
push eax
push dword [ebp - 0x280]
mov ecx, esi
call fcn.0049e1a0
test eax, eax
jne 0x431345
push 2
push 0xffffffffffffffff
push 0x100c
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x270], eax
cmp eax, 0xffffffff
je 0x4315cd
push eax
lea eax, [edi + 0x2c]
mov dword [ebp - 0x220], 0
push eax
lea eax, [ebp - 0x230]
xorps xmm0, xmm0
lea ecx, [edi + 0x1c]
push eax
movups xmmword [ebp - 0x230], xmm0
call fcn.004198d0
lea eax, [ebp - 0x274]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x230]
push eax
push esi
call fcn.00431c70
add esp, 0x10
test al, al
je 0x4312cb
cmp byte [ebp - 0x219], 0
jne 0x4312cb
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 7
call fcn.0041f2b0
push 2
push dword [ebp - 0x270]
jmp 0x43123b
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x26c], 4
call fcn.0041f2b0
jmp 0x4315cd
push 0x30
lea eax, [ebp - 0x268]
push 0
push eax
call fcn.004aa220
add esp, 0xc
lea eax, [ebp - 0x219]
mov ecx, edi
push eax
call fcn.00427ae0
push eax
push 0x4e6af0
push dword [ebp - 0x270]
lea ecx, [ebp - 0x268]
call fcn.004265a0
mov ecx, edi
mov byte [ebp - 4], 5
mov dword [ebp - 0x274], 0
call fcn.00427ae0
push edi
push eax
push dword [ebp - 0x280]
mov ecx, esi
call fcn.0049e1a0
test eax, eax
je 0x431365
push eax
call dword [sym.imp.KERNEL32.DLL_SetLastError]
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 2
mov edi, 5
call fcn.00418f90
jmp 0x4315fb
mov ecx, edi
mov dword [ebp - 0x270], 0
call fcn.00427ae0
test eax, eax
je 0x4315cd
lfence
xor ecx, ecx
push ecx
lea eax, [edi + 0x2c]
mov dword [ebp - 0x220], 0
push eax
lea edx, [edi + 0x1c]
xorps xmm0, xmm0
lea eax, [ebp - 0x230]
mov ecx, edx
push eax
movups xmmword [ebp - 0x230], xmm0
call fcn.004198d0
lea eax, [ebp - 0x274]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x230]
push eax
push esi
call fcn.00431c70
add esp, 0x10
test al, al
je 0x4312cb
cmp byte [ebp - 0x219], 0
jne 0x4312cb
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 5
call fcn.0041f2b0
inc dword [ebp - 0x270]
mov ecx, edi
call fcn.00427ae0
mov ecx, dword [ebp - 0x270]
cmp ecx, eax
jae 0x4315cd
jmp 0x431383
push 0x30
lea eax, [ebp - 0x268]
push 0
push eax
call fcn.004aa220
add esp, 0xc
lea eax, [ebp - 0x219]
mov ecx, edi
push eax
call fcn.0042aa80
push eax
push 0x4e6af0
push dword [ebp - 0x270]
lea ecx, [ebp - 0x268]
call fcn.004265a0
mov ecx, edi
mov byte [ebp - 4], 3
mov dword [ebp - 0x274], 0
call fcn.0042aa80
push edi
push eax
push dword [ebp - 0x280]
mov ecx, esi
call fcn.0049e1a0
test eax, eax
je 0x431493
push eax
call dword [sym.imp.KERNEL32.DLL_SetLastError]
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 2
call fcn.00418f90
mov edi, 5
jmp 0x4315fb
mov ecx, dword [edi + 0x2c]
mov eax, dword [edi + 0x30]
mov dword [ebp - 0x270], ecx
mov dword [ebp - 0x284], eax
cmp ecx, eax
je 0x4315cd
nop dword [eax]
mov esi, dword [ecx]
xor edi, edi
nop dword [eax]
nop dword [eax + eax]
mov eax, dword [esi + 0x250]
or eax, dword [esi + 0x254]
je 0x4314d6
mov eax, dword [esi + 0x23c]
jmp 0x4314f2
mov ecx, dword [esi + 0x574]
mov eax, 0x66666667
sub ecx, dword [esi + 0x570]
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x431595
push edi
lea eax, [ebp - 0x230]
mov dword [ebp - 0x220], 0
xorps xmm0, xmm0
mov ecx, esi
push eax
movups xmmword [ebp - 0x230], xmm0
call fcn.0049e610
cmp dword [ebp + 0x10], 0
mov byte [ebp - 4], 4
je 0x431550
mov eax, dword [ebp - 0x228]
cmp word [eax + 8], 4
je 0x431550
mov ecx, dword [ebp - 0x288]
lea eax, [ebp - 0x230]
push eax
lea ecx, [ecx + 0x84]
call fcn.00424d40
test al, al
je 0x431580
lea eax, [ebp - 0x274]
push eax
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x230]
push eax
push dword [ebp - 0x278]
call fcn.00431c70
add esp, 0x10
test al, al
je 0x4315b2
cmp byte [ebp - 0x219], 0
jne 0x4315b2
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 3
call fcn.0041f2b0
inc edi
jmp 0x4314c0
mov ecx, dword [ebp - 0x270]
add ecx, 4
mov dword [ebp - 0x270], ecx
cmp ecx, dword [ebp - 0x284]
jne 0x4314b0
jmp 0x4315c7
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x26c], 4
call fcn.0041f2b0
mov esi, dword [ebp - 0x278]
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 2
call fcn.00418f90
mov edi, dword [ebp - 0x26c]
test edi, edi
jne 0x4315fb
jmp 0x4315ea
xor edi, edi
mov ecx, esi
call fcn.0049d790
test al, al
mov ecx, 4
cmove edi, ecx
mov byte [ebp - 4], 9
test esi, esi
je 0x431ab8
or eax, 0xffffffff
lock xadd dword [esi + 0x57c], eax
dec eax
cmp eax, 2
jge 0x431ab8
push eax
mov ecx, esi
lfence
call fcn.0049e2a0
jmp 0x431ab8
push 0x4e6b40
push dword [ebp - 0x280]
lea eax, [ebp - 0x26c]
mov dword [ebp - 0x26c], 0
push eax
call fcn.004ba366
mov eax, dword [ebp - 0x26c]
add esp, 0xc
test eax, eax
jne 0x431669
mov dword [ebp - 0x26c], 3
jmp 0x431ae3
cmp esi, 1
jne 0x4316ec
xor esi, esi
cmp dword [0x517538], esi
jle 0x4316dc
nop dword [eax + eax]
push 0x104
lea eax, [ebp - 0x218]
push eax
push dword [esi*4 + 0x51753c]
push dword [0x52e7d8]
call dword [sym.imp.USER32.dll_LoadStringW]
test esi, esi
jle 0x4316b3
push dword [ebp - 0x26c]
push 0x2c
call fcn.004bad02
add esp, 8
lea eax, [ebp - 0x218]
push eax
push 0x4e6b5c
push dword [ebp - 0x26c]
call fcn.004336a0
inc esi
add esp, 0xc
cmp esi, dword [0x517538]
jl 0x431680
mov eax, dword [ebp - 0x26c]
push 0x4e6b68
push eax
call fcn.004336a0
add esp, 8
jmp 0x431752
push str.__xml_version_1.0__encoding_UTF_8____n
push eax
call fcn.004336a0
push 1
push 0x4e6bc0
push dword [ebp - 0x26c]
call fcn.00433450
push 1
push 0x4e6bd0
push dword [ebp - 0x26c]
call fcn.00433450
add esp, 0x20
mov ecx, edi
push dword [ebp - 0x26c]
call fcn.004329e0
push 0
push 0x4e6bd0
push dword [ebp - 0x26c]
call fcn.00433450
push 1
push 0x4e6be8
push dword [ebp - 0x26c]
call fcn.00433450
add esp, 0x18
cmp dword [ebp - 0x278], 1
mov eax, 0x431d00
mov esi, 0x431e00
xorps xmm0, xmm0
cmove esi, eax
movlpd qword [ebp - 0x238], xmm0
push 0x38
mov dword [ebp - 0x274], esi
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0
call fcn.004a71b8
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ebp - 0x238], eax
mov eax, dword [ebp + 0x10]
mov byte [ebp - 4], 0xa
sub eax, 0
je 0x431b0d
sub eax, 1
je 0x4318d5
sub eax, 1
jne 0x4319da
push 0x30
push eax
lea eax, [ebp - 0x268]
push eax
call fcn.004aa220
add esp, 0xc
push 0
push 0
push 0x1032
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0x219]
push ecx
push eax
push 0x4e6af0
push dword [ebp - 0x270]
lea ecx, [ebp - 0x268]
call fcn.004265a0
push 2
mov byte [ebp - 4], 0xf
mov dword [ebp - 0x270], 0
push 0xffffffffffffffff
push 0x100c
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x274], eax
cmp eax, 0xffffffff
je 0x4319cf
push eax
lea eax, [edi + 0x2c]
mov dword [ebp - 0x220], 0
push eax
lea eax, [ebp - 0x230]
xorps xmm0, xmm0
lea ecx, [edi + 0x1c]
push eax
movups xmmword [ebp - 0x230], xmm0
call fcn.004198d0
push dword [ebp + 0x20]
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 0x10
push dword [ebp + 0x1c]
mov ecx, esi
push eax
lea eax, [ebp - 0x230]
push eax
push dword [ebp - 0x26c]
call dword [0x4dc8a4]
call esi
add esp, 0x14
test al, al
je 0x431c43
cmp byte [ebp - 0x219], 0
jne 0x431c43
mov ecx, dword [ebp - 0x270]
mov eax, ecx
inc ecx
mov dword [ebp - 0x264], eax
mov dword [ebp - 0x270], ecx
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0xf
call fcn.0041f2b0
push 2
push dword [ebp - 0x274]
jmp 0x43181f
push 0x30
lea eax, [ebp - 0x268]
push 0
push eax
call fcn.004aa220
add esp, 0xc
lea eax, [ebp - 0x219]
mov ecx, edi
push eax
call fcn.00427ae0
push eax
push 0x4e6af0
push dword [ebp - 0x270]
lea ecx, [ebp - 0x268]
call fcn.004265a0
mov ecx, edi
mov byte [ebp - 4], 0xd
mov dword [ebp - 0x270], 0
call fcn.00427ae0
test eax, eax
je 0x4319cf
lfence
xor ecx, ecx
push ecx
lea eax, [edi + 0x2c]
mov dword [ebp - 0x220], 0
push eax
lea edx, [edi + 0x1c]
xorps xmm0, xmm0
lea eax, [ebp - 0x230]
mov ecx, edx
push eax
movups xmmword [ebp - 0x230], xmm0
call fcn.004198d0
push dword [ebp + 0x20]
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 0xe
push dword [ebp + 0x1c]
mov ecx, esi
push eax
lea eax, [ebp - 0x230]
push eax
push dword [ebp - 0x26c]
call dword [0x4dc8a4]
call esi
add esp, 0x14
test al, al
je 0x431c43
cmp byte [ebp - 0x219], 0
jne 0x431c43
mov eax, dword [ebp - 0x270]
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x264], eax
mov byte [ebp - 4], 0xd
call fcn.0041f2b0
inc dword [ebp - 0x270]
mov ecx, edi
call fcn.00427ae0
mov ecx, dword [ebp - 0x270]
cmp ecx, eax
jb 0x43192f
lea ecx, [ebp - 0x268]
call fcn.00418f90
cmp dword [ebp - 0x278], 2
jne 0x431a76
mov edi, dword [ebp - 0x26c]
push edi
push 0x3c
call fcn.004bab94
push edi
push 0x2f
call fcn.004bab94
add esp, 0x10
mov esi, 0x4e6be8
mov ecx, 0x65
nop word [eax + eax]
push edi
push ecx
call fcn.004bab94
movzx eax, word [esi + 2]
lea esi, [esi + 2]
add esp, 8
mov ecx, eax
test ax, ax
jne 0x431a10
push edi
push 0x3e
call fcn.004bab94
mov edi, dword [ebp - 0x26c]
push edi
push 0x3c
call fcn.004bab94
push edi
push 0x2f
call fcn.004bab94
add esp, 0x18
mov esi, 0x4e6bc0
mov ecx, 0x70
push edi
push ecx
call fcn.004bab94
movzx eax, word [esi + 2]
lea esi, [esi + 2]
add esp, 8
mov ecx, eax
test ax, ax
jne 0x431a53
push edi
push 0x3e
call fcn.004bab94
add esp, 8
xor edi, edi
push dword [ebp - 0x26c]
call fcn.004ba4d2
add esp, 4
mov ecx, 4
cmp eax, 0xffffffff
mov eax, dword [ebp - 0x238]
cmove edi, ecx
push dword [eax + 4]
lea eax, [ebp - 0x238]
push eax
mov ecx, eax
call fcn.0042b9e0
push 0x38
push dword [ebp - 0x238]
call fcn.004a71e8
add esp, 8
test edi, edi
je 0x431ac8
push dword [ebp - 0x280]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp byte [ebp - 0x219], 0
mov eax, 1
cmovne edi, eax
mov dword [ebp - 0x26c], edi
mov edi, dword [ebp - 0x288]
push edi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov eax, dword [ebp - 0x26c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a71aa
mov esp, ebp
pop ebp
ret 0x1c
push 0x30
lea eax, [ebp - 0x268]
push 0
push eax
call fcn.004aa220
add esp, 0xc
lea eax, [ebp - 0x219]
mov ecx, edi
push eax
call fcn.0042aa80
push eax
push 0x4e6af0
push dword [ebp - 0x270]
lea ecx, [ebp - 0x268]
call fcn.004265a0
mov eax, dword [ebp - 0x288]
xor edi, edi
mov byte [ebp - 4], 0xb
mov ecx, dword [eax + 0x2c]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x27c], ecx
mov dword [ebp - 0x284], eax
cmp ecx, eax
je 0x4319cf
nop dword [eax + eax]
mov eax, dword [ecx]
xor esi, esi
mov ecx, eax
mov dword [ebp - 0x270], eax
call fcn.00427b10
test eax, eax
je 0x431c23
lfence
nop dword [eax]
mov ecx, dword [ebp - 0x270]
lea eax, [ebp - 0x230]
push esi
xorps xmm0, xmm0
mov dword [ebp - 0x220], 0
push eax
movups xmmword [ebp - 0x230], xmm0
call fcn.0049e610
push dword [ebp + 0x20]
mov ecx, dword [ebp - 0x274]
lea eax, [ebp - 0x238]
push dword [ebp + 0x1c]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x230]
push eax
push dword [ebp - 0x26c]
call dword [0x4dc8a4]
call dword [ebp - 0x274]
add esp, 0x14
test al, al
je 0x431c43
cmp byte [ebp - 0x219], 0
jne 0x431c43
mov eax, edi
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x264], eax
inc edi
call fcn.0041f2b0
mov ecx, dword [ebp - 0x270]
inc esi
call fcn.00427b10
cmp esi, eax
jb 0x431b90
mov ecx, dword [ebp - 0x27c]
add ecx, 4
mov dword [ebp - 0x27c], ecx
cmp ecx, dword [ebp - 0x284]
jne 0x431b70
jmp 0x4319cf
lea ecx, [ebp - 0x230]
mov edi, 4
call fcn.0041f2b0
lea ecx, [ebp - 0x268]
call fcn.00418f90
jmp 0x431a78