Function at 0x4211e0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x488013
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x4bc1dc]
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 - 0x224], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x234], eax
xor eax, eax
mov dword [ebp - 0x22c], eax
mov eax, dword [ebx + 0x34]
sub eax, dword [ebx + 0x30]
mov dword [ebp - 0x230], esi
mov byte [ebp - 0x219], 0
test eax, 0xfffffffc
jne 0x421251
mov eax, 2
jmp 0x421a0b
mov edi, dword [ebp + 0x10]
mov eax, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp edi, 1
jne 0x42128f
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 - 0x230]
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 0x421707
push 0x590
call fcn.0046f006
add esp, 4
mov dword [ebp - 0x228], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x4212d3
mov ecx, eax
call fcn.004156d0
mov edi, eax
mov dword [ebp - 0x220], eax
jmp 0x4212db
xor edi, edi
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x27c], edi
test edi, edi
je 0x4212f2
lea eax, [edi + 0x578]
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 + 0x4ec]
call fcn.004418d0
lea ecx, [esi + 0x51c]
push ecx
lea ecx, [esi + 0x4b8]
push ecx
lea ecx, [edi + 0x51c]
push ecx
lea ecx, [edi + 0x4b8]
push ecx
mov ecx, eax
call fcn.0043fdf0
push eax
lea ecx, [edi + 0x4ec]
call fcn.0043ed80
mov eax, dword [ebp + 0x10]
xor ecx, ecx
cmp byte [ebp + 0x18], cl
cmovne eax, ecx
sub eax, ecx
je 0x42155c
dec eax
je 0x421478
dec eax
jne 0x4216c5
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 0x498cc8
push dword [ebp - 0x224]
lea ecx, [ebp - 0x278]
call fcn.0040c870
push 0
push 0
push 0x1032
push dword [ebx + 0x18]
mov byte [ebp - 4], 7
mov dword [ebp - 0x228], 0
call esi
push ebx
push eax
push dword [ebp - 0x234]
mov ecx, edi
call fcn.004674c0
test eax, eax
je 0x4213d6
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 2
mov esi, 5
call fcn.0040c9c0
jmp 0x4216d8
push 2
push 0xffffffffffffffff
push 0x100c
push dword [ebx + 0x18]
call esi
mov esi, eax
cmp esi, 0xffffffff
je 0x4216aa
nop
push esi
lea eax, [ebp - 0x248]
mov ecx, ebx
push eax
call fcn.0040d160
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x248]
push eax
push edi
call fcn.00421c00
add esp, 0x10
test al, al
je 0x42145a
cmp byte [ebp - 0x219], 0
jne 0x42145a
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 7
call fcn.0040f5c0
push 2
push esi
push 0x100c
push dword [ebx + 0x18]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4213f0
jmp 0x4216aa
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x22c], 4
mov byte [ebp - 4], 7
call fcn.0040f5c0
jmp 0x4216aa
lea eax, [ebp - 0x219]
mov ecx, ebx
push eax
call fcn.004164d0
push eax
push 0x498cc8
push dword [ebp - 0x224]
lea ecx, [ebp - 0x278]
call fcn.0040c870
push ebx
mov ecx, ebx
mov byte [ebp - 4], 5
mov dword [ebp - 0x228], 0
call fcn.004164d0
push eax
push dword [ebp - 0x234]
mov ecx, edi
call fcn.004674c0
test eax, eax
jne 0x4213b6
mov ecx, ebx
xor esi, esi
call fcn.004164d0
test eax, eax
je 0x4216aa
lea ebx, [ebx]
push esi
lea eax, [ebp - 0x248]
mov ecx, ebx
push eax
call fcn.0040d160
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x248]
push eax
push edi
call fcn.00421c00
add esp, 0x10
test al, al
je 0x42153e
cmp byte [ebp - 0x219], 0
jne 0x42153e
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 5
call fcn.0040f5c0
mov ecx, ebx
inc esi
call fcn.004164d0
cmp esi, eax
jb 0x4214e0
jmp 0x4216aa
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x22c], 4
mov byte [ebp - 4], 5
call fcn.0040f5c0
jmp 0x4216aa
lea eax, [ebp - 0x219]
mov ecx, ebx
push eax
call fcn.004191b0
push eax
push 0x498cc8
push dword [ebp - 0x224]
lea ecx, [ebp - 0x278]
call fcn.0040c870
push ebx
mov ecx, ebx
mov byte [ebp - 4], 3
mov dword [ebp - 0x228], 0
call fcn.004191b0
push eax
push dword [ebp - 0x234]
mov ecx, edi
call fcn.004674c0
test eax, eax
jne 0x4213b6
mov eax, dword [ebx + 0x34]
xor ecx, ecx
sub eax, dword [ebx + 0x30]
sar eax, 2
mov dword [ebp - 0x230], ecx
test eax, eax
je 0x4216aa
mov eax, dword [ebx + 0x30]
xor esi, esi
mov edi, dword [eax + ecx*4]
mov ecx, edi
call fcn.00416510
test eax, eax
je 0x42166b
lea ecx, [ecx]
push esi
lea eax, [ebp - 0x248]
mov ecx, edi
push eax
call fcn.00467940
cmp dword [ebp + 0x10], 0
mov byte [ebp - 4], 4
je 0x42161c
mov eax, dword [ebp - 0x240]
cmp word [eax + 8], 4
je 0x42161c
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebx + 0x84]
call fcn.00413cd0
test al, al
je 0x42164c
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 0x220]
call fcn.00421c00
add esp, 0x10
test al, al
je 0x42168b
cmp byte [ebp - 0x219], 0
jne 0x42168b
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 3
call fcn.0040f5c0
mov ecx, edi
inc esi
call fcn.00416510
cmp esi, eax
jb 0x4215e0
mov eax, dword [ebx + 0x34]
mov ecx, dword [ebp - 0x230]
sub eax, dword [ebx + 0x30]
inc ecx
sar eax, 2
mov dword [ebp - 0x230], ecx
cmp ecx, eax
jb 0x4215c6
jmp 0x4216a4
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x22c], 4
mov byte [ebp - 4], 3
call fcn.0040f5c0
mov edi, dword [ebp - 0x220]
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 2
call fcn.0040c9c0
mov esi, dword [ebp - 0x22c]
test esi, esi
jne 0x4216d8
jmp 0x4216c7
xor esi, esi
mov ecx, edi
call fcn.00466c90
test al, al
mov ecx, 4
cmove esi, ecx
mov byte [ebp - 4], 0
test edi, edi
je 0x4219e3
lea eax, [edi + 0x578]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, 2
jge 0x4219e3
push eax
mov ecx, edi
call fcn.004675b0
jmp 0x4219e3
push 0x498d18
push dword [ebp - 0x234]
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 0
push eax
call fcn.00471df4
mov eax, dword [ebp - 0x220]
add esp, 0xc
test eax, eax
jne 0x42173d
lea esi, [eax + 3]
jmp 0x421a02
cmp esi, 1
jne 0x4217c2
xor esi, esi
cmp dword [0x4be790], esi
jle 0x4217ac
push 0x104
lea eax, [ebp - 0x218]
push eax
push dword [esi*4 + 0x4be794]
push dword [0x4be2c4]
call dword [sym.imp.USER32.dll_LoadStringW]
test esi, esi
jle 0x421783
push dword [ebp - 0x220]
push 0x2c
call fcn.004725ff
add esp, 8
lea eax, [ebp - 0x218]
push eax
push 0x498d34
push dword [ebp - 0x220]
call fcn.00472676
inc esi
add esp, 0xc
cmp esi, dword [0x4be790]
jl 0x421750
mov eax, dword [ebp - 0x220]
push 0x498d40
push eax
call fcn.00472676
mov esi, dword [ebp - 0x230]
add esp, 8
jmp 0x421828
push str.__xml_version_1.0__encoding_UTF_8____n
push eax
call fcn.00472676
push 1
push 0x498d98
push dword [ebp - 0x220]
call fcn.00438ac0
push 1
push 0x498da8
push dword [ebp - 0x220]
call fcn.00438ac0
add esp, 0x20
mov ecx, ebx
push dword [ebp - 0x220]
call fcn.00422600
push 0
push 0x498da8
push dword [ebp - 0x220]
call fcn.00438ac0
push 1
push 0x498dc0
push dword [ebp - 0x220]
call fcn.00438ac0
add esp, 0x18
mov ecx, 0x421c90
mov dword [ebp - 0x250], 0
cmp esi, 1
mov dword [ebp - 0x24c], 0
mov eax, 0x421d80
cmove eax, ecx
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x22c], eax
call fcn.00422ee0
mov dword [ebp - 0x250], eax
mov byte [ebp - 4], 9
sub edi, 0
je 0x421ae0
dec edi
je 0x421a32
dec edi
jne 0x42196b
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 0x498cc8
push dword [ebp - 0x224]
lea ecx, [ebp - 0x278]
call fcn.0040c870
push 2
push 0xffffffffffffffff
push 0x100c
push dword [ebx + 0x18]
mov byte [ebp - 4], 0xe
mov dword [ebp - 0x224], edi
call esi
mov esi, eax
cmp esi, 0xffffffff
je 0x42195c
mov edi, dword [ebp - 0x22c]
push esi
lea eax, [ebp - 0x248]
mov ecx, ebx
push eax
call fcn.0040d160
push dword [ebp + 0x20]
lea eax, [ebp - 0x250]
mov byte [ebp - 4], 0xf
push dword [ebp + 0x1c]
push eax
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 0x220]
call edi
add esp, 0x14
test al, al
je 0x421a29
cmp byte [ebp - 0x219], 0
jne 0x421a29
mov eax, dword [ebp - 0x224]
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x274], eax
inc eax
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 0xe
call fcn.0040f5c0
push 2
push esi
push 0x100c
push dword [ebx + 0x18]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4218d7
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 9
call fcn.0040c9c0
cmp dword [ebp - 0x230], 2
jne 0x42199b
push 0
push 0x498dc0
push dword [ebp - 0x220]
call fcn.00438ac0
push 0
push 0x498d98
push dword [ebp - 0x220]
call fcn.00438ac0
add esp, 0x18
xor esi, esi
push dword [ebp - 0x220]
call fcn.00471f6f
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.00423430
push dword [ebp - 0x250]
call fcn.0046f057
add esp, 4
test esi, esi
je 0x4219f3
push dword [ebp - 0x234]
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.0046f8ce
mov esp, ebp
pop ebp
ret 0x1c
mov byte [ebp - 4], 0xe
jmp 0x421bd4
lea eax, [ebp - 0x219]
mov ecx, ebx
push eax
call fcn.004164d0
push eax
push 0x498cc8
push dword [ebp - 0x224]
lea ecx, [ebp - 0x278]
call fcn.0040c870
mov ecx, ebx
mov byte [ebp - 4], 0xc
xor esi, esi
call fcn.004164d0
test eax, eax
je 0x42195c
mov edi, dword [ebp - 0x22c]
push esi
lea eax, [ebp - 0x248]
mov ecx, ebx
push eax
call fcn.0040d160
push dword [ebp + 0x20]
lea eax, [ebp - 0x250]
mov byte [ebp - 4], 0xd
push dword [ebp + 0x1c]
push eax
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 0x220]
call edi
add esp, 0x14
test al, al
je 0x421ad7
cmp byte [ebp - 0x219], 0
jne 0x421ad7
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x274], esi
mov byte [ebp - 4], 0xc
call fcn.0040f5c0
mov ecx, ebx
inc esi
call fcn.004164d0
cmp esi, eax
jb 0x421a72
jmp 0x42195c
mov byte [ebp - 4], 0xc
jmp 0x421bd4
lea eax, [ebp - 0x219]
mov ecx, ebx
push eax
call fcn.004191b0
push eax
push 0x498cc8
push dword [ebp - 0x224]
lea ecx, [ebp - 0x278]
call fcn.0040c870
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 - 0x228], ecx
test eax, eax
je 0x42195c
mov eax, dword [ebx + 0x30]
xor esi, esi
mov eax, dword [eax + ecx*4]
mov ecx, eax
mov dword [ebp - 0x224], eax
call fcn.00416510
test eax, eax
je 0x421bad
lea ecx, [ecx]
mov ecx, dword [ebp - 0x224]
lea eax, [ebp - 0x248]
push esi
push eax
call fcn.00467940
push dword [ebp + 0x20]
lea eax, [ebp - 0x250]
mov byte [ebp - 4], 0xb
push dword [ebp + 0x1c]
push eax
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 0x220]
call dword [ebp - 0x22c]
add esp, 0x14
test al, al
je 0x421bd0
cmp byte [ebp - 0x219], 0
jne 0x421bd0
mov dword [ebp - 0x274], edi
lea ecx, [ebp - 0x248]
inc edi
mov byte [ebp - 4], 0xa
call fcn.0040f5c0
mov ecx, dword [ebp - 0x224]
inc esi
call fcn.00416510
cmp esi, eax
jb 0x421b40
mov eax, dword [ebx + 0x34]
mov ecx, dword [ebp - 0x228]
sub eax, dword [ebx + 0x30]
inc ecx
sar eax, 2
mov dword [ebp - 0x228], ecx
cmp ecx, eax
jb 0x421b24
jmp 0x42195c
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x248]
mov esi, 4
call fcn.0040f5c0
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 9
call fcn.0040c9c0
jmp 0x42199d