Function at 0x4203c0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x485653
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x4b31cc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x228], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x248], eax
xor eax, eax
mov dword [ebp - 0x22c], eax
mov eax, dword [ebx + 0x34]
sub eax, dword [ebx + 0x30]
mov dword [ebp - 0x244], esi
mov byte [ebp - 0x219], 0
test eax, 0xfffffffc
jne 0x420431
mov eax, 2
jmp 0x420c4e
mov edi, dword [ebp + 0x10]
mov eax, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp edi, 1
jne 0x42046f
lea edi, [ebx + 0x84]
push edi
call eax
mov esi, dword [edi + 0x1c]
sub esi, dword [edi + 0x18]
push edi
sar esi, 5
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [ebp + 0x10]
xor eax, eax
test esi, esi
mov esi, dword [ebp - 0x244]
cmove edi, eax
mov eax, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp + 0x10], edi
push ebx
mov dword [ebp - 0x280], ebx
call eax
mov dword [ebp - 4], 0
test esi, esi
jne 0x420942
push 0x588
call fcn.0046d6f6
add esp, 4
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x4204b3
mov ecx, eax
call fcn.00414e10
mov edi, eax
mov dword [ebp - 0x220], eax
jmp 0x4204bb
xor edi, edi
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x27c], edi
test edi, edi
je 0x4204d2
lea eax, [edi + 0x570]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [ebx + 0x34]
mov byte [ebp - 4], 2
mov esi, dword [eax - 4]
lea ecx, [esi + 0x4e4]
call fcn.00440930
lea ecx, [esi + 0x514]
push ecx
lea ecx, [esi + 0x4b0]
push ecx
lea ecx, [edi + 0x514]
push ecx
lea ecx, [edi + 0x4b0]
push ecx
mov ecx, eax
call fcn.0043ef10
push eax
lea ecx, [edi + 0x4e4]
call fcn.0043dea0
mov eax, dword [ebp + 0x10]
xor ecx, ecx
cmp byte [ebp + 0x18], cl
cmovne eax, ecx
sub eax, ecx
je 0x420774
dec eax
je 0x42066a
dec eax
jne 0x420900
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
push eax
push 0x1032
push dword [ebx + 0x18]
call esi
lea ecx, [ebp - 0x219]
push ecx
push eax
push 0x490d38
push dword [ebp - 0x228]
lea ecx, [ebp - 0x278]
call fcn.0040c410
push 0
push 0
push 0x1032
push dword [ebx + 0x18]
mov byte [ebp - 4], 7
mov dword [ebp - 0x224], 0
call esi
push ebx
push eax
push dword [ebp - 0x248]
mov ecx, edi
call fcn.00465fc0
test eax, eax
je 0x4205b6
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 2
mov esi, 5
call fcn.0040c560
jmp 0x420913
push 2
push 0xffffffffffffffff
push 0x100c
push dword [ebx + 0x18]
call esi
mov esi, eax
cmp esi, 0xffffffff
je 0x4208e5
nop
push esi
lea eax, [ebp - 0x240]
mov ecx, ebx
push eax
call fcn.0040cc50
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x240]
push eax
push edi
call fcn.00420e80
add esp, 0x10
test al, al
je 0x42064c
cmp byte [ebp - 0x219], 0
jne 0x42064c
mov ecx, dword [ebp - 0x23c]
mov byte [ebp - 4], 7
mov dword [ebp - method.CViewRef.virtual_0], vtable.CViewRef.0
test ecx, ecx
je 0x42062f
push 0xffffffffffffffff
push 0xffffffffffffffff
call fcn.0042faa0
push 2
push esi
push 0x100c
push dword [ebx + 0x18]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4205d0
jmp 0x4208e5
lea ecx, [ebp - 0x240]
mov dword [ebp - 0x22c], 4
mov byte [ebp - 4], 7
call fcn.0040c5e0
jmp 0x4208e5
lea eax, [ebp - 0x219]
mov ecx, ebx
push eax
call fcn.00415a90
push eax
push 0x490d38
push dword [ebp - 0x228]
lea ecx, [ebp - 0x278]
call fcn.0040c410
push ebx
mov ecx, ebx
mov byte [ebp - 4], 5
mov dword [ebp - 0x224], 0
call fcn.00415a90
push eax
push dword [ebp - 0x248]
mov ecx, edi
call fcn.00465fc0
test eax, eax
jne 0x420596
mov ecx, ebx
xor esi, esi
call fcn.00415a90
test eax, eax
je 0x4208e5
lea esp, [esp]
push esi
lea eax, [ebp - 0x240]
mov ecx, ebx
push eax
call fcn.0040cc50
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x240]
push eax
push edi
call fcn.00420e80
add esp, 0x10
test al, al
je 0x420740
cmp byte [ebp - 0x219], 0
jne 0x420740
mov ecx, dword [ebp - 0x23c]
mov byte [ebp - 4], 5
mov dword [ebp - method.CViewRef.virtual_0], vtable.CViewRef.0
test ecx, ecx
je 0x42072f
push 0xffffffffffffffff
push 0xffffffffffffffff
call fcn.0042faa0
mov ecx, ebx
inc esi
call fcn.00415a90
cmp esi, eax
jb 0x4206d0
jmp 0x4208e5
mov ecx, dword [ebp - 0x23c]
mov dword [ebp - 0x22c], 4
mov byte [ebp - 4], 5
mov dword [ebp - method.CViewRef.virtual_0], vtable.CViewRef.0
test ecx, ecx
je 0x4208e5
push 0xffffffffffffffff
push 0xffffffffffffffff
call fcn.0042faa0
jmp 0x4208e5
lea eax, [ebp - 0x219]
mov ecx, ebx
push eax
call fcn.004186a0
push eax
push 0x490d38
push dword [ebp - 0x228]
lea ecx, [ebp - 0x278]
call fcn.0040c410
push ebx
mov ecx, ebx
mov byte [ebp - 4], 3
mov dword [ebp - 0x224], 0
call fcn.004186a0
push eax
push dword [ebp - 0x248]
mov ecx, edi
call fcn.00465fc0
test eax, eax
jne 0x420596
mov eax, dword [ebx + 0x34]
xor ecx, ecx
sub eax, dword [ebx + 0x30]
sar eax, 2
mov dword [ebp - 0x244], ecx
test eax, eax
je 0x4208e5
mov edi, edi
mov eax, dword [ebx + 0x30]
xor esi, esi
mov edi, dword [eax + ecx*4]
mov ecx, edi
call fcn.00415ad0
test eax, eax
je 0x420894
push esi
lea eax, [ebp - 0x240]
mov ecx, edi
push eax
call fcn.00466460
cmp dword [ebp + 0x10], 0
mov byte [ebp - 4], 4
je 0x420833
mov eax, dword [ebp - 0x238]
cmp word [eax + 8], 4
je 0x420833
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebx + 0x84]
call fcn.00413450
test al, al
je 0x420863
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x240]
push eax
push dword [ebp - 0x220]
call fcn.00420e80
add esp, 0x10
test al, al
je 0x4208b4
cmp byte [ebp - 0x219], 0
jne 0x4208b4
mov ecx, dword [ebp - 0x23c]
mov byte [ebp - 4], 3
mov dword [ebp - method.CViewRef.virtual_0], vtable.CViewRef.0
test ecx, ecx
je 0x420884
push 0xffffffffffffffff
push 0xffffffffffffffff
call fcn.0042faa0
mov ecx, edi
inc esi
call fcn.00415ad0
cmp esi, eax
jb 0x4207f7
mov eax, dword [ebx + 0x34]
mov ecx, dword [ebp - 0x244]
sub eax, dword [ebx + 0x30]
inc ecx
sar eax, 2
mov dword [ebp - 0x244], ecx
cmp ecx, eax
jb 0x4207e0
jmp 0x4208df
mov ecx, dword [ebp - 0x23c]
mov dword [ebp - 0x22c], 4
mov byte [ebp - 4], 3
mov dword [ebp - method.CViewRef.virtual_0], vtable.CViewRef.0
test ecx, ecx
je 0x4208df
push 0xffffffffffffffff
push 0xffffffffffffffff
call fcn.0042faa0
mov edi, dword [ebp - 0x220]
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 2
call fcn.0040c560
mov esi, dword [ebp - 0x22c]
test esi, esi
jne 0x420913
jmp 0x420902
xor esi, esi
mov ecx, edi
call fcn.00465790
test al, al
mov ecx, 4
cmove esi, ecx
mov byte [ebp - 4], 0
test edi, edi
je 0x420c26
lea eax, [edi + 0x570]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, 2
jge 0x420c26
push eax
mov ecx, edi
call fcn.004660b0
jmp 0x420c26
push 0x490d88
push dword [ebp - 0x248]
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 0
push eax
call fcn.0046fe74
mov eax, dword [ebp - 0x220]
add esp, 0xc
test eax, eax
jne 0x420978
lea esi, [eax + 3]
jmp 0x420c45
cmp esi, 1
jne 0x420a02
xor esi, esi
cmp dword [0x4b5748], esi
jle 0x4209ec
jmp 0x420990
push 0x104
lea eax, [ebp - 0x218]
push eax
push dword [esi*4 + 0x4b574c]
push dword [0x4b527c]
call dword [sym.imp.USER32.dll_LoadStringW]
test esi, esi
jle 0x4209c3
push dword [ebp - 0x220]
push 0x2c
call fcn.0047067f
add esp, 8
lea eax, [ebp - 0x218]
push eax
push 0x490da4
push dword [ebp - 0x220]
call fcn.004706f6
inc esi
add esp, 0xc
cmp esi, dword [0x4b5748]
jl 0x420990
mov eax, dword [ebp - 0x220]
push 0x490db0
push eax
call fcn.004706f6
mov esi, dword [ebp - 0x244]
add esp, 8
jmp 0x420a68
push str.__xml_version_1.0__encoding_UTF_8____n
push eax
call fcn.004706f6
push 1
push 0x490e08
push dword [ebp - 0x220]
call fcn.00437ad0
push 1
push 0x490e18
push dword [ebp - 0x220]
call fcn.00437ad0
add esp, 0x20
mov ecx, ebx
push dword [ebp - 0x220]
call fcn.00421890
push 0
push 0x490e18
push dword [ebp - 0x220]
call fcn.00437ad0
push 1
push 0x490e30
push dword [ebp - 0x220]
call fcn.00437ad0
add esp, 0x18
mov ecx, 0x420f20
mov dword [ebp - 0x250], 0
cmp esi, 1
mov dword [ebp - 0x24c], 0
mov eax, 0x421010
cmove eax, ecx
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x22c], eax
call fcn.00422170
mov dword [ebp - 0x250], eax
mov byte [ebp - 4], 9
sub edi, 0
je 0x420d36
dec edi
je 0x420c75
dec edi
jne 0x420bae
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push edi
push edi
push 0x1032
push dword [ebx + 0x18]
call esi
lea ecx, [ebp - 0x219]
push ecx
push eax
push 0x490d38
push dword [ebp - 0x228]
lea ecx, [ebp - 0x278]
call fcn.0040c410
push 2
push 0xffffffffffffffff
push 0x100c
push dword [ebx + 0x18]
mov byte [ebp - 4], 0xe
call esi
mov esi, eax
cmp esi, 0xffffffff
je 0x420b9f
jmp 0x420b10
push esi
lea eax, [ebp - 0x240]
mov ecx, ebx
push eax
call fcn.0040cc50
push dword [ebp + 0x20]
lea eax, [ebp - 0x250]
mov byte [ebp - 4], 0xf
push dword [ebp + 0x1c]
push eax
lea eax, [ebp - 0x240]
push eax
push dword [ebp - 0x220]
call dword [ebp - 0x22c]
add esp, 0x14
test al, al
je 0x420c6c
cmp byte [ebp - 0x219], 0
jne 0x420c6c
mov ecx, dword [ebp - 0x23c]
mov dword [ebp - 0x274], edi
inc edi
mov byte [ebp - 4], 0xe
mov dword [ebp - method.CViewRef.virtual_0], vtable.CViewRef.0
test ecx, ecx
je 0x420b83
push 0xffffffffffffffff
push 0xffffffffffffffff
call fcn.0042faa0
push 2
push esi
push 0x100c
push dword [ebx + 0x18]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x420b10
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 9
call fcn.0040c560
cmp dword [ebp - 0x244], 2
jne 0x420bde
push 0
push 0x490e30
push dword [ebp - 0x220]
call fcn.00437ad0
push 0
push 0x490e08
push dword [ebp - 0x220]
call fcn.00437ad0
add esp, 0x18
xor esi, esi
push dword [ebp - 0x220]
call fcn.0046ffef
add esp, 4
mov byte [ebp - 4], 0
cmp eax, 0xffffffff
mov ecx, 4
mov eax, dword [ebp - 0x250]
cmove esi, ecx
lea ecx, [ebp - 0x250]
push eax
push dword [eax]
lea eax, [ebp - 0x27c]
push eax
call fcn.004226d0
push dword [ebp - 0x250]
call fcn.0046d747
add esp, 4
test esi, esi
je 0x420c36
push dword [ebp - 0x248]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [ebp - 0x219], 0
mov eax, 1
cmovne esi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046dfbe
mov esp, ebp
pop ebp
ret 0x1c
mov byte [ebp - 4], 0xe
jmp 0x420e46
lea eax, [ebp - 0x219]
mov ecx, ebx
push eax
call fcn.00415a90
push eax
push 0x490d38
push dword [ebp - 0x228]
lea ecx, [ebp - 0x278]
call fcn.0040c410
mov ecx, ebx
mov byte [ebp - 4], 0xc
xor edi, edi
xor esi, esi
call fcn.00415a90
test eax, eax
je 0x420b9f
push esi
lea eax, [ebp - 0x240]
mov ecx, ebx
push eax
call fcn.0040cc50
push dword [ebp + 0x20]
lea eax, [ebp - 0x250]
mov byte [ebp - 4], 0xd
push dword [ebp + 0x1c]
push eax
lea eax, [ebp - 0x240]
push eax
push dword [ebp - 0x220]
call dword [ebp - 0x22c]
add esp, 0x14
test al, al
je 0x420d2d
cmp byte [ebp - 0x219], 0
jne 0x420d2d
mov ecx, dword [ebp - 0x23c]
mov dword [ebp - 0x274], edi
inc edi
mov byte [ebp - 4], 0xc
mov dword [ebp - method.CViewRef.virtual_0], vtable.CViewRef.0
test ecx, ecx
je 0x420d1c
push 0xffffffffffffffff
push 0xffffffffffffffff
call fcn.0042faa0
mov ecx, ebx
inc esi
call fcn.00415a90
cmp esi, eax
jb 0x420cb1
jmp 0x420b9f
mov byte [ebp - 4], 0xc
jmp 0x420e46
lea eax, [ebp - 0x219]
mov ecx, ebx
push eax
call fcn.004186a0
push eax
push 0x490d38
push dword [ebp - 0x228]
lea ecx, [ebp - 0x278]
call fcn.0040c410
mov eax, dword [ebx + 0x34]
xor ecx, ecx
sub eax, dword [ebx + 0x30]
xor edi, edi
sar eax, 2
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x224], ecx
test eax, eax
je 0x420b9f
lea ebx, [ebx]
mov eax, dword [ebx + 0x30]
xor esi, esi
mov eax, dword [eax + ecx*4]
mov ecx, eax
mov dword [ebp - 0x228], eax
call fcn.00415ad0
test eax, eax
je 0x420e1f
lea ecx, [ecx]
mov ecx, dword [ebp - 0x228]
lea eax, [ebp - 0x240]
push esi
push eax
call fcn.00466460
push dword [ebp + 0x20]
lea eax, [ebp - 0x250]
mov byte [ebp - 4], 0xb
push dword [ebp + 0x1c]
push eax
lea eax, [ebp - 0x240]
push eax
push dword [ebp - 0x220]
call dword [ebp - 0x22c]
add esp, 0x14
test al, al
je 0x420e42
cmp byte [ebp - 0x219], 0
jne 0x420e42
mov ecx, dword [ebp - 0x23c]
mov dword [ebp - 0x274], edi
inc edi
mov byte [ebp - 4], 0xa
mov dword [ebp - method.CViewRef.virtual_0], vtable.CViewRef.0
test ecx, ecx
je 0x420e0f
push 0xffffffffffffffff
push 0xffffffffffffffff
call fcn.0042faa0
mov ecx, dword [ebp - 0x228]
inc esi
call fcn.00415ad0
cmp esi, eax
jb 0x420da0
mov eax, dword [ebx + 0x34]
mov ecx, dword [ebp - 0x224]
sub eax, dword [ebx + 0x30]
inc ecx
sar eax, 2
mov dword [ebp - 0x224], ecx
cmp ecx, eax
jb 0x420d80
jmp 0x420b9f
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x23c]
mov esi, 4
mov dword [ebp - method.CViewRef.virtual_0], vtable.CViewRef.0
test ecx, ecx
je 0x420e68
push 0xffffffffffffffff
push 0xffffffffffffffff
call fcn.0042faa0
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 9
call fcn.0040c560
jmp 0x420be0