Function at 0x435230
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d240f
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x517ba0]
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 dword [ebp - 0x228], ebx
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x22c], eax
xor eax, eax
mov dword [ebp - 0x230], eax
mov eax, dword [ebx + 0x30]
sub eax, dword [ebx + 0x2c]
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x224], esi
mov byte [ebp - 0x219], 0
cmp eax, 4
jae 0x4352a5
mov eax, 2
jmp 0x435afd
cmp dword [ebp + 0x10], 1
mov eax, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jne 0x4352ed
lea edi, [ebx + 0x84]
push edi
call eax
mov ebx, dword [edi + 0x1c]
mov esi, dword [edi + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 0x10]
sub ebx, esi
mov esi, dword [ebp - 0x224]
xor ecx, ecx
mov edi, dword [ebp - 0x234]
cmp ebx, 0x20
mov ebx, dword [ebp - 0x228]
cmovb eax, ecx
mov dword [ebp + 0x10], eax
mov eax, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
mov dword [ebp - 0x288], ebx
call eax
mov dword [ebp - 4], 0
test esi, esi
jne 0x435786
push 0x590
call fcn.004a4441
add esp, 4
mov dword [ebp - 0x24c], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x435350
mov ecx, eax
call fcn.0042a970
mov dword [ebp - 0x24c], eax
mov edi, eax
mov dword [ebp - 0x220], edi
test eax, eax
je 0x435360
lea ecx, [eax + 0x57c]
mov dword [ebp - 0x228], ecx
lock inc dword [ecx]
mov dword [ebp - 0x220], edi
jmp 0x43536b
xor edi, edi
xor eax, eax
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x24c], edi
add eax, 0x57c
mov dword [ebp - 0x228], eax
mov eax, dword [ebx + 0x30]
mov byte [ebp - 4], 2
mov esi, dword [eax - 4]
lea ecx, [esi + 0x4f0]
call fcn.0047dd70
lea ecx, [esi + 0x524]
push ecx
lea ecx, [esi + 0x4b8]
push ecx
lea ecx, [edi + 0x524]
push ecx
lea ecx, [edi + 0x4b8]
push ecx
mov ecx, eax
call fcn.0047ba10
lea ecx, [edi + 0x4f0]
push eax
call fcn.0047a8e0
mov eax, dword [ebp + 0x10]
xor ecx, ecx
cmp byte [ebp + 0x18], cl
cmovne eax, ecx
sub eax, ecx
je 0x43559c
sub eax, 1
je 0x4354d4
sub eax, 1
jne 0x435743
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 0x4e40d0
push dword [ebp - 0x22c]
lea ecx, [ebp - 0x284]
call fcn.0042a850
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 - 0x234]
mov ecx, edi
call fcn.0049b040
test eax, eax
jne 0x4355e9
push 2
push 0xffffffffffffffff
push 0x100c
push dword [ebx + 0x18]
call esi
mov esi, eax
cmp esi, 0xffffffff
je 0x435728
push esi
lea eax, [ebp - 0x248]
mov ecx, ebx
push eax
call fcn.0041e2d0
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x284]
push eax
lea eax, [ebp - 0x248]
push eax
push edi
call fcn.00435ce0
add esp, 0x10
test al, al
je 0x4354ba
cmp byte [ebp - 0x219], 0
jne 0x4354ba
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 7
call fcn.00423d30
push 2
push esi
push 0x100c
push dword [ebx + 0x18]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x435450
jmp 0x435728
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x230], 4
call fcn.00423d30
jmp 0x435728
lea eax, [ebp - 0x219]
mov ecx, ebx
push eax
call fcn.0042bd40
push eax
push 0x4e40d0
push dword [ebp - 0x22c]
lea ecx, [ebp - 0x284]
call fcn.0042a850
mov ecx, ebx
mov byte [ebp - 4], 5
mov dword [ebp - 0x224], 0
call fcn.0042bd40
push ebx
push eax
push dword [ebp - 0x234]
mov ecx, edi
call fcn.0049b040
test eax, eax
jne 0x4355e9
mov ecx, ebx
xor esi, esi
call fcn.0042bd40
test eax, eax
je 0x435728
push esi
lea eax, [ebp - 0x248]
mov ecx, ebx
push eax
call fcn.0041e2d0
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x284]
push eax
lea eax, [ebp - 0x248]
push eax
push edi
call fcn.00435ce0
add esp, 0x10
test al, al
je 0x4354ba
cmp byte [ebp - 0x219], 0
jne 0x4354ba
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 5
call fcn.00423d30
mov ecx, ebx
inc esi
call fcn.0042bd40
cmp esi, eax
jb 0x435536
jmp 0x435728
lea eax, [ebp - 0x219]
mov ecx, ebx
push eax
call fcn.0042ef90
push eax
push 0x4e40d0
push dword [ebp - 0x22c]
lea ecx, [ebp - 0x284]
call fcn.0042a850
mov ecx, ebx
mov byte [ebp - 4], 3
mov dword [ebp - 0x22c], 0
call fcn.0042ef90
push ebx
push eax
push dword [ebp - 0x234]
mov ecx, edi
call fcn.0049b040
test eax, eax
je 0x435609
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [ebp - 0x284]
mov byte [ebp - 4], 2
mov esi, 5
call fcn.0041d9b0
jmp 0x435756
mov eax, dword [ebx + 0x30]
xor edx, edx
mov ecx, dword [ebx + 0x2c]
sub eax, ecx
sar eax, 2
mov dword [ebp - 0x224], edx
test eax, eax
je 0x435728
mov esi, dword [ecx + edx*4]
xor edi, edi
nop dword [eax]
mov eax, dword [esi + 0x250]
or eax, dword [esi + 0x254]
je 0x435646
mov eax, dword [esi + 0x23c]
jmp 0x435662
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 0x4356eb
push edi
lea eax, [ebp - 0x248]
mov ecx, esi
push eax
call fcn.0049b640
cmp dword [ebp + 0x10], 0
mov byte [ebp - 4], 4
je 0x4356a6
mov eax, dword [ebp - 0x240]
cmp word [eax + 8], 4
je 0x4356a6
lea eax, [ebp - 0x248]
lea ecx, [ebx + 0x84]
push eax
call fcn.00429540
test al, al
je 0x4356d6
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x284]
push eax
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 0x220]
call fcn.00435ce0
add esp, 0x10
test al, al
je 0x43570d
cmp byte [ebp - 0x219], 0
jne 0x43570d
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 3
call fcn.00423d30
inc edi
jmp 0x435630
mov eax, dword [ebx + 0x30]
mov edx, dword [ebp - 0x224]
mov ecx, dword [ebx + 0x2c]
inc edx
sub eax, ecx
mov dword [ebp - 0x224], edx
sar eax, 2
cmp edx, eax
jb 0x435624
jmp 0x435722
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x230], 4
call fcn.00423d30
mov edi, dword [ebp - 0x220]
lea ecx, [ebp - 0x284]
mov byte [ebp - 4], 2
call fcn.0041d9b0
mov esi, dword [ebp - 0x230]
test esi, esi
jne 0x435756
jmp 0x435745
xor esi, esi
mov ecx, edi
call fcn.0049a6b0
test al, al
mov ecx, 4
cmove esi, ecx
mov byte [ebp - 4], 9
test edi, edi
je 0x435ad5
mov ecx, dword [ebp - 0x228]
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
cmp eax, 2
jge 0x435ad5
push eax
mov ecx, edi
call fcn.0049b300
jmp 0x435ad5
push 0x4e4120
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 0
push edi
push eax
call fcn.004b8066
mov eax, dword [ebp - 0x220]
add esp, 0xc
test eax, eax
jne 0x4357b7
lea esi, [eax + 3]
jmp 0x435af4
cmp esi, 1
jne 0x43583e
xor esi, esi
cmp dword [0x517558], esi
jle 0x435828
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x104
lea eax, [ebp - 0x218]
push eax
push dword [esi*4 + 0x51755c]
push dword [0x51cf38]
call edi
test esi, esi
jle 0x4357ff
push dword [ebp - 0x220]
push 0x2c
call fcn.004b8a02
add esp, 8
lea eax, [ebp - 0x218]
push eax
push 0x4e413c
push dword [ebp - 0x220]
call fcn.004376f0
inc esi
add esp, 0xc
cmp esi, dword [0x517558]
jl 0x4357d0
mov eax, dword [ebp - 0x220]
push 0x4e4148
push eax
call fcn.004376f0
mov esi, dword [ebp - 0x224]
add esp, 8
jmp 0x4358a4
push str.__xml_version_1.0__encoding_UTF_8____n
push eax
call fcn.004376f0
push 1
push 0x4e41a0
push dword [ebp - 0x220]
call fcn.004374b0
push 1
push 0x4e41b0
push dword [ebp - 0x220]
call fcn.004374b0
add esp, 0x20
mov ecx, ebx
push dword [ebp - 0x220]
call fcn.00436a60
push 0
push 0x4e41b0
push dword [ebp - 0x220]
call fcn.004374b0
push 1
push 0x4e41c8
push dword [ebp - 0x220]
call fcn.004374b0
add esp, 0x18
mov eax, 0x435d70
mov dword [ebp - 0x254], 0
cmp esi, 1
mov dword [ebp - 0x250], 0
mov edi, 0x435e70
cmove edi, eax
push 0x38
mov dword [ebp - 0x24c], edi
call fcn.004a4441
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 - 0x254], eax
mov eax, dword [ebp + 0x10]
mov byte [ebp - 4], 0xa
sub eax, 0
je 0x435bc2
sub eax, 1
je 0x435b1b
sub eax, 1
jne 0x4359f7
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 0x4e40d0
push dword [ebp - 0x22c]
lea ecx, [ebp - 0x284]
call fcn.0042a850
push 2
push 0xffffffffffffffff
push 0x100c
push dword [ebx + 0x18]
mov byte [ebp - 4], 0xf
mov dword [ebp - 0x228], 0
call esi
mov esi, eax
cmp esi, 0xffffffff
je 0x4359ec
push esi
lea eax, [ebp - 0x248]
mov ecx, ebx
push eax
call fcn.0041e2d0
push dword [ebp + 0x20]
lea eax, [ebp - 0x254]
mov byte [ebp - 4], 0x10
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 0x435cb6
cmp byte [ebp - 0x219], 0
jne 0x435cb6
mov ecx, dword [ebp - 0x228]
mov eax, ecx
inc ecx
mov dword [ebp - 0x280], eax
mov dword [ebp - 0x228], ecx
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0xf
call fcn.00423d30
push 2
push esi
push 0x100c
push dword [ebx + 0x18]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x435965
lea ecx, [ebp - 0x284]
call fcn.0041d9b0
cmp dword [ebp - 0x224], 2
jne 0x435a93
mov edi, dword [ebp - 0x220]
push edi
push 0x3c
call fcn.004b8894
push edi
push 0x2f
call fcn.004b8894
add esp, 0x10
mov esi, 0x4e41c8
mov ecx, 0x65
push edi
push ecx
call fcn.004b8894
movzx eax, word [esi + 2]
lea esi, [esi + 2]
add esp, 8
mov ecx, eax
test ax, ax
jne 0x435a27
push edi
push 0x3e
call fcn.004b8894
mov edi, dword [ebp - 0x220]
push edi
push 0x3c
call fcn.004b8894
push edi
push 0x2f
call fcn.004b8894
add esp, 0x18
mov esi, 0x4e41a0
mov ecx, 0x70
nop word [eax + eax]
push edi
push ecx
call fcn.004b8894
movzx eax, word [esi + 2]
lea esi, [esi + 2]
add esp, 8
mov ecx, eax
test ax, ax
jne 0x435a70
push edi
push 0x3e
call fcn.004b8894
add esp, 8
xor esi, esi
push dword [ebp - 0x220]
call fcn.004b81d2
add esp, 4
mov ecx, 4
cmp eax, 0xffffffff
mov eax, dword [ebp - 0x254]
cmove esi, ecx
push dword [eax + 4]
lea eax, [ebp - 0x254]
push eax
mov ecx, eax
call fcn.0042fc80
push 0x38
push dword [ebp - 0x254]
call fcn.004a4471
add esp, 8
test esi, esi
je 0x435ae5
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.004a4433
mov esp, ebp
pop ebp
ret 0x1c
lea eax, [ebp - 0x219]
mov ecx, ebx
push eax
call fcn.0042bd40
push eax
push 0x4e40d0
push dword [ebp - 0x22c]
lea ecx, [ebp - 0x284]
call fcn.0042a850
mov ecx, ebx
mov byte [ebp - 4], 0xd
xor esi, esi
call fcn.0042bd40
test eax, eax
je 0x4359ec
push esi
lea eax, [ebp - 0x248]
mov ecx, ebx
push eax
call fcn.0041e2d0
push dword [ebp + 0x20]
lea eax, [ebp - 0x254]
mov byte [ebp - 4], 0xe
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 0x435cb6
cmp byte [ebp - 0x219], 0
jne 0x435cb6
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x280], esi
mov byte [ebp - 4], 0xd
call fcn.00423d30
mov ecx, ebx
inc esi
call fcn.0042bd40
cmp esi, eax
jb 0x435b55
jmp 0x4359ec
lea eax, [ebp - 0x219]
mov ecx, ebx
push eax
call fcn.0042ef90
push eax
push 0x4e40d0
push dword [ebp - 0x22c]
lea ecx, [ebp - 0x284]
call fcn.0042a850
mov eax, dword [ebx + 0x30]
xor edx, edx
mov ecx, dword [ebx + 0x2c]
xor edi, edi
sub eax, ecx
mov byte [ebp - 4], 0xb
sar eax, 2
mov dword [ebp - 0x230], edx
test eax, eax
je 0x4359ec
mov eax, dword [ecx + edx*4]
xor esi, esi
mov ecx, eax
mov dword [ebp - 0x228], eax
call fcn.0042bd70
test eax, eax
je 0x435c91
mov ecx, dword [ebp - 0x228]
lea eax, [ebp - 0x248]
push esi
push eax
call fcn.0049b640
push dword [ebp + 0x20]
lea eax, [ebp - 0x254]
mov byte [ebp - 4], 0xc
push dword [ebp + 0x1c]
push eax
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 0x220]
call dword [ebp - 0x24c]
add esp, 0x14
test al, al
je 0x435cb6
cmp byte [ebp - 0x219], 0
jne 0x435cb6
mov eax, edi
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x280], eax
inc edi
call fcn.00423d30
mov ecx, dword [ebp - 0x228]
inc esi
call fcn.0042bd70
cmp esi, eax
jb 0x435c22
mov eax, dword [ebx + 0x30]
mov edx, dword [ebp - 0x230]
mov ecx, dword [ebx + 0x2c]
inc edx
sub eax, ecx
mov dword [ebp - 0x230], edx
sar eax, 2
cmp edx, eax
jb 0x435c08
jmp 0x4359ec
lea ecx, [ebp - 0x248]
mov esi, 4
call fcn.00423d30
lea ecx, [ebp - 0x284]
call fcn.0041d9b0
jmp 0x435a95