Function at 0x433e90
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cecaf
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x513b94]
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 0x433f05
mov eax, 2
jmp 0x43475d
cmp dword [ebp + 0x10], 1
mov eax, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jne 0x433f4d
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 0x4343e6
push 0x588
call fcn.004a0e21
add esp, 4
mov dword [ebp - 0x24c], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x433fb0
mov ecx, eax
call fcn.004296c0
mov dword [ebp - 0x24c], eax
mov edi, eax
mov dword [ebp - 0x220], edi
test eax, eax
je 0x433fc0
lea ecx, [eax + 0x574]
mov dword [ebp - 0x228], ecx
lock inc dword [ecx]
mov dword [ebp - 0x220], edi
jmp 0x433fcb
xor edi, edi
xor eax, eax
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x24c], edi
add eax, 0x574
mov dword [ebp - 0x228], eax
mov eax, dword [ebx + 0x30]
mov byte [ebp - 4], 2
mov esi, dword [eax - 4]
lea ecx, [esi + 0x4ec]
call fcn.0047b140
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.00478f80
lea ecx, [edi + 0x4ec]
push eax
call fcn.00477f00
mov eax, dword [ebp + 0x10]
xor ecx, ecx
cmp byte [ebp + 0x18], cl
cmovne eax, ecx
sub eax, ecx
je 0x4341fc
sub eax, 1
je 0x434134
sub eax, 1
jne 0x4343a3
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 0x4dff00
push dword [ebp - 0x22c]
lea ecx, [ebp - 0x284]
call fcn.004295a0
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.00497a30
test eax, eax
jne 0x434249
push 2
push 0xffffffffffffffff
push 0x100c
push dword [ebx + 0x18]
call esi
mov esi, eax
cmp esi, 0xffffffff
je 0x434388
push esi
lea eax, [ebp - 0x248]
mov ecx, ebx
push eax
call fcn.0041d870
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.00434940
add esp, 0x10
test al, al
je 0x43411a
cmp byte [ebp - 0x219], 0
jne 0x43411a
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 7
call fcn.004231e0
push 2
push esi
push 0x100c
push dword [ebx + 0x18]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4340b0
jmp 0x434388
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x230], 4
call fcn.004231e0
jmp 0x434388
lea eax, [ebp - 0x219]
mov ecx, ebx
push eax
call fcn.0042aa90
push eax
push 0x4dff00
push dword [ebp - 0x22c]
lea ecx, [ebp - 0x284]
call fcn.004295a0
mov ecx, ebx
mov byte [ebp - 4], 5
mov dword [ebp - 0x224], 0
call fcn.0042aa90
push ebx
push eax
push dword [ebp - 0x234]
mov ecx, edi
call fcn.00497a30
test eax, eax
jne 0x434249
mov ecx, ebx
xor esi, esi
call fcn.0042aa90
test eax, eax
je 0x434388
push esi
lea eax, [ebp - 0x248]
mov ecx, ebx
push eax
call fcn.0041d870
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.00434940
add esp, 0x10
test al, al
je 0x43411a
cmp byte [ebp - 0x219], 0
jne 0x43411a
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 5
call fcn.004231e0
mov ecx, ebx
inc esi
call fcn.0042aa90
cmp esi, eax
jb 0x434196
jmp 0x434388
lea eax, [ebp - 0x219]
mov ecx, ebx
push eax
call fcn.0042dc70
push eax
push 0x4dff00
push dword [ebp - 0x22c]
lea ecx, [ebp - 0x284]
call fcn.004295a0
mov ecx, ebx
mov byte [ebp - 4], 3
mov dword [ebp - 0x22c], 0
call fcn.0042dc70
push ebx
push eax
push dword [ebp - 0x234]
mov ecx, edi
call fcn.00497a30
test eax, eax
je 0x434269
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [ebp - 0x284]
mov byte [ebp - 4], 2
mov esi, 5
call fcn.0041cf50
jmp 0x4343b6
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 0x434388
mov esi, dword [ecx + edx*4]
xor edi, edi
nop dword [eax]
mov eax, dword [esi + 0x250]
or eax, dword [esi + 0x254]
je 0x4342a6
mov eax, dword [esi + 0x23c]
jmp 0x4342c2
mov ecx, dword [esi + 0x56c]
mov eax, 0x66666667
sub ecx, dword [esi + 0x568]
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x43434b
push edi
lea eax, [ebp - 0x248]
mov ecx, esi
push eax
call fcn.00498030
cmp dword [ebp + 0x10], 0
mov byte [ebp - 4], 4
je 0x434306
mov eax, dword [ebp - 0x240]
cmp word [eax + 8], 4
je 0x434306
lea eax, [ebp - 0x248]
lea ecx, [ebx + 0x84]
push eax
call fcn.00428290
test al, al
je 0x434336
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x284]
push eax
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 0x220]
call fcn.00434940
add esp, 0x10
test al, al
je 0x43436d
cmp byte [ebp - 0x219], 0
jne 0x43436d
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 3
call fcn.004231e0
inc edi
jmp 0x434290
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 0x434284
jmp 0x434382
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x230], 4
call fcn.004231e0
mov edi, dword [ebp - 0x220]
lea ecx, [ebp - 0x284]
mov byte [ebp - 4], 2
call fcn.0041cf50
mov esi, dword [ebp - 0x230]
test esi, esi
jne 0x4343b6
jmp 0x4343a5
xor esi, esi
mov ecx, edi
call fcn.004970b0
test al, al
mov ecx, 4
cmove esi, ecx
mov byte [ebp - 4], 9
test edi, edi
je 0x434735
mov ecx, dword [ebp - 0x228]
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
cmp eax, 2
jge 0x434735
push eax
mov ecx, edi
call fcn.00497cf0
jmp 0x434735
push 0x4dff50
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 0
push edi
push eax
call fcn.004b4a56
mov eax, dword [ebp - 0x220]
add esp, 0xc
test eax, eax
jne 0x434417
lea esi, [eax + 3]
jmp 0x434754
cmp esi, 1
jne 0x43449e
xor esi, esi
cmp dword [0x513550], esi
jle 0x434488
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x104
lea eax, [ebp - 0x218]
push eax
push dword [esi*4 + 0x513554]
push dword [0x518ee0]
call edi
test esi, esi
jle 0x43445f
push dword [ebp - 0x220]
push 0x2c
call fcn.004b53f2
add esp, 8
lea eax, [ebp - 0x218]
push eax
push 0x4dff6c
push dword [ebp - 0x220]
call fcn.00436340
inc esi
add esp, 0xc
cmp esi, dword [0x513550]
jl 0x434430
mov eax, dword [ebp - 0x220]
push 0x4dff78
push eax
call fcn.00436340
mov esi, dword [ebp - 0x224]
add esp, 8
jmp 0x434504
push str.__xml_version_1.0__encoding_UTF_8____n
push eax
call fcn.00436340
push 1
push 0x4dffd0
push dword [ebp - 0x220]
call fcn.00436100
push 1
push 0x4dffe0
push dword [ebp - 0x220]
call fcn.00436100
add esp, 0x20
mov ecx, ebx
push dword [ebp - 0x220]
call fcn.004356b0
push 0
push 0x4dffe0
push dword [ebp - 0x220]
call fcn.00436100
push 1
push 0x4dfff8
push dword [ebp - 0x220]
call fcn.00436100
add esp, 0x18
mov eax, 0x4349d0
mov dword [ebp - 0x254], 0
cmp esi, 1
mov dword [ebp - 0x250], 0
mov edi, 0x434ad0
cmove edi, eax
push 0x38
mov dword [ebp - 0x24c], edi
call fcn.004a0e21
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 0x434822
sub eax, 1
je 0x43477b
sub eax, 1
jne 0x434657
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 0x4dff00
push dword [ebp - 0x22c]
lea ecx, [ebp - 0x284]
call fcn.004295a0
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 0x43464c
push esi
lea eax, [ebp - 0x248]
mov ecx, ebx
push eax
call fcn.0041d870
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 0x434916
cmp byte [ebp - 0x219], 0
jne 0x434916
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.004231e0
push 2
push esi
push 0x100c
push dword [ebx + 0x18]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4345c5
lea ecx, [ebp - 0x284]
call fcn.0041cf50
cmp dword [ebp - 0x224], 2
jne 0x4346f3
mov edi, dword [ebp - 0x220]
push edi
push 0x3c
call fcn.004b5284
push edi
push 0x2f
call fcn.004b5284
add esp, 0x10
mov esi, 0x4dfff8
mov ecx, 0x65
push edi
push ecx
call fcn.004b5284
movzx eax, word [esi + 2]
lea esi, [esi + 2]
add esp, 8
mov ecx, eax
test ax, ax
jne 0x434687
push edi
push 0x3e
call fcn.004b5284
mov edi, dword [ebp - 0x220]
push edi
push 0x3c
call fcn.004b5284
push edi
push 0x2f
call fcn.004b5284
add esp, 0x18
mov esi, 0x4dffd0
mov ecx, 0x70
nop word [eax + eax]
push edi
push ecx
call fcn.004b5284
movzx eax, word [esi + 2]
lea esi, [esi + 2]
add esp, 8
mov ecx, eax
test ax, ax
jne 0x4346d0
push edi
push 0x3e
call fcn.004b5284
add esp, 8
xor esi, esi
push dword [ebp - 0x220]
call fcn.004b4bc2
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.0042ec10
push 0x38
push dword [ebp - 0x254]
call fcn.004a0e51
add esp, 8
test esi, esi
je 0x434745
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.004a0e13
mov esp, ebp
pop ebp
ret 0x1c
lea eax, [ebp - 0x219]
mov ecx, ebx
push eax
call fcn.0042aa90
push eax
push 0x4dff00
push dword [ebp - 0x22c]
lea ecx, [ebp - 0x284]
call fcn.004295a0
mov ecx, ebx
mov byte [ebp - 4], 0xd
xor esi, esi
call fcn.0042aa90
test eax, eax
je 0x43464c
push esi
lea eax, [ebp - 0x248]
mov ecx, ebx
push eax
call fcn.0041d870
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 0x434916
cmp byte [ebp - 0x219], 0
jne 0x434916
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x280], esi
mov byte [ebp - 4], 0xd
call fcn.004231e0
mov ecx, ebx
inc esi
call fcn.0042aa90
cmp esi, eax
jb 0x4347b5
jmp 0x43464c
lea eax, [ebp - 0x219]
mov ecx, ebx
push eax
call fcn.0042dc70
push eax
push 0x4dff00
push dword [ebp - 0x22c]
lea ecx, [ebp - 0x284]
call fcn.004295a0
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 0x43464c
mov eax, dword [ecx + edx*4]
xor esi, esi
mov ecx, eax
mov dword [ebp - 0x228], eax
call fcn.0042aac0
test eax, eax
je 0x4348f1
mov ecx, dword [ebp - 0x228]
lea eax, [ebp - 0x248]
push esi
push eax
call fcn.00498030
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 0x434916
cmp byte [ebp - 0x219], 0
jne 0x434916
mov eax, edi
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x280], eax
inc edi
call fcn.004231e0
mov ecx, dword [ebp - 0x228]
inc esi
call fcn.0042aac0
cmp esi, eax
jb 0x434882
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 0x434868
jmp 0x43464c
lea ecx, [ebp - 0x248]
mov esi, 4
call fcn.004231e0
lea ecx, [ebp - 0x284]
call fcn.0041cf50
jmp 0x4346f5