Function at 0x409d90
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46b850
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
xor edi, edi
push 0x490728
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], edi
call fcn.00460131
push 0x490728
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00460131
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
lea edx, [ebp - 0x14]
push str._d_s
push edx
mov byte [ebp - 4], 2
call fcn.0045e7bf
mov eax, dword [ebp - 0x14]
mov ecx, dword [0x4907e4]
add esp, 0x10
push str.ICONQuery
push eax
call fcn.0041de60
push ecx
lea edx, [ebp - 0x14]
mov ecx, esp
mov dword [ebp + 0xc], esp
push edx
call fcn.0045fe38
lea eax, [ebp + 0xc]
push eax
call fcn.0040d8e0
add esp, 8
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.004601fc
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.004600c3
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x1c]
push ecx
push str.DATA_s
push edx
call fcn.0045e7bf
add esp, 0xc
lea ecx, [ebp - 0x18]
push 0x490728
call fcn.00460131
mov edx, dword [ebp - 0x1c]
mov eax, dword [esi + 0x52c]
mov ecx, dword [esi + 0x528]
push edx
push eax
lea eax, [ebp + 0xc]
mov bl, 4
push ecx
push eax
mov byte [ebp - 4], bl
call fcn.00411e80
add esp, 0x10
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.004601fc
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], bl
call fcn.004600c3
mov ecx, dword [ebp - 0x18]
cmp dword [ecx - 8], edi
jle 0x409eb6
push ecx
lea edx, [ebp - 0x18]
mov ecx, esp
mov dword [ebp + 0xc], esp
push edx
call fcn.0045fe38
mov ecx, esi
call fcn.0040b100
push 0x490748
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x49073c]
mov bl, 0xd
mov ecx, dword [eax]
mov dword [ebp + 0xc], ecx
mov edx, dword [0x49073c]
mov eax, dword [ebp + 0xc]
cmp eax, edx
je 0x40a07f
mov eax, dword [0x48b574]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
push 0x490728
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], edi
call fcn.0046024c
push 0x490728
lea ecx, [ebp - 0x44]
call fcn.0046024c
push 0x490728
lea ecx, [ebp - 0x40]
call fcn.0046024c
push 0x490728
lea ecx, [ebp - 0x3c]
call fcn.0046024c
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 0xe
mov ecx, dword [eax + 0x10]
lea esi, [eax + 0x10]
mov dword [ebp - 0x50], ecx
mov edx, dword [esi + 4]
lea ecx, [esi + 0xc]
mov dword [ebp - 0x4c], edx
mov eax, dword [esi + 8]
push ecx
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x48], eax
call fcn.004601fc
lea edx, [esi + 0x10]
lea ecx, [ebp - 0x40]
push edx
call fcn.004601fc
lea eax, [esi + 0x14]
lea ecx, [ebp - 0x3c]
push eax
call fcn.004601fc
lea ecx, [esi + 0x18]
push ecx
lea ecx, [ebp - 0x38]
call fcn.004601fc
lea edx, [esi + 0x1c]
lea ecx, [ebp - 0x34]
push edx
call fcn.004601fc
lea eax, [esi + 0x20]
lea ecx, [ebp - 0x30]
push eax
call fcn.004601fc
lea ecx, [esi + 0x24]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004601fc
mov edx, dword [esi + 0x28]
mov dword [ebp - 0x28], edx
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x48]
cmp eax, edi
je 0x409fe4
mov esi, dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.0040c0b0
lea ecx, [ebp - 0x20]
push esi
push ecx
mov ecx, 0x490738
call fcn.0040bb70
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x40a015
mov eax, dword [ebp + 0xc]
mov edx, dword [0x490784]
mov ecx, dword [eax + 8]
cmp ecx, edx
je 0x409ffe
mov eax, dword [ecx]
cmp eax, edx
je 0x40a012
mov ecx, eax
jmp 0x409ff4
mov ecx, dword [eax + 4]
cmp eax, dword [ecx + 8]
jne 0x40a00d
mov eax, ecx
mov dword [ebp + 0xc], eax
jmp 0x409ffe
cmp dword [eax + 8], ecx
je 0x40a015
mov dword [ebp + 0xc], ecx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x14
call fcn.004600c3
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x13
call fcn.004600c3
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x12
call fcn.004600c3
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x11
call fcn.004600c3
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0x10
call fcn.004600c3
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xf
call fcn.004600c3
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 6
call fcn.004600c3
jmp 0x409ecd
push 0x490748
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 2
call fcn.004600c3
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004600c3
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.004600c3
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.004600c3
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8