Function at 0x415579
Capabilities:
Delete file
Enumerate files on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a18a7
mov eax, dword fs:[0]
push eax
sub esp, 0x6e8
mov eax, dword [0x4de270]
xor eax, esp
mov dword [esp + 0x6e0], eax
push ebx
push esi
push edi
mov eax, dword [0x4de270]
xor eax, esp
push eax
lea eax, [esp + 0x6f8]
mov dword fs:[0], eax
mov ebx, ecx
push str.XpiUnInstaller.cpp:_fnProfilesXpiUnInstaller__folder_name
lea esi, [esp + 0x20]
mov dword [esp + 0x1c], ebx
call fcn.00404db2
xor edi, edi
push ebx
lea esi, [esp + 0x3c]
mov dword [esp + 0x704], edi
call fcn.00404db2
lea ecx, [esp + 0x1c]
push ecx
mov ebx, eax
mov byte [esp + 0x704], 1
call fcn.00404975
pop ecx
push edi
push 1
call fcn.00404f5a
or dword [esp + 0x700], 0xffffffff
push edi
push 1
lea esi, [esp + 0x24]
call fcn.00404f5a
push 0xffffffffffffffff
mov ecx, str.firefox.exe
call fcn.0040a18c
pop ecx
lea eax, [esp + 0x4e4]
push eax
call fcn.00415208
pop ecx
cmp eax, edi
ja 0x41565e
push str.XpiUnInstaller.cpp:_fnProfilesXpiUnInstaller__DetermineFFProfilesDir_failed.
lea esi, [esp + 0x20]
call fcn.00404db2
mov dword [esp + 0x700], 2
call fcn.00404e64
push edi
push 1
call fcn.00404f5a
push 3
pop eax
jmp 0x41588f
lea eax, [esp + 0x4e4]
dec eax
dec eax
mov cx, word [eax + 2]
inc eax
inc eax
cmp cx, di
jne 0x415667
mov edi, eax
lea eax, [esp + 0x8c]
push eax
lea eax, [esp + 0x4e8]
mov esi, 0x4b3d78
push eax
movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x4e4]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x41569e
sub eax, edx
sar eax, 1
xor ecx, ecx
cmp dword [esp + 0x14], 0xffffffff
mov word [esp + eax*2 + 0x4e2], cx
je 0x41588d
cmp word [esp + 0xb8], 0x2e
je 0x415868
test byte [esp + 0x8c], 0x10
je 0x415868
xor eax, eax
movzx ecx, word [esp + eax + 0x4e4]
mov word [esp + eax + 0x2dc], cx
inc eax
inc eax
test cx, cx
jne 0x4156e0
lea eax, [esp + 0xb8]
mov edx, eax
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x415700
sub eax, edx
lea edi, [esp + 0x2dc]
dec edi
dec edi
mov cx, word [edi + 2]
inc edi
inc edi
test cx, cx
jne 0x415715
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
push 3
mov ecx, eax
pop ebx
and ecx, ebx
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x2dc]
dec edi
dec edi
mov ax, word [edi + 2]
inc edi
inc edi
test ax, ax
jne 0x41573b
mov eax, dword [esp + 0x18]
push 6
pop ecx
mov esi, str.extensions_
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edx, eax
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x415758
sub eax, edx
lea edi, [esp + 0x2dc]
dec edi
dec edi
mov cx, word [edi + 2]
inc edi
inc edi
test cx, cx
jne 0x41576d
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, ebx
rep movsb byte es:[edi], byte [esi]
push str.XpiUnInstaller.cpp:_fnProfilesXpiUnInstaller__about_to_remove
lea esi, [esp + 0x20]
call fcn.00404db2
lea eax, [esp + 0x2dc]
push eax
lea esi, [esp + 0x3c]
mov dword [esp + 0x704], ebx
call fcn.00404db2
lea ecx, [esp + 0x1c]
push ecx
mov ebx, eax
mov byte [esp + 0x704], 4
call fcn.00404975
pop ecx
xor ebx, ebx
xor edi, edi
push ebx
inc edi
push edi
call fcn.00404f5a
or dword [esp + 0x700], 0xffffffff
push ebx
push edi
lea esi, [esp + 0x24]
call fcn.00404f5a
lea eax, [esp + 0x2dc]
push eax
lea esi, [esp + 0x58]
call fcn.00404db2
mov ecx, eax
mov dword [esp + 0x700], 5
call fcn.0041539b
or dword [esp + 0x700], 0xffffffff
push ebx
push edi
call fcn.00404f5a
lea eax, [esp + 0x2dc]
push eax
lea esi, [esp + 0x74]
call fcn.00404db2
push str..xpi
mov eax, esi
push eax
mov dword [esp + 0x708], 6
call fcn.004048a5
cmp dword [esp + 0x88], 8
mov eax, dword [esp + 0x74]
jae 0x41584e
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
or dword [esp + 0x700], 0xffffffff
push ebx
push edi
lea esi, [esp + 0x78]
call fcn.00404f5a
lea eax, [esp + 0x8c]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, 1
je 0x4156c1
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
mov ecx, dword [esp + 0x6f8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x6e0]
xor ecx, esp
call fcn.004812cc
mov esp, ebp
pop ebp
ret